Last active
January 2, 2016 22:09
-
-
Save kyleve/8367856 to your computer and use it in GitHub Desktop.
Dynamic Linker Flags via a Build Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Make Foo.xcconfig, add to project. | |
2) Change Xcode Project's Configurations to be based on Foo.xcconfig. | |
3) Add Run Script build phase. | |
4) Make Run Script build phase modifiy Foo.xcconfig to be something like "MY_FLAGS = "-lBar -lBaz"", etc. | |
5) Change "Other Linker Flags" in Build Settings to be ${MY_FLAGS}. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment