viernes, 5 de diciembre de 2014

Cocos2d-x v3.x and Xcode 6.x with ARM 64 Architecture


When I upgraded to Xcode 6, I noticed that there were lots of linking problems in Cocos2d-x projects that used to work fine with previous versions of Xcode. The problems are related to the ARM 64 architecture. After searching a while, I found hints to the solution, although I was missing a more step-by-step solution. So here it is how I solved it.

1) Add linker flags for ARM 64 architecture. In your target, select Build Settings > Linking > Other Linker Flags and set the following flags for Debug and Release for arm64 architecture:


EDIT: this is no longer required from Cocos2d-x v3.4.

2) Add library paths. In your target, select Build Settings > Search Paths > Library Search Paths, and write the following directory for Debug and Release.


And don't forget to set "recursive".

Hope it's useful. See you!

1 comentario: