簡體   English   中英

構建失敗錯誤:未定義的符號

[英]Build Failed Error: Undefined Symbols

當我嘗試構建我的項目時出現此錯誤。

Undefined symbols for architecture i386:
  "_OBJC_IVAR_$_UINavigationBar.images", referenced from:
      -[UINavigationBar(CustomImage) drawRect:] in AppDelegate.o
      -[UINavigationBar(CustomImage) setImagesNames:] in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

任何人都可以幫忙嗎?

Go 到您的 AppDelegate class 並檢查您的 UINavigationBar 類別的包含。 您的類別從項目中丟失,或者它是私有的。 我最好的猜測是它丟失了,或者當你創建它時你沒有選中目標復選框。 他們刪除它並重新添加它。 將其重新添加以檢查活動目標的文件時要小心。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

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