当我通过将“框架链接二进制文件”列表从项目导航器拖到选项卡时,我只是将“框架”添加到“链接二进制文件库”列表中时出现错误。
我的错误......
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文件夹时,我看到带有红色名称的头文件。那可能与这个问题有什么关系吗?
为什么会这样?
答案 0 :(得分:2)
UAPush = Urban Airship Push。
将libUAirship.a添加到您的项目中。