Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove all categories to avoid linker problems #1098

Merged
merged 1 commit into from
May 25, 2021

Conversation

kstenerud
Copy link
Contributor

@kstenerud kstenerud commented May 25, 2021

Goal

The xcode linker fails to link categories when building a static library unless the end-user puts in special linker flags. Rather than require extra steps by the user, just remove all category code from Bugsnag.

Changeset

Removed all category code and merged it into their respective main ObjC files (marked with pragmas).

NSError convenience constructors have been moved to a placeholder class NSErrorBSG whose only purpose is to house the NSError constructors.

Testing

Re-ran e2e tests

@kstenerud kstenerud requested a review from nickdowell May 25, 2021 07:57
@github-actions
Copy link

Infer: No issues found 🎉

OCLint: No issues found 🎉

Bugsnag.framework binary size decreased by 1,888 bytes from 1,128,728 to 1,126,840 🎉

Generated by 🚫 Danger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants