簡體   English   中英

刪除Testflight后構建失敗

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM