直接用xcode:
Initializing JavaScriptCore
cocos2d: fullPathForFilename: No file found at script/jsb_prepare.jsc. Possible missing file.
cocos2d: fullPathForFilename: No file found at script/jsb_boot.jsc. Possible missing file.
JS: Cocos2d-x-lite v1.7.0
ERROR (xxxxx/build/jsb-default/frameworks/cocos2d-x/cocos/scripting/js-bindings/manual/jsb_global.cpp, 80): Can’t decrypt code for src/settings.jsc
ScriptEngine::runScript script src/settings.js, buffer is empty!
ERROR (/xxxxxx/build/jsb-default/frameworks/cocos2d-x/cocos/scripting/js-bindings/manual/jsb_global.cpp, 80): Can’t decrypt code for src/jsb_polyfill.jsc
ScriptEngine::runScript script src/jsb_polyfill.js, buffer is empty!
ERROR: TypeError: undefined is not an object (evaluating ‘settings.debug’), location: main.js
23STACK:
boot@main.js
23main.js:200:13
global code@main.js:203:3
2017-10-20 11:20:53.066325+0800 jinhuaH5-mobile[67728:43683724] cocos2d: surface size: 2436x1125
2017-10-20 11:20:53.108930+0800 jinhuaH5-mobile[67728:43683724] cocos2d: surface size: 2436x1125
构建发布用的是cocos2dx-lite 版本
直接creator 到运行模拟器 app会闪退
** BUILD SUCCEEDED **
CoreData: annotation: Failed to load optimized model at path ‘/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Frameworks/InstrumentsPackaging.framework/Versions/A/Resources/XRPackageModel.momd/XRPackageModel 9.0.omo’
Build succeed.
Deploying mode: release
Starting application.
Using simulator: iPhone 8 Plus (11.0)
running: ‘xcrun instruments -w “155A4905-D786-4535-B20E-B50370A60A8C”’
CoreData: annotation: Failed to load optimized model at path ‘/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Frameworks/InstrumentsPackaging.framework/Versions/A/Resources/XRPackageModel.momd/XRPackageModel 9.0.omo’
instruments[54698]: Waiting for device to boot…
Instruments Usage Error: No template (-t) specified
instruments, version 9.0 (63198)
usage: instruments [-t template] [-D document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [application [-e variable value] [argument …]]]
running: ‘xcrun simctl install “155A4905-D786-4535-B20E-B50370A60A8C” “/xxxxxxxxxxxxxx/build/jsb-default/publish/ios/jinhuaH5-mobile.app”’
running: ‘xcrun simctl launch “155A4905-D786-4535-B20E-B50370A60A8C” “org.cocos2d.helloworld”’
org.cocos2d.helloworld: 54799

