當我只是通過將項目導航器拖動到選項卡,將一個.framework添加到「Link Binary With Libraries」列表中時,我得到一個錯誤。當我添加一個框架時Xcode錯誤
我的錯誤...
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,我看到紅色名稱的頭文件。這可能與這個問題有什麼關係?
這是怎麼發生的?
是您的項目文件的KCPush一個?失蹤的符號(UAPush等)應該在哪裏? – Uncommon 2013-04-08 19:30:21
KCPush應該是KinveyKit.framework的一部分。在框架組中只有一個Headers文件夾,頭文件帶有紅色名稱。 – 2013-04-08 19:32:25