添加框架时出现Xcode错误 [英] Xcode error when I add a framework

查看:194
本文介绍了添加框架时出现Xcode错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我仅将.framework从项目导航器"拖动到选项卡链接二进制文件"列表中时,出现错误.

When I just add a .framework to the "Link Binary With Libraries" list by dragging it from the Project Navigator to the tab I get an error.

我的错误...

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时,该应用程序运行无错误.

When I remove the .framework, the app runs without errors.

此外,当我在Kinvey.framework的Headers文件夹中查看时,我会看到带有红色名称的头文件.可能与问题有关吗?

Also when I look inside my Headers folder inside Kinvey.framework, I see header files with red names. Does that have anything to do with the problem perhaps?

为什么会这样?

推荐答案

UAPush =城市飞艇推进.

UAPush = Urban Airship Push.

将libUAirship.a添加到您的项目中.

Add libUAirship.a to your project.

在这里您可以下载lib .

有关城市飞艇推进的完整文档

也请查看此城市飞艇常见错误

这篇关于添加框架时出现Xcode错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆