這兩天升級了xcode9.0之后,原來xcode8.3.3可以編譯成功的cocos2dx專案,現在出現apple mach-o linker(ld) Error,如下:
Undefined symbols for architecture arm64:
"non-virtual thunk to cocos2d::CCTextFieldTTF::canAttachWithIME()", referenced from:
vtable for cocos2d::ui::UICCTextField in UITextField.o
"non-virtual thunk to cocos2d::CCTextFieldTTF::canDetachWithIME()", referenced from:
vtable for cocos2d::ui::UICCTextField in UITextField.o
"non-virtual thunk to cocos2d::CCTextFieldTTF::attachWithIME()", referenced from:
vtable for cocos2d::ui::UICCTextField in UITextField.o
"non-virtual thunk to cocos2d::CCTextFieldTTF::detachWithIME()", referenced from:
vtable for cocos2d::ui::UICCTextField in UITextField.o
"non-virtual thunk to cocos2d::CCTextFieldTTF::getContentText()", referenced from:
vtable for cocos2d::ui::UICCTextField in UITextField.o
"_stopMediaAnimation", referenced from:
-[AudioRecorder audioPlayerDidFinishPlaying:successfully:] in AudioRecorder.o
"cocos2d::CCDictionary::removeObjectForKey(std::string const&)", referenced from:
cocos2d::extension::CCArmature::removeBone(cocos2d::extension::CCBone*, bool) in CCArmature.o
cocos2d::extension::CCArmatureDataManager::removeArmatureData(char const*) in CCArmatureDataManager.o
cocos2d::extension::CCArmatureDataManager::removeAnimationData(char const*) in CCArmatureDataManager.o
cocos2d::extension::CCArmatureDataManager::removeTextureData(char const*) in CCArmatureDataManager.o
"_sendDeviceTokenToServer", referenced from:
+[WXOcToCInterface sendDeviceTokenToServer:] in WXOcToCInterface.o
"AppDelegate::AppDelegate()", referenced from:
。。。。。。。。
我的專案設定為:ios deployment target:6.0
base SDK:ios 11.0
請大家能幫幫忙,請教一下,怎么解決呢?網上也差了很多辦法,都行不通,哎
uj5u.com熱心網友回復:
已經解決了,xcode9.0有個坑爹的地方,一定要注意!!!請參考:http://blog.csdn.net/thoris/article/details/78139274uj5u.com熱心網友回復:
厲害了。。。。。轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/56290.html
標籤:Cocos2d-x
上一篇:MySQL資料庫的編譯安裝程序
