Using xcode, I’ve built to test on device, everything runs fine.
When I switched to simulator, xcode got error when linking:
“…libcocos2d.a(ftbase.ios8_x86_64.o), building for iOS simulator, but linking in object file built for OSX, for architecture x86_64”
I guessed it was because of linking wrong file of freetype2 library but xcode showed the linked library had been already in the “ios” folder: