【发布时间】:2014-11-02 16:10:54
【问题描述】:
我试图在模拟器上启动我的 iOS 应用程序,但它不起作用。不过,在手机上运行该应用程序可以正常工作。它与我的 admon 集成有关。之前模拟器运行流畅。我正在使用 Xcode 6.1。
我添加了所有必需的框架:
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。
-
已添加。但模拟器因给定错误而失败
-
在您的问题中包含您在项目中添加的所有框架列表。如果没有缺少任何框架,请尝试再次添加 libGoogleAdMobAds.a
-
将所有框架添加到我的帖子中
-
参考 Akshay 在 stackoverflow.com/questions/6984368/… 中给出的答案
标签: ios xcode linker admob ios-simulator