Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

still dyld: Library not loaded

I am integrating Facebook in my application. As required frameworks I added to the project. But the app crashes without loading even first screen.

dyld: Library not loaded: /System/Library/Frameworks/AdSupport.framework/AdSupport
  Referenced from: /var/mobile/Applications/8E09C9AA-CA81-4C26-AEED-B2C632B60A54/Gridlocked.app/Gridlocked
  Reason: image not found

I use xcode 4.5 & my iPad runs iOS 5.1 The app runs fine on simulator (both 6.0 & 5.1) But when I connect iPad & change the deployment target to 5.1(as without this device is not shown to run) app crashes

Can anyone pls help to get out of it. I really spent good time & still looking struggling to achieve success

like image 968
hp iOS Coder Avatar asked Oct 16 '12 12:10

hp iOS Coder


People also ask

What is DYLD on Mac library?

What is the DYLD Mac Library? Every time you boot up your Mac, the system creates cache files, which are named DYLD. DYLD caches are used for a safe and fast Mac startup. They are system files, used for all user accounts on a Mac. On the macOS, a DYLD folder is stored in the system library folder.

What is private frameworks Mac?

Private frameworks are intended to be used only by Apple's apps, and are more unstable against firmware changes, but many of the interesting features are in the private frameworks. Since iOS 3.1, all default (private and public) libraries have been combined into a big cache file in /System/Library/Caches/com. apple.


1 Answers

Found out the solution to the problem. The problem was setting the added frameworks as required instead of optional

GO TO Project-> Targets-> Build Phases-> Link Binary with Libraries

There, set the status of added frameworks to Optional

This solved my problem.

like image 178
hp iOS Coder Avatar answered Oct 19 '22 03:10

hp iOS Coder