-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Using pods in static library targets is broken in 0.34.x and Xcode 6. #2666
Comments
Fixed by #2676. |
I think this introduces another issue with IB designable. Libtool doesn't seem to like the "-ObjC" flag that is passed on LD_FLAGS and fails compilation when compiling for IBDesignables a View that links against a static library. The error is:
Removing "-ObjC" from OTHER_LIBTOOLFLAGS seem to fix the problem for IBDesignable builds. |
Seeing the same issue when trying to build for IB designable for XIBs in a static library that uses Cocoapods. |
This ticket supersedes #2319.
With Xcode 6:
OTHER_LDFLAGS
flag is used to link and passed told
.OTHER_LIBTOOLFLAGS
flag is used to link and passed tolibtool
.Thus, Xcode 6 no longer links in the pods dependencies into the user's static library target.
The simple fix is:
OTHER_LIBTOOLFLAGS = $(OTHER_LDFLAGS)
to thePods.CONFIGURATION.xcconfig
files.OTHER_LIBTOOLFLAGS
to be blank on the Pods target in the Pods.xcodeproj, just like we already do withOTHER_LDFLAGS
.The text was updated successfully, but these errors were encountered: