我正在Xcode上開發一個cocos2d-x項目。我創建一個場景,我遇到了這個錯誤:cocos2d-x在Xcode中移植iOS應用時架構x86_64的未定義符號?
Undefined symbols for architecture x86_64:
"MainScene::scene()", referenced from:
Splash::finishSplash(float) in Splash.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我已經搜索了很長時間,看到很多解決方案。但我仍然對這個錯誤感到困惑。有時我遇到了x86_64
錯誤,有時會遇到i386
錯誤。我是iOS開發新手。那麼,如何解決這個問題
我曾嘗試以下,但錯誤還是出來:在Valid Architectures
- 刪除項目
i386
和arm64
加入Header Search Paths
- 檢查
Linked Frameworks and libraries
所有路徑
我正在使用cocos2d-x 2.2.6 cpp。 Xcode版本6.3.2(6D2105)。我使用python腳本來創建這個iOS項目。
嗨,@einveme你解決了這個問題嗎? –