2015-05-15 48 views
0

我在xcode 6.3中使用體系結構x64重建cocos2d v2.1.5時遇到了問題。請幫我解決這個問題。Xcode 6.3蘋果Match-O鏈接器錯誤,使用cocos2d v2.1.5項目

Undefined symbols for architecture arm64: 
    "_WebPGetFeaturesInternal", referenced from: 
     WebPGetFeatures(unsigned char const*, unsigned long, WebPBitstreamFeatures*) in CCImageCommonWebp.o 
    "_WebPInitDecoderConfigInternal", referenced from: 
     WebPInitDecoderConfig(WebPDecoderConfig*) in CCImageCommonWebp.o 
    "_WebPDecode", referenced from: 
     cocos2d::CCImage::_initWithWebpData(void*, int) in CCImageCommonWebp.o 
    "_NEON_Matrix4Mul", referenced from: 
     _kmMat4Multiply in mat4.o 
    "_AES_decrypt", referenced from: 
     DataEncrypt::parseXMLData(unsigned long, char const*) in UserDataEncrypt.o 
    "_AES_set_encrypt_key", referenced from: 
     DataEncrypt::save() in UserDataEncrypt.o 
    "_AES_encrypt", referenced from: 
     DataEncrypt::save() in UserDataEncrypt.o 
    "_AES_set_decrypt_key", referenced from: 
     DataEncrypt::parseXMLData(unsigned long, char const*) in UserDataEncrypt.o 
ld: symbol(s) not found for architecture arm64 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

回答

0

您必須將cocos2d更新到版本2.2.6。它是支持x64架構的最低版本。然而它不穩定,所以如果你有足夠的時間,你最好更新到3.6。

Link to tutorial

我們已經開始遷移,它看起來像它會因爲在API大的變化80+小時。

+0

我是新手,我怎麼升級到3.6。你有這個問題的教程。 –

+0

如果我更新cocos2d到版本2.2.6需要多長時間? –

+0

我們已經更新到2.2.6,沒有任何代碼變更,編譯成功,但有一堆運行時內存相關的錯誤,並決定遷移到3.6。 – lumenela