cocos2dx 4.0 ios 大佬们请教下

大佬们,本人ios小白,新建一个hello的cocos2dx项目,然后cocos run --proj-dir … -p ios生成.xcodeproj,在xcode中真机调试,一直报错,请问下是差什么东西吗?我的项目在xcode中显示这样,对吗?

微信图片_20201209164528

没有大佬告诉我一下吗?

没人能帮忙解决一下吗

别用cocos2d-x了,官方已经放弃维护了(嘴巴说会继续维护,事实是超过整整一年都没有更新)

报错截图截全一点,或者直接贴一下全部的log信息

你好,我又重新新建了一个hello,用cocos run --proj-dir … -p ios生成.xcodeproj,在真机上调试,代码什么都没改,这是编译后的报错日志,麻烦你帮我看看吧,非常感谢!Build target hello_2020-12-10T16-35-03.rar (6.8 KB)

我截了报错的一部分日志:
Ld ios-build/bin/hello/Debug/hello.app/hello normal arm64
cd /Users/mozit/Documents/lina/cocos/Projects/hello
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target arm64-apple-ios8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk -L/Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/bin/hello/Debug -F/Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/bin/hello/Debug -filelist /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/hello.build/Debug-iphoneos/hello.build/Objects-normal/arm64/hello.LinkFileList -dead_strip -Xlinker -object_path_lto -Xlinker /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/hello.build/Debug-iphoneos/hello.build/Objects-normal/arm64/hello_lto.o -Xlinker -no_deduplicate -fobjc-link-runtime -Wl,-headerpad_max_install_names /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libluacocos2d.a /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libcocos2d.a /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libexternal.a /Users/mozit/Documents/lina/cocos/Projects/hello/frameworks/cocos2d-x/external/Box2D/prebuilt/ios/libbox2d.a /Users/mozit/Documents/lina/cocos/Projects/hello/frameworks/cocos2d-x/external/chipmunk/prebuilt/ios/libchipmunk.a /Users/mozit/Documents/lina/cocos/Projects/hello/frameworks/cocos2d-x/external/freetype2/prebuilt/ios/libfreetype.a /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_recast.a /Users/mozit/Documents/lina/cocos/Projects/hello/frameworks/cocos2d-x/external/bullet/prebuilt/ios/libLinearMath.a /Users/mozit/Documents/lina/cocos/Projects/hello/frameworks/cocos2d-x/external/bullet/prebuilt/ios/libBulletDynamics.a /Users/mozit/Documents/lina/cocos/Projects/hello/frameworks/cocos2d-x/external/bullet/prebuilt/ios/libBulletCollision.a /Users/mozit/Documents/lina/cocos/Projects/hello/frameworks/cocos2d-x/external/bullet/prebuilt/ios/libLinearMath.a /Users/mozit/Documents/lina/cocos/Projects/hello/frameworks/cocos2d-x/external/bullet/prebuilt/ios/libBulletMultiThreaded.a /Users/mozit/Documents/lina/cocos/Projects/hello/frameworks/cocos2d-x/external/bullet/prebuilt/ios/libMiniCL.a /Users/mozit/Documents/lina/cocos/Projects/hello/frameworks/cocos2d-x/external/jpeg/prebuilt/ios/libjpeg.a /Users/mozit/Documents/lina/cocos/Projects/hello/frameworks/cocos2d-x/external/webp/prebuilt/ios/libwebp.a /Users/mozit/Documents/lina/cocos/Projects/hello/frameworks/cocos2d-x/external/websockets/prebuilt/ios/libwebsockets.a /Users/mozit/Documents/lina/cocos/Projects/hello/frameworks/cocos2d-x/external/openssl/prebuilt/ios/libssl.a /Users/mozit/Documents/lina/cocos/Projects/hello/frameworks/cocos2d-x/external/openssl/prebuilt/ios/libcrypto.a /Users/mozit/Documents/lina/cocos/Projects/hello/frameworks/cocos2d-x/external/uv/prebuilt/ios/libuv_a.a /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_tinyxml2.a /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_xxhash.a /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_xxtea.a /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_clipper.a /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_edtaa3func.a /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_convertUTF.a /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_poly2tri.a /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_md5.a /Users/mozit/Documents/lina/cocos/Projects/hello/frameworks/cocos2d-x/external/curl/prebuilt/ios/libcurl.a /Users/mozit/Documents/lina/cocos/Projects/hello/frameworks/cocos2d-x/external/png/prebuilt/ios/libpng.a /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_unzip.a /Users/mozit/Documents/lina/cocos/Projects/hello/frameworks/cocos2d-x/external/glsl-optimizer/prebuilt/ios/libglcpp-library.a /Users/mozit/Documents/lina/cocos/Projects/hello/frameworks/cocos2d-x/external/glsl-optimizer/prebuilt/ios/libglsl_optimizer.a /Users/mozit/Documents/lina/cocos/Projects/hello/frameworks/cocos2d-x/external/glsl-optimizer/prebuilt/ios/libmesa.a -F /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks -framework UIKit -F /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks -framework OpenGLES -F /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks -framework CoreMotion -F /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks -framework AVKit -F /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks -framework CoreMedia -F /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks -framework CoreText -F /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks -framework Security -F /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks -framework CoreGraphics -F /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks -framework AVFoundation -F /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks -framework WebKit -F /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks -framework OpenAL -F /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks -framework AudioToolbox -F /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks -framework QuartzCore -F /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks -framework Foundation -F /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks -framework GameController -F /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks -framework Metal /usr/lib/libz.dylib /usr/lib/libiconv.dylib /Users/mozit/Documents/lina/cocos/Projects/hello/frameworks/cocos2d-x/external/lua/luajit/prebuilt/ios/libluajit.a /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_tolua.a /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_luasocket.a -Xlinker -dependency_info -Xlinker /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/hello.build/Debug-iphoneos/hello.build/Objects-normal/arm64/hello_dependency_info.dat -o /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/bin/hello/Debug/hello.app/hello

ld: warning: ld: warning: ignoring file /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libcocos2d.a, missing required architecture arm64 in file /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libcocos2d.a (2 slices)
ignoring file /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libexternal.a, missing required architecture arm64 in file /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libexternal.a (2 slices)
ld: warning: ignoring file /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libluacocos2d.a, missing required architecture arm64 in file /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libluacocos2d.a (2 slices)
ld: warning: ignoring file /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_recast.a, missing required architecture arm64 in file /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_recast.a (2 slices)
ld: warning: ignoring file /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_tinyxml2.a, missing required architecture arm64 in file /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_tinyxml2.a (2 slices)
ld: warning: ignoring file /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_xxhash.a, missing required architecture arm64 in file /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_xxhash.a (2 slices)
ld: warning: ignoring file /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_xxtea.a, missing required architecture arm64 in file /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_xxtea.a (2 slices)
ld: warning: ignoring file /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_clipper.a, missing required architecture arm64 in file /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_clipper.a (2 slices)
ld: warning: ignoring file /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_edtaa3func.a, missing required architecture arm64 in file /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_edtaa3func.a (2 slices)
ld: warning: ignoring file /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_convertUTF.a, missing required architecture arm64 in file /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_convertUTF.a (2 slices)
ld: warning: ignoring file /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_md5.a, missing required architecture arm64 in file /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_md5.a (2 slices)
ld: warning: ignoring file /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_poly2tri.a, missing required architecture arm64 in file /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_poly2tri.a (2 slices)
ld: warning: ignoring file /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_unzip.a, missing required architecture arm64 in file /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_unzip.a (2 slices)
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/CoreMotion.framework/CoreMotion.tbd, missing required architecture arm64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/CoreMotion.framework/CoreMotion.tbd (2 slices)
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/OpenGLES.framework/OpenGLES.tbd, missing required architecture arm64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/OpenGLES.framework/OpenGLES.tbd (2 slices)
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/AVKit.framework/AVKit.tbd, missing required architecture arm64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/AVKit.framework/AVKit.tbd (2 slices)
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/CoreText.framework/CoreText.tbd, missing required architecture arm64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/CoreText.framework/CoreText.tbd (2 slices)
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/Security.framework/Security.tbd, missing required architecture arm64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/Security.framework/Security.tbd (2 slices)
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics.tbd, missing required architecture arm64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics.tbd (2 slices)
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/CoreMedia.framework/CoreMedia.tbd, missing required architecture arm64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/CoreMedia.framework/CoreMedia.tbd (2 slices)
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/OpenAL.framework/OpenAL.tbd, missing required architecture arm64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/OpenAL.framework/OpenAL.tbd (2 slices)
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/UIKit.framework/UIKit.tbd, missing required architecture arm64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/UIKit.framework/UIKit.tbd (2 slices)
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/WebKit.framework/WebKit.tbd, missing required architecture arm64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/WebKit.framework/WebKit.tbd (2 slices)
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox.tbd, missing required architecture arm64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/AudioToolbox.framework/AudioToolbox.tbd (2 slices)
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/QuartzCore.framework/QuartzCore.tbd, missing required architecture arm64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/QuartzCore.framework/QuartzCore.tbd (2 slices)
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/GameController.framework/GameController.tbd, missing required architecture arm64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/GameController.framework/GameController.tbd (2 slices)
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/AVFoundation.framework/AVFoundation.tbd, missing required architecture arm64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/AVFoundation.framework/AVFoundation.tbd (2 slices)
ld: warning: ignoring file /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_tolua.a, missing required architecture arm64 in file /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_tolua.a (2 slices)
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/Metal.framework/Metal.tbd, missing required architecture arm64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/Metal.framework/Metal.tbd (2 slices)
ld: warning: ignoring file /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_luasocket.a, missing required architecture arm64 in file /Users/mozit/Documents/lina/cocos/Projects/hello/ios-build/lib/Debug/libext_luasocket.a (2 slices)
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/Foundation.framework/Foundation.tbd, missing required architecture arm64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk/System/Library/Frameworks/Foundation.framework/Foundation.tbd (2 slices)
ld: warning: Could not find or use auto-linked framework ‘CoreFoundation’
Undefined symbols for architecture arm64:
"OBJC_METACLASS_UIViewController", referenced from: _OBJC_METACLASS__RootViewController in RootViewController.o
"OBJC_CLASS_UIViewController", referenced from: _OBJC_CLASS__RootViewController in RootViewController.o
“cocos2d::GLViewImpl::_pixelFormat”, referenced from:
-[RootViewController loadView] in RootViewController.o
“___CFConstantStringClassReference”, referenced from:
CFString in AppController.o
CFString in main.o
OBJC_CLASS_UIApplication", referenced from: objc-class-ref in AppController.o "_OBJC_CLASS__UIDevice”, referenced from:
objc-class-ref in AppController.o
OBJC_CLASS_UIWindow", referenced from: objc-class-ref in AppController.o "_OBJC_CLASS__NSUserDefaults”, referenced from:
objc-class-ref in AppController.o
“cocos2d::Application::getInstance()”, referenced from:
-[AppController application:didFinishLaunchingWithOptions:] in AppController.o
-[AppController applicationDidEnterBackground:] in AppController.o
-[AppController applicationWillEnterForeground:] in AppController.o
-[RootViewController didRotateFromInterfaceOrientation:] in RootViewController.o
“cocos2d::GLViewImpl::convertAttrs()”, referenced from:
-[AppController application:didFinishLaunchingWithOptions:] in AppController.o
“cocos2d::Application::applicationScreenSizeChanged(int, int)”, referenced from:
vtable for AppDelegate in AppDelegate.o
“cocos2d::Application::run()”, referenced from:
-[AppController application:didFinishLaunchingWithOptions:] in AppController.o
“cocos2d::Application::setAnimationInterval(float)”, referenced from:
vtable for AppDelegate in AppDelegate.o
“cocos2d::Application::Application()”, referenced from:
AppDelegate::AppDelegate() in AppDelegate.o
“cocos2d::Application::getVersion()”, referenced from:
vtable for AppDelegate in AppDelegate.o
“_UIApplicationMain”, referenced from:
_main in main.o
“typeinfo for cocos2d::Application”, referenced from:
typeinfo for AppDelegate in AppDelegate.o
OBJC_CLASS_UIScreen", referenced from: objc-class-ref in AppController.o objc-class-ref in RootViewController.o "cocos2d::Director::stopAnimation()", referenced from: AppDelegate::applicationDidEnterBackground() in AppDelegate.o "cocos2d::Director::getInstance()", referenced from: AppDelegate::applicationDidFinishLaunching() in AppDelegate.o AppDelegate::applicationDidEnterBackground() in AppDelegate.o AppDelegate::applicationWillEnterForeground() in AppDelegate.o -[AppController application:didFinishLaunchingWithOptions:] in AppController.o -[RootViewController didRotateFromInterfaceOrientation:] in RootViewController.o "cocos2d::FileUtils::getInstance()", referenced from: AppDelegate::applicationDidFinishLaunching() in AppDelegate.o "cocos2d::Director::setOpenGLView(cocos2d::GLView*)", referenced from: -[AppController application:didFinishLaunchingWithOptions:] in AppController.o "cocos2d::Director::setAnimationInterval(float)", referenced from: AppDelegate::applicationDidFinishLaunching() in AppDelegate.o "cocos2d::GLViewImpl::_depthFormat", referenced from: -[RootViewController loadView] in RootViewController.o "cocos2d::Application::getCurrentLanguageCode()", referenced from: vtable for AppDelegate in AppDelegate.o "cocos2d::Application::getTargetPlatform()", referenced from: vtable for AppDelegate in AppDelegate.o "cocos2d::GLViewImpl::createWithEAGLView(void*)", referenced from: -[AppController application:didFinishLaunchingWithOptions:] in AppController.o "cocos2d::LuaEngine::getInstance()", referenced from: AppDelegate::applicationDidFinishLaunching() in AppDelegate.o "cocos2d::ScriptEngineManager::setScriptEngine(cocos2d::ScriptEngineProtocol*)", referenced from: AppDelegate::applicationDidFinishLaunching() in AppDelegate.o "lua_module_register(lua_State*)", referenced from: AppDelegate::applicationDidFinishLaunching() in AppDelegate.o "cocos2d::FileUtils::addSearchPath(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool)", referenced from: AppDelegate::applicationDidFinishLaunching() in AppDelegate.o "_CFStringGetCStringPtr", referenced from: fixStringForCoreData(objc_object*) in libarclite_iphoneos.a(arclite.o) "cocos2d::GLView::setGLContextAttrs(GLContextAttrs&)", referenced from: AppDelegate::initGLContextAttrs() in AppDelegate.o "_OBJC_CLASS__NSAutoreleasePool”, referenced from:
objc-class-ref in main.o
“cocos2d::Application::~Application()”, referenced from:
AppDelegate::~AppDelegate() in AppDelegate.o
“cocos2d::Application::getCurrentLanguage()”, referenced from:
vtable for AppDelegate in AppDelegate.o
OBJC_CLASS$_CCEAGLView”, referenced from:
objc-class-ref in RootViewController.o
“cocos2d::Application::openURL(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)”, referenced from:
vtable for AppDelegate in AppDelegate.o
“cocos2d::ScriptEngineManager::getInstance()”, referenced from:
AppDelegate::applicationDidFinishLaunching() in AppDelegate.o
“_kCFCoreFoundationVersionNumber”, referenced from:
__ARCLite__load() in libarclite_iphoneos.a(arclite.o)
“cocos2d::Director::startAnimation()”, referenced from:
AppDelegate::applicationWillEnterForeground() in AppDelegate.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

要沉了啊啊啊

libcocos2d.a 这几个.a文件导入近来没有,或者路径下有没有找到,我猜的
一般都是缺东西报错。按照官方给的模板项目打开应该没问题。不行,换个版本多验证下。
光靠这几个截图不好看出问题,只能自己多摸索一下先

好的,谢谢你,在摸索中