我是ios开发的菜鸟。我有一个项目,我需要从中删除testflight库。我一直在评论有关Testflight的所有引用行,但是现在我遇到了“ _TFLog”的下一个错误,但我不知道如何解决。

Undefined symbols for architecture armv7:
  "_TFLog", referenced from:
      -[BibliotecaViewController loadCategories] in BibliotecaViewController-49994DBCE4C92E5B.o
      -[ViewController viewDidLoad] in ViewController.o
      -[ViewController alertView:clickedButtonAtIndex:] in ViewController.o
      -[ViewController checkUpdatesLocally] in ViewController.o
      -[ViewController productsRequest:didReceiveResponse:] in ViewController.o
      -[ViewController request:didFailWithError:] in ViewController.o
      -[ViewController completedPurchaseTransaction:] in ViewController.o
      ...
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)


我需要做什么?

P.D .:对不起,我的英语,谢谢!

最佳答案

当您导入标头但不链接到库时,这是一个常见错误。

通常,您可以通过在build phases-> link Binary with Library的部分或build settings-> Search Paths-> Library Search Paths的部分中添加库来解决此问题。

但就您而言,您就不要使用TFLog。因此,首先在整个项目(TFLog)中搜索cmd+shift+F,然后删除相关行并尝试重建您的项目。

关于ios - 删除Testflight后构建失败,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/27858888/

10-11 14:34
查看更多