2013-04-08 78 views
2

当我只是通过将项目导航器拖动到选项卡,将一个.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,我看到红色名称的头文件。这可能与这个问题有什么关系?

这是怎么发生的?

+0

是您的项目文件的KCPush一个?失踪的符号(UAPush等)应该在哪里? – Uncommon 2013-04-08 19:30:21

+0

KCPush应该是KinveyKit.framework的一部分。在框架组中只有一个Headers文件夹,头文件带有红色名称。 – 2013-04-08 19:32:25

回答

相关问题