Cocos gen-libs and import to xcode

Hi, running command:
cocos gen-libs -m debug
last rows printed inconsolle are:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: /librerieGiochi/cocos2d-x-3.13.1/build/../external/curl/prebuilt/ios/libcrypto.a(e_gmp.o) has no symbols

** BUILD SUCCEEDED **

running: 'lipo -create -output "/librerieGiochi/cocos2d-x-3.13.1/prebuilt/ios/libcocos2d iOS.a" "/librerieGiochi/cocos2d-x-3.13.1/prebuilt/ios/simulator/libcocos2d iOS.a" "/librerieGiochi/cocos2d-x-3.13.1/prebuilt/ios/device/libcocos2d iOS.a"'

fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't write to output file: /librerieGiochi/cocos2d-x-3.13.1/prebuilt/ios/libcocos2d iOS.a.lipo (Undefined error: 0)
Error running command, return code: 1.

so I run the command manually lipo create ecc…

following this tutorial (for now only iOS part):
http://discuss.cocos2d-x.org/t/how-to-speed-up-cocos2d-x-build-with-prebuilt-lib/23402

compileing for device gave me tons of error like:

ld: warning: ignoring file /librerieGiochi/cocos2d-x-3.13.1/prebuilt/ios/libcocos2d iOS.a, missing required architecture arm64 in file /librerieGiochi/cocos2d-x-3.13.1/prebuilt/ios/libcocos2d iOS.a (2 slices)
Undefined symbols for architecture arm64:
  "cocos2d::Layer::getDescription() const", referenced from:
      vtable for InGame in InGameScene.o

compile for simulator:

Undefined symbols for architecture i386:
  "cocos2d::Node::setIgnoreAnchorPointForPosition(bool)", referenced from:
      vtable for HelloWorld in HelloWorldScene.o
      vtable for InGame in InGameScene.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Weird. I don’t see this.

What XCode version? What OS version?

xcode 7 (7A220)
osx Yosemite 10.10.5