1. 程式人生 > >Undefined symbols for architecture i386或者armv7: “_OBJC_CLASS_$_XXX

Undefined symbols for architecture i386或者armv7: “_OBJC_CLASS_$_XXX

Undefined symbols for architecture i386: “_OBJC_CLASS_$_XXX”, referenced from: objc-class-ref in XXX

ld: symbol(s) not found for architecture i386

clang: error: linker command failed with exit code 1 (use -v to see invocation)

如果真機除錯就是 undefined symbols for architecture armv7錯誤! 發生這種錯誤通常是project.pbxproj這個檔案引起的,尤其在多人合作開發的時候,svn提交不規範可能導致project.pbxproj發生錯誤,導致檔案的引用不在project.pbxproj檔案中。 xcode專案import檔案會根據project.pbxproj來查詢,查詢不到檔案的引用則會有上述的錯誤。 解決方法點選工程,在主介面中點選Build Phases,根據提示資訊“XXX”來判斷缺少什麼檔案,一般如果缺少自定義的檔案,XXX會是缺少的類名,那麼就在Complie Sources中加入該檔案。如果缺少類庫,則在Link Binary With Libraries中加入該類庫。
Undefined symbols 
for architecture i386:
02 "TextureMan::LoadTexture(std::__1::basic_string, std::__1::allocator > const&, int, bool)", referenced from:
03 tolua_gameinterface_TextureMan_loadTexture00(lua_State*) inlibCoreClientiOS.a(tolua_gameinterface.o)
04
"SoundManager::BgndMusicPlay(std::__1::basic_string, std::__1::allocator > const&, bool)", referenced from:
05 tolua_gameinterface_SoundManager_BgndMusicPlay00(lua_State*) inlibCoreClientiOS.a(tolua_gameinterface.o)
06 "SoundManager::BgndMusicStop(std::__1::basic_string, std::__1::allocator > const&, bool)"
, referenced from:
07 tolua_gameinterface_SoundManager_BgndMusicStop00(lua_State*) inlibCoreClientiOS.a(tolua_gameinterface.o)
08 "Font::LoadFont(std::__1::basic_string, std::__1::allocator > const&)", referenced from:
09 tolua_gameinterface_Font_loadFont00(lua_State*) inlibCoreClientiOS.a(tolua_gameinterface.o)
10 "System::MakeDocumentPath(std::__1::basic_string, std::__1::allocator > const&) const", referenced from:
11 tolua_gameinterface_System_makeDocumentPath00(lua_State*) inlibCoreClientiOS.a(tolua_gameinterface.o)
12 "System::MakeResourcePath(std::__1::basic_string, std::__1::allocator > const&) const"

相關推薦

Undefined symbols for architecture i386或者armv7: “_OBJC_CLASS_$_XXX

Undefined symbols for architecture i386: “_OBJC_CLASS_$_XXX”, referenced from: objc-class-ref in XXX ld: symbol(s) not fo

新增第三方類庫造成的Undefined symbols for architecture i386 編譯錯誤

也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!                1.原因:如果是原始碼編譯的話,一般就只某些標頭檔案沒有新增到src編譯裡面。但是對於新增庫編譯,一般是庫的編譯路徑設定不正確(比如arm的版本、模擬器或者真機

iOS Undefined symbols for architecture i386:

出現如下錯誤: Undefined symbols for architecture i386:   "_OBJC_CLASS_$_PlayerControlsBar", referenced from:     &nbs

執行iPhone6模擬器時連結出錯:"libstdc++.6.0.9.dylib:Undefined symbols for architecture i386"

1、問題描述 Xcode6執行iPhone6(or Plus)模擬器,工程中引入的第三方庫zxing、高德sdk編譯不過,原因是這些庫中引用的libstdc++.6.0.9.dylib中的C++函式不支援模擬器。 2、解決方法 更改Xcode6中C++的編譯選項,將C

Undefined symbols for architecture i386: "_SecItemAdd", referenced from:

Undefined symbols for architecture i386:   "_SecItemAdd", referenced from:       +[SFHFKeychainUtils storeUsername:andPassword:forService

微信分享SDK匯入報錯 Undefined symbols for architecture i386:

匯入微信分享SDK時,出現以下的錯誤資訊: Undefined symbols for architecture i386: “operator delete“, referenced from: +[WeChatApiUtil Encod

IOS報錯解決(一) ------ Undefined symbols for architecture armv7錯誤

  Undefined symbols for architecture armv7:   "_OBJC_CLASS_$_BriefMainModel", referenced from:       objc-class-r

Undefined symbols for architecture arm64: "_OBJC_CLASS_$_CNContactPickerViewController", reference

Undefined symbols for architecture arm64:   "_OBJC_CLASS_$_CNContactPickerViewController", referenced from:       objc-class-ref in 

ios Undefined symbols for architecture x86_64: "XXX", "_OBJC_CLASS_$_", referenced fr

iOS出現錯誤。 Undefined symbols for architecture x86_64:   "_IJKMPMediaPlaybackIsPreparedToPlayDidChangeNotification", referenced from:  

編譯報錯:Undefined symbols for architecture arm64: "_OBJC_CLASS_$_類名", referenced from

報錯: Undefined symbols for architecture arm64: “_OBJC_CLASS_$_類名”, referenced from : Objc-class-ref

Undefined symbols for architecture arm64 "_OBJC_CLASS_$_FBSession", referenced from

今天用xcode動態分析專案的時候發現程式突然跑不起來了(run 的時候是沒問題的),5個錯誤,都是關於百度地圖的問題。 Undefined symbols for architecture arm64  "_OBJC_CLASS_$_FBSession", referen

Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_EditRecordViewController", referenced fr

多個人共同操作同一個專案或拷貝專案時,經常會出現類似這樣的問題: Undefined symbols for architecture i386: "_OBJC_CLASS_$_xx檔名", referenced from: 下面是可能導致這類問題出現的原因及修改: 1.相關工程檔案未匯

caffe 編譯問題 Undefined symbols for architecture x86_64

編譯準備環境:homebrew安裝包環境:(mac)環境下 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 安裝完成之後,各種ca

iOS Undefined symbols for architecture arm64

Undefined symbols for architecture arm64:  "_OBJC_CLASS_$_YYCache", referenced from:      objc-class-ref in LFNetworking.o&nb

Undefined symbols for architecture arm64

使用CocoaPod引入 AFNetworking ,出現錯誤 1.Undefined symbols for architecture arm64 search:https://stackoverflow.com/questions/19213782/undefined-symbols

Xcode升級到5.1& iOS升級到iOS7.1問題:Undefined symbols for architecture x86_64

Xcode升級到5.1 新特性之一就是預設讓所有App都通過64位編譯器編譯。原來在Xcode5.0.x的時候預設的Standard architectures只有(arm7,armv7s),到5.1之後預設就帶上ar

Xcode編譯Error ----Undefined symbols for architecture

Xcode build的時候報錯 Undefined symbols for architecture arm64: ... "_OBJC_CLASS_$_AFHTTPRequestOperationManager", referenced from

Undefined symbols for architecture arm64:

今天準備寫推送,就把以前寫過的程式碼拖過來用,但是編譯報錯了,我特別鬱悶,怎麼會報錯,在原來專案上執行的好好,所以我就根據報錯去網上查原因,(我也引入jpush的jpush-ios-2.1.0.a也報了類似的錯誤,上面的截圖是我先把.a檔案刪了,想一個一個找原因的截圖)

iOS經典錯誤Undefined symbols for architecture XXX

首先宣告 因為我是在真機上編譯的專案,所以報錯的架構(CPU指令集)為arm64。 如果我們使用64位模擬器(iPhone simulators 5s 或更高版本)編譯或者執行專案,就會報以下錯誤: Undefined symbols for arch

Undefined symbols for architecture x86_64:的一種解決辦法

Undefined symbols for architecture x86_64:   "_iconv_open", referenced from:       _main in main