This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
get rid of -ObjC linker flag #2966
Comments
Would love your 👀 here @1ec5, but I think this should just work. |
👉 #2967 |
incanus
added a commit
that referenced
this issue
Nov 7, 2015
Implemented in 423cfc1. |
1ec5
added a commit
that referenced
this issue
Apr 17, 2016
Xcode’s static library template comes with the -ObjC linker flag by default. Instead of removing that flag, this change removes the various imperfect workarounds we’ve been using to ensure that private SDK categories link. Given the size decrease in this static library since #2966 was fixed, we should have room to spare for the more straightforward approach. Moreover, an application that uses MGLMapView in a storyboard no longer needs to add -ObjC to the application target, which bloated the entire application, including other frameworks that had no need for -ObjC. -ObjC isn’t even needed for dynamic frameworks, and the OS X SDK is only built as a dynamic framework.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This flag is used in order to ensure that categories are properly linked into the final product. Another approach here would be add class methods to each category, then call them each from a non-category to ensure they get pulled in as linked dependencies.
https://developer.apple.com/library/mac/qa/qa1490/_index.html
This will decrease our binary size.
The text was updated successfully, but these errors were encountered: