Cocoapods-Flurry& TestFlight-体系结构的未定义符号 [英] Cocoapods - Flurry & TestFlight - Undefined symbols for architecture

查看:106
本文介绍了Cocoapods-Flurry& TestFlight-体系结构的未定义符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在升级项目以使用Cocoapods,当我尝试为iOS设备或模拟器构建项目时,会得到:

I'm upgrading my project to use Cocoapods and when I try building my project for an iOS device or for a simulator I get:

Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_TestFlight", referenced from:
      objc-class-ref in PhotoPreviewViewController.o
  "_OBJC_CLASS_$_Flurry", referenced from:
      objc-class-ref in MyAppDelegate.o
      objc-class-ref in InitialSetupViewController.o
      objc-class-ref in InitialDownloadViewController.o
      objc-class-ref in HistoryViewController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

(当然,其架构有所不同)

(with the architecture different of course)

与库链接二进制文件"下的libPods.a为黑色,因此我认为那里没有任何问题.它还对它们两个都进行自动完成,因此我不确定为什么在编译时找不到它们.

Under "Link Binary With Libraries" libPods.a is black so I don't think there is any issue there. It is also doing autocomplete for both of them, so I'm not sure why it isn't finding them at the compile time.

有什么建议吗?

推荐答案

以下内容对我有用:

在构建设置"中,请勿覆盖其他链接器标志".如果它是粗体,请选择它并按Backspace键,它应该恢复到其正常状态.如果未解决,请删除所有标志,删除并重新安装Pod,这样就可以解决此问题.

In the Build Settings, do not override "Other Linker Flags". If it is bold, select it and press backspace, it should be back to its normal state. If it is not fixed, delete all flags, remove and reinstall Pods and that should fix it.

这篇关于Cocoapods-Flurry& TestFlight-体系结构的未定义符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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