当我只是通过将 .framework 从项目导航器拖动到选项卡来将其添加到“链接二进制文件与库”列表中时,我收到错误。
我的错误...
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_UAPush", referenced from:
objc-class-ref in KinveyKit(KCSPush.o)
"_OBJC_CLASS_$_UAirship", referenced from:
objc-class-ref in KinveyKit(KCSPush.o)
"_UAirshipTakeOffOptionsAirshipConfigKey", referenced from:
-[KCSPush initializeUrbanAirshipWithOptions:error:] in KinveyKit(KCSPush.o)
"_logging", referenced from:
-[KCSPush application:didReceiveRemoteNotification:] in KinveyKit(KCSPush.o)
(maybe you meant: _OBJC_IVAR_$_KCSLogManager._loggingState, _OBJC_IVAR_$_FBLogger._loggingBehavior )
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
当我删除 .framework 时,应用程序运行时没有错误。
另外,当我查看 Kinvey.framework 内的 Headers 文件夹时,我看到带有红色名称的头文件。这也许与问题有什么关系吗?
为什么会出现这种情况??
UAPush = 城市飞艇推送。
将 libUAirship.a 添加到您的项目中。
在这里你可以下载lib http://com.urbanairship.filereleases.s3.amazonaws.com/libUAirship-latest.zip.
关于城市飞艇推送的完整文档 http://urbanairship.com/resources/developer-resources
另请检查这个城市飞艇常见错误 https://stackoverflow.com/questions/15827119/ios-project-shows-linker-error-for-i386
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)