【问题标题】:Xcode error when I add a framework添加框架时出现 Xcode 错误
【发布时间】:2013-03-31 00:23:44
【问题描述】:

当我通过将 .framework 从 Project Navigator 拖到选项卡中将其添加到“Link Binary With Libraries”列表中时,出现错误。

我的错误...

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 文件夹时,我看到带有红色名称的头文件。这可能与问题有关吗?

为什么会这样??

【问题讨论】:

  • KCPush 是您的项目文件之一吗?缺少的符号(UAPush 等)应该在哪里?
  • KCPush 应该是 KinveyKit.framework 的一部分。框架组中只有一个Headers文件夹,头文件红名。

标签: objective-c xcode kinvey


【解决方案1】:

UAPush = 城市飞艇推送。

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

Here you can download lib.

Complete Documentation about urban Airship push

Also checkout this urban Airship common error

【讨论】:

  • 非常感谢!我错过了那个指示。 :)
猜你喜欢
  • 2015-11-24
  • 1970-01-01
  • 1970-01-01
  • 2018-10-24
  • 2021-09-16
  • 1970-01-01
  • 1970-01-01
  • 2016-10-16
  • 2018-06-25
相关资源
最近更新 更多