我試圖在模擬器上啓動我的iOS應用程序,但它不起作用。在手機上運行應用程序通常可以正常工作。這與我的Admon集成有關。模擬器運行平穩之前。我正在使用Xcode 6.1。iOS模擬器鏈接器命令失敗
我添加了所有必需的框架:
AdSupport
AudioToolbox
AVFoundation
CoreGraphics
CoreTelephony
EventKit
EventKitUI
MessageUI
StoreKit
SystemConfiguration
as well as libGoogleAdMobAds.a
我得到的錯誤是:
ld: warning: ignoring file /Users/XXXXXXX/Documents/app1/app1/AdSupport.framework/AdSupport, missing required architecture i386 in file /Users/XXXXXXX/Documents/app1/app1/AdSupport.framework/AdSupport (3 slices)
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_ASIdentifierManager", referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADDevice.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
添加AdSupport.framework程式在您的項目。 – Rumin 2014-11-02 16:25:44
它已被添加。但模擬器失敗並出現給定錯誤 – Michael 2014-11-02 16:29:49
在您的問題中包含您已添加到項目中的所有框架列表。如果沒有缺失任何框架,請嘗試再次添加libGoogleAdMobAds.a – Rumin 2014-11-02 16:43:26