[英]Build failed after remove Testflight
我是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)
我需要做什么?
PD:对不起,我的英语,谢谢!
当您导入标头但不链接到库时,这是一个常见错误。
您通常可以通过在build phases
添加库来解决它-> link Binary with Library
的部分或build settings
-> Search Paths
-> Library Search Paths
的部分
但是在您的情况下,您不需要使用TFLog
。 因此,首先在整个项目( cmd+shift+F
)中搜索TFLog
并删除相关行,然后尝试重建您的项目。
在项目的* -Prefix.pch文件中,您需要删除下一行:
#define NSLog(FORMAT, ...) TFLog((@"%s [Line %d] " FORMAT), PRETTY_FUNCTION, LINE, ##__VA_ARGS__)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.