Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App crashes after adding the AdSupport.framework

Hi I get this error on startup:

dyld: Library not loaded: /System/Library/Frameworks/AdSupport.framework/AdSupport
  Referenced from: /Users/owner12/Library/Application Support/iPhone Simulator/5.1/Applications/823A0485-7443-4206-B9F5-A84C03DBFB89/BusinessPlan.app/BusinessPlan
  Reason: image not found

I added that framework to the Target --> Build Phases --> Link Binary With Libraries.

The strange thing is that this framework started appearing in my project in the navigator in the main area where the files are, and not in the project/Frameworks.

Would anyone know how to fix this? Thanks!

Also, I added some params to the Build Settings under "Other Linker Flags" and they appear like this:

enter image description here

But really they were supposed to appear like this:

-all_load *
-ObjC

Could that be the reason for the error?

like image 694
Genadinik Avatar asked Apr 10 '26 07:04

Genadinik


1 Answers

" Referenced from: /Users/owner12/Library/Application Support/iPhone Simulator/5.1/" - isn't AdSupport available only in iOS 6.0 and later?

like image 97
Kreiri Avatar answered Apr 12 '26 22:04

Kreiri



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!