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

Podspec and Social.framework #56

Closed
kristopherjohnson opened this issue Dec 9, 2013 · 1 comment
Closed

Podspec and Social.framework #56

kristopherjohnson opened this issue Dec 9, 2013 · 1 comment
Assignees

Comments

@kristopherjohnson
Copy link

Using STTwitter via CocoaPods results in the following line in the Pods.xcconfig file:

OTHER_LDFLAGS = -ObjC -framework Accounts -framework CoreGraphics -framework Foundation -framework QuartzCore -framework Social -framework Twitter -framework UIKit

And the Pods-STTwitter target has Social.framework in the Link Binary With Libraries build phase as a Required library.

The built app will not run on iOS 5. The debugger shows an error like this:

dyld: Library not loaded: /System/Library/Frameworks/Social.framework/Social
Referenced from: /var/mobile/Applications/353C9D18-DAAF-4492-B1A6-3D438384B88C/MyApp.app/My App
Reason: image not found

This error can be eliminated by changing the linker options and build phases so that Social.framework is weakly linked.

Is it possible to change the podspec so that Social.framework will be weakly linked?

@ghost ghost assigned nst Dec 10, 2013
@nst
Copy link
Owner

nst commented Dec 11, 2013

According to the podspec format we may use the weak_frameworks attribute.

If you have an iOS 5 OS nearby, can you check that it works? Thank you in advance.

@nst nst closed this as completed in 4592839 Dec 13, 2013
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

No branches or pull requests

2 participants