原项目使用3.11.1,因为热更新不稳定,想要升级到3.15。我没有升级过引擎,所以只是cocos2d-x整体替换。又因为spine和cocosstudio的问题而将editor-support退回到3.11.1版本。在Windows和Android下都编译成功了,但是在ios却编译不过,报错如下:
Undefined symbols for architecture arm64:
“_OPENSSL_init_ssl”, referenced from:
_lws_context_init_ssl_library in libcocos2d iOS.a(ssl.c.o)
“_spSkinnedMeshAttachment_updateUVs”, referenced from:
_spSkeletonJson_readSkeletonData in libcocos2d iOS.a(SkeletonJson.o)
“_spSkinnedMeshAttachment_computeWorldVertices”, referenced from:
spine::SkeletonRenderer::drawSkeleton(cocos2d::Mat4 const&, unsigned int) in libcocos2d iOS.a(SkeletonRenderer.o)
spine::SkeletonRenderer::getBoundingBox() const in libcocos2d iOS.a(SkeletonRenderer.o)
“_spSkinnedMeshAttachment_create”, referenced from:
__spAtlasAttachmentLoader_newAttachment in libcocos2d iOS.a(AtlasAttachmentLoader.o)
“_OPENSSL_init_crypto”, referenced from:
_lws_context_init_ssl_library in libcocos2d iOS.a(ssl.c.o)
“_SSL_CTX_set_options”, referenced from:
_lws_context_init_client_ssl in libcocos2d iOS.a(ssl-client.c.o)
“spine::PolygonBatch::add(cocos2d::Texture2D const*, float const*, float const*, int, int const*, int, cocos2d::Color4B*)”, referenced from:
spine::SkeletonRenderer::drawSkeleton(cocos2d::Mat4 const&, unsigned int) in libcocos2d iOS.a(SkeletonRenderer.o)
“spine::PolygonBatch::flush()”, referenced from:
spine::SkeletonRenderer::drawSkeleton(cocos2d::Mat4 const&, unsigned int) in libcocos2d iOS.a(SkeletonRenderer.o)
“_TLS_client_method”, referenced from:
_lws_context_init_client_ssl in libcocos2d iOS.a(ssl-client.c.o)
“spine::PolygonBatch::createWithCapacity(long)”, referenced from:
spine::SkeletonRenderer::initialize() in libcocos2d iOS.a(SkeletonRenderer.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
请问该如何解决,或者只是升级热更新的话我应该怎样操作?
@minggo 麻烦了。
补充下xcode版本8.2.1