Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Library not loaded

Tags:

I added Social.framework in my application in the same way i use to add the other frame works. I have downloaded xcode 4.5 and iOS 6 . but my application crashes with follwing error only on device. It works fine on simulator.

    dyld: Library not loaded: /System/Library/Frameworks/Social.framework/Social   Referenced from: /var/mobile/Applications/FC88291D-2052-45D6-A7BB-65CE340F07BF/Uploading       Image.app/Uploading Image  Reason: image not found 
like image 711
Prerna chavan Avatar asked Sep 13 '12 12:09

Prerna chavan


1 Answers

I was getting this exact error. My app currently has a deployment target of 5.1. I wanted to add Facebook sharing. I found this old post, Conditionally including a library for different iOS SDK versions?. All I did was set "Social.framework" to 'optional' and it did the trick, then my app would run on ios 5.1 and ios 6.0. Of course you need to do checks at runtime for what OS the device is running otherwise you could run into a crash if you try to access social.framework in ios 5.1 or earlier. Hope that helps!

like image 75
kev Avatar answered Oct 16 '22 01:10

kev