Take the 2-minute tour ×

I'm using the instructions here to detect the Twitter framework on iOS 5 devices. The problem is older devices don't have the Twitter library so I get the following error on iOS 4:

dyld: Library not loaded: /System/Library/Frameworks/Twitter.framework/Twitter

How do I make an app that can use the Twitter framework on iOS 5 and use a different API on iOS 4 and below?

share|improve this question
look to this question stackoverflow.com/questions/8599944/… –  Alex Terente Apr 20 '12 at 16:03
add comment

1 Answer

up vote 13 down vote accepted

You need to "weak link" it. Under "Build Phases" -> "Link Binary With Libraries" select "Optional" for the Twitter framework:

Weak Link Twitter.framework

share|improve this answer
add comment

Your Answer


