简体   繁体   中英

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:

在此输入图像描述

But really they were supposed to appear like this:

-all_load *
-ObjC

Could that be the reason for the error?

“引自:/ Users / owner12 / Library / Application Support / iPhone Simulator / 5.1 /” - AdSupport 不仅适用于iOS 6.0及更高版本

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM