Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Optional frameworks needed #263
I have an app that is using ShareKit with the Twitter Sharer. CocoaPods is adding the Twitter framework to the OTHER_LDFLAGS as follows:
The problem appears when I am trying to release the app, with iOS 4.2 deployment target.
When run in iOS 4.x the Twitter framework can not be loaded, and therefore the app closes during the starting process. To fix it, we need to mark frameworks as optional, but I don't know how to do this with the OTHER_LDFLAGS (is it possible? I couldn't find anything similar googling).
And the corresponding Device Log:
Any idea how to fix this in CocoaPods installation?
For now I am going to delete the Twitter framework from the Pods.xcconfig file and include it manually (as optional), which I hope will work, but we should find a workaround for this because it will be present every time that a new framework appears.
Note: The app runs when starting from XCode, only crashes when installing the released ipa. It may make sense to you, but it does not to me :(