我将 Layar SDK 框架包含到我的应用程序(8.0 版)中,并且在设备上一切正常。
但是,我不能再在模拟器上运行应用程序了——我不介意 Layar 不工作(毕竟没有摄像头!)但我确实需要它来编译以进行持续集成、自动化测试等(更不用说在火车顶部/下班!)
链接器给了我这些错误:
ld: warning: ignoring file /Users/username/Documents/appname/libs/MPOAuth/libMPOAuthMobile.a, missing required architecture i386 in file /Users/username/Documents/appname/libs/MPOAuth/libMPOAuthMobile.a (2 slices)
ld: warning: ignoring file local/LayarSDK/LayarSDK.framework/LayarSDK, missing required architecture i386 in file local/LayarSDK/LayarSDK.framework/LayarSDK (2 slices)
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_LayarSDK", referenced from:
objc-class-ref in MYAppDelegate.o
ld: symbol(s) not found for architecture i386
检查,LayarSDK 不包含i386
,它只包含armv7
and armv7s
。