1.6.2正式版ios构建项目出错,@引擎开发人员

cocos console 日志
Compiling js files to bytecode.
Compiling js (/Data/SVN/client/build/jsb-binary/src/jsb_polyfill.js) to bytecode…
running: ‘"/Applications/CocosCreator.app/Contents/Resources/cocos2d-x/tools/cocos2d-console/plugins/plugin_jscompile/bin/jsbcc" “/Data/SVN/client/build/jsb-binary/src/jsb_polyfill.js” “/Data/SVN/client/build/jsb-binary/src/jsb_polyfill.jsc”’

Input file: /Data/SVN/client/build/jsb-binary/src/jsb_polyfill.js
Compiling …
Encoding …
Done! Output file: /Data/SVN/client/build/jsb-binary/src/jsb_polyfill.jsc
Compiling js (/Data/SVN/client/build/jsb-binary/src/project.js) to bytecode…
running: ‘"/Applications/CocosCreator.app/Contents/Resources/cocos2d-x/tools/cocos2d-console/plugins/plugin_jscompile/bin/jsbcc" “/Data/SVN/client/build/jsb-binary/src/project.js” “/Data/SVN/client/build/jsb-binary/src/project.jsc”’

Input file: /Data/SVN/client/build/jsb-binary/src/project.js
Compiling …
Error! /Data/SVN/client/build/jsb-binary/src/project.js line:8045 msg: missing ) after for-loop control
Stack:
Compiled /Data/SVN/client/build/jsb-binary/src/project.js fails!
Error running command, return code: 1.

编辑器日志
2017-10-20T03:31:40.733Z - normal: Load ~/.CocosCreator/settings.json
2017-10-20T03:31:40.737Z - normal: checking language setting…
2017-10-20T03:31:40.737Z - normal: Language: zh
2017-10-20T03:31:41.686Z - success: protocol editor-framework registered
2017-10-20T03:31:41.686Z - success: protocol app registered
2017-10-20T03:31:41.686Z - success: protocol theme registered
2017-10-20T03:31:41.686Z - success: protocol profile registered
2017-10-20T03:31:41.687Z - success: protocol packages registered
2017-10-20T03:31:41.689Z - success: protocol unpack registerred
2017-10-20T03:31:41.689Z - success: protocol disable-commonjs registerred
2017-10-20T03:31:41.903Z - normal: connected!
2017-10-20T03:31:41.908Z - normal: Check project /Data/SVN/client
2017-10-20T03:31:41.910Z - normal: Initializing Cocos2d
2017-10-20T03:31:42.158Z - normal: Initializing Asset Database
2017-10-20T03:31:42.210Z - success: protocol uuid registerred
2017-10-20T03:31:42.210Z - success: protocol db registerred
2017-10-20T03:31:42.210Z - success: protocol thumbnail registerred
2017-10-20T03:31:42.210Z - normal: Loading editor/builtin packages
2017-10-20T03:31:42.233Z - success: anysdk loaded
2017-10-20T03:31:42.387Z - success: assets loaded
2017-10-20T03:31:42.392Z - success: builder loaded
2017-10-20T03:31:42.398Z - success: hierarchy loaded
2017-10-20T03:31:42.406Z - success: inspector loaded
2017-10-20T03:31:42.408Z - success: keystore loaded
2017-10-20T03:31:42.414Z - success: node-library loaded
2017-10-20T03:31:42.418Z - success: package-asset loaded
2017-10-20T03:31:42.421Z - success: preferences loaded
2017-10-20T03:31:42.425Z - success: project-exporter loaded
2017-10-20T03:31:42.443Z - success: project-importer loaded
2017-10-20T03:31:42.447Z - success: project-settings loaded
2017-10-20T03:31:42.451Z - success: ui-kit loaded
2017-10-20T03:31:42.460Z - success: ui-grid loaded
2017-10-20T03:31:42.465Z - success: scene loaded
2017-10-20T03:31:42.467Z - success: sprite-editor loaded
2017-10-20T03:31:42.473Z - success: store loaded
2017-10-20T03:31:42.479Z - success: timeline loaded
2017-10-20T03:31:42.479Z - normal: Loading builtin packages
2017-10-20T03:31:42.485Z - success: asset-db-debugger loaded
2017-10-20T03:31:42.487Z - success: color-picker loaded
2017-10-20T03:31:42.494Z - success: console loaded
2017-10-20T03:31:42.498Z - success: package-manager loaded
2017-10-20T03:31:42.504Z - success: sdkbox loaded
2017-10-20T03:31:42.509Z - success: tester loaded
2017-10-20T03:31:42.513Z - success: ui-kit-preview-extra loaded
2017-10-20T03:31:42.518Z - success: ui-kit-preview loaded
2017-10-20T03:31:42.522Z - success: ui-tree loaded
2017-10-20T03:31:43.536Z - normal: Initializing project /Data/SVN/client
2017-10-20T03:31:43.539Z - normal: Loading packages
2017-10-20T03:31:43.555Z - success: i18n loaded
2017-10-20T03:31:43.555Z - normal: Watching packages
2017-10-20T03:31:43.582Z - normal: Run Application
2017-10-20T03:31:50.813Z - success: preview server running at http://localhost:7456
2017-10-20T03:31:57.692Z - normal: 1.6.2
2017-10-20T03:32:00.770Z - warn: The Asset used by component “cc.Button” in prefab “HistoryWnd.prefab” is missing. Detailed information:
Node path: “HistoryWnd/Main/viewlist/view/content/HistoryItem/btnOp”
Asset url: “db://assets/resources/prefabs/Windows/HistoryWnd.prefab”
Missing uuid: “215052c8-acc5-4280-ad93-b5efa9bb294e”

2017-10-20T03:32:00.777Z - warn: The Asset used by component “cc.Button” in prefab “HistoryWnd.prefab” is missing. Detailed information:
Node path: “HistoryWnd/Record/viewlist/view/content/HistoryRecordItem/btnOp”
Asset url: “db://assets/resources/prefabs/Windows/HistoryWnd.prefab”
Missing uuid: “215052c8-acc5-4280-ad93-b5efa9bb294e”

2017-10-20T03:32:00.778Z - warn: The Asset used by component “cc.Button” in prefab “HistoryWnd.prefab” is missing. Detailed information:
Node path: “HistoryWnd/Record/viewlist/view/content/HistoryRecordItem/btnShare”
Asset url: “db://assets/resources/prefabs/Windows/HistoryWnd.prefab”
Missing uuid: “215052c8-acc5-4280-ad93-b5efa9bb294e”

2017-10-20T03:32:00.779Z - warn: The Asset used by component “cc.Button” in prefab “HistoryWnd.prefab” is missing. Detailed information:
Node path: “HistoryWnd/btnRePlayCode”
Asset url: “db://assets/resources/prefabs/Windows/HistoryWnd.prefab”
Missing uuid: “215052c8-acc5-4280-ad93-b5efa9bb294e”

2017-10-20T03:33:03.407Z - normal: Start building with options : {
“androidStudio”: false,
“apiLevel”: “”,
“appABIs”: [],
“appKey”: “”,
“appSecret”: “”,
“buildPath”: “/Data/SVN/client/build”,
“debug”: false,
“dest”: “/Data/SVN/client/build/jsb-binary”,
“excludeScenes”: [],
“excludedModules”: [
“TiledMap”,
“Spine Skeleton”,
“ParticleSystem”,
“Collider”,
“VideoPlayer”,
“DragonBones”
],
“includeAnySDK”: false,
“includeEruda”: false,
“includeSDKBox”: false,
“inlineSpriteFrames”: false,
“inlineSpriteFrames_native”: false,
“jailbreakPlatform”: false,
“md5Cache”: false,
“mergeStartScene”: false,
“oauthLoginServer”: “”,
“optimizeHotUpdate”: false,
“orientation”: {
“landscapeLeft”: true,
“landscapeRight”: true,
“portrait”: false,
“upsideDown”: false
},
“packageName”: “com.huidutek.sjmj”,
“platform”: “ios”,
“previewHeight”: “720”,
“previewWidth”: “1280”,
“privateKey”: “”,
“renderMode”: “0”,
“scenes”: [
“0363491c-9b17-44d1-96e4-0c954f35c399”,
“efb1084f-0b5a-4980-b187-1e949555cb55”,
“4a1acad9-ce88-4334-aa62-bf23a5ccc79e”,
“7b486d14-13bc-4be8-91e6-2efa50fc8715”,
“2ae3c4b3-ebb1-451e-8db4-7697f66d041d”,
“2d23bbe0-b133-45c6-8452-eace4954a18c”,
“01c77f1d-ea87-453f-a5b8-142adb6dee05”,
“f1b574ba-5701-4d90-991c-2bd9aa008f84”,
“d092d418-dcdd-4823-a232-eca65fe76fff”,
“aeffe325-88c5-4817-96a4-63d0f1532548”,
“89a100ce-b6de-4acd-ab7f-0d51b25617a6”,
“5fad28f0-3c44-4f5e-9351-381fe3fb522c”
],
“sourceMaps”: false,
“startScene”: “0363491c-9b17-44d1-96e4-0c954f35c399”,
“template”: “binary”,
“title”: “sjmj”,
“useDebugKeystore”: true,
“vsVersion”: “auto”,
“webOrientation”: “landscape”,
“project”: “/Data/SVN/client”,
“projectName”: “sjmj”,
“debugBuildWorker”: false
}
2017-10-20T03:33:03.411Z - normal: Building /Data/SVN/client
2017-10-20T03:33:03.411Z - normal: Destination /Data/SVN/client/build/jsb-binary
2017-10-20T03:33:03.793Z - normal: Delete /Data/SVN/client/build/jsb-binary/res/**/,/Data/SVN/client/build/jsb-binary/src//
2017-10-20T03:33:03.856Z - normal: Checked Python Version [2.7.10]
2017-10-20T03:33:05.269Z - normal: Creating native cocos project to /Data/SVN/client/build/jsb-binary
2017-10-20T03:33:06.022Z - normal: Generating main.js from /Applications/CocosCreator.app/Contents/Resources/static/build-templates/shares/main.js
2017-10-20T03:33:17.297Z - normal: Compiled project javascript file successfully
2017-10-20T03:33:17.298Z - normal: Start building assets
2017-10-20T03:33:17.298Z - normal: Start spawn build-worker
2017-10-20T03:33:18.085Z - normal: Finish spawn build-worker
2017-10-20T03:33:18.085Z - normal: Start init build-worker
2017-10-20T03:33:19.811Z - normal: 1.6.2
2017-10-20T03:33:20.194Z - normal: Finish init build-worker
2017-10-20T03:33:20.194Z - normal: Start build-assets in worker
2017-10-20T03:33:21.317Z - warn: Script attached to “New Label” in prefab “HistoryItem.prefab” is missing or invalid. Detailed information:
Node path: “HistoryItem/btnOp/New Label”
Asset url: “db://assets/resources/prefabs/UIModel/HistoryItem.prefab”
Script UUID: “e4f8869d-a778-4446-8278-f036763d2025”
Class ID: “e4f88adp3hERoJ48DZ2PSAl”

2017-10-20T03:33:21.339Z - warn: Script attached to “New Label” in prefab “HistoryRecordItem.prefab” is missing or invalid. Detailed information:
Node path: “HistoryRecordItem/btnOp/New Label”
Asset url: “db://assets/resources/prefabs/UIModel/HistoryRecordItem.prefab”
Script UUID: “e4f8869d-a778-4446-8278-f036763d2025”
Class ID: “e4f88adp3hERoJ48DZ2PSAl”

2017-10-20T03:33:25.015Z - warn: The referenced asset used in “db://assets/resources/prefabs/UIModel/HistoryItem.prefab” is not found, it may have been deleted. Detailed information:
Node path: “HistoryItem/btnOp”
Used in Component: “cc.Sprite”
uuid: “215052c8-acc5-4280-ad93-b5efa9bb294e”
2017-10-20T03:33:25.016Z - warn: The referenced asset used in “db://assets/resources/prefabs/Windows/CreateRoleWnd.prefab” is not found, it may have been deleted. Detailed information:
Node path: “CreateRoleWnd/center/frame_icon”
Used in Component: “cc.Sprite”
uuid: “0308ac80-8a9c-4ba4-8a19-fe9929ba3ad4”
2017-10-20T03:33:25.018Z - warn: The referenced asset used in “db://assets/resources/prefabs/Windows/CreateRoleWnd.prefab” is not found, it may have been deleted. Detailed information:
Node path: “CreateRoleWnd/center/women_head”
Used in Component: “cc.Sprite”
uuid: “2aaca8e7-2f00-4ce7-b14f-176bf104e887”
2017-10-20T03:33:25.123Z - normal: Finish build-assets in worker
2017-10-20T03:33:25.128Z - normal: Finish building assets
2017-10-20T03:33:25.438Z - normal: Start building raw assets
2017-10-20T03:33:25.440Z - normal: Start building plugin scripts
2017-10-20T03:33:26.290Z - normal: Finish building raw assets
2017-10-20T03:33:26.317Z - normal: Checked Python Version [2.7.10]
2017-10-20T03:33:27.872Z - error: Build Failed: Error: Failed to compile js files [/Data/SVN/client/build/jsb-binary/src] with exitCode : 14
at ChildProcess. (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/native-utils.js:1:17229)
at ChildProcess.e.on (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/native-utils.js:1:7613)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
at Async.series.r (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/builder.js:1:4119)
at /Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:726:13
at /Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:52:16
at /Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:264:21
at /Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:44:16
at /Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:723:17
at /Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:167:37
at Gulp.doneCallback (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/gulp-build.js:1:15517)
at Gulp.Orchestrator.stop (/Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/orchestrator/index.js:150:9)
2017-10-20T03:33:27.874Z - error: Error: Callback was already called.
at /Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:43:36
at /Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:723:17
at /Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:167:37
at Gulp.doneCallback (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/gulp-build.js:1:15517)
at Gulp.Orchestrator.stop (/Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/orchestrator/index.js:150:9)
at /Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/orchestrator/index.js:277:22
at finish (/Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/orchestrator/lib/runTask.js:21:8)
at cb (/Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/orchestrator/lib/runTask.js:29:3)
at ChildProcess. (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/native-utils.js:1:17227)
at ChildProcess.e.on (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/native-utils.js:1:7613)
at process.on.t (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/editor-init.js:1:992)
at emitOne (events.js:101:20)
at process.emit (events.js:188:7)
at process._fatalException (bootstrap_node.js:304:26)
2017-10-20T03:35:39.372Z - normal: Start building with options : {
“androidStudio”: false,
“apiLevel”: “”,
“appABIs”: [],
“appKey”: “”,
“appSecret”: “”,
“buildPath”: “/Data/SVN/client/build”,
“debug”: false,
“dest”: “/Data/SVN/client/build/jsb-binary”,
“excludeScenes”: [],
“excludedModules”: [
“TiledMap”,
“Spine Skeleton”,
“ParticleSystem”,
“Collider”,
“VideoPlayer”,
“DragonBones”
],
“includeAnySDK”: false,
“includeEruda”: false,
“includeSDKBox”: false,
“inlineSpriteFrames”: false,
“inlineSpriteFrames_native”: false,
“jailbreakPlatform”: false,
“md5Cache”: false,
“mergeStartScene”: false,
“oauthLoginServer”: “”,
“optimizeHotUpdate”: false,
“orientation”: {
“landscapeLeft”: true,
“landscapeRight”: true,
“portrait”: false,
“upsideDown”: false
},
“packageName”: “com.huidutek.sjmj”,
“platform”: “ios”,
“previewHeight”: “720”,
“previewWidth”: “1280”,
“privateKey”: “”,
“renderMode”: “0”,
“scenes”: [
“0363491c-9b17-44d1-96e4-0c954f35c399”,
“efb1084f-0b5a-4980-b187-1e949555cb55”,
“4a1acad9-ce88-4334-aa62-bf23a5ccc79e”,
“7b486d14-13bc-4be8-91e6-2efa50fc8715”,
“2ae3c4b3-ebb1-451e-8db4-7697f66d041d”,
“2d23bbe0-b133-45c6-8452-eace4954a18c”,
“01c77f1d-ea87-453f-a5b8-142adb6dee05”,
“f1b574ba-5701-4d90-991c-2bd9aa008f84”,
“d092d418-dcdd-4823-a232-eca65fe76fff”,
“aeffe325-88c5-4817-96a4-63d0f1532548”,
“89a100ce-b6de-4acd-ab7f-0d51b25617a6”,
“5fad28f0-3c44-4f5e-9351-381fe3fb522c”
],
“sourceMaps”: false,
“startScene”: “0363491c-9b17-44d1-96e4-0c954f35c399”,
“template”: “binary”,
“title”: “sjmj”,
“useDebugKeystore”: true,
“vsVersion”: “auto”,
“webOrientation”: “landscape”,
“project”: “/Data/SVN/client”,
“projectName”: “sjmj”,
“debugBuildWorker”: false
}
2017-10-20T03:35:39.392Z - normal: Building /Data/SVN/client
2017-10-20T03:35:39.393Z - normal: Destination /Data/SVN/client/build/jsb-binary
2017-10-20T03:35:39.394Z - normal: Delete /Data/SVN/client/build/jsb-binary/res/**/,/Data/SVN/client/build/jsb-binary/src//
2017-10-20T03:35:39.425Z - normal: Checked Python Version [2.7.10]
2017-10-20T03:35:40.592Z - normal: Creating native cocos project to /Data/SVN/client/build/jsb-binary
2017-10-20T03:35:41.107Z - normal: Generating main.js from /Applications/CocosCreator.app/Contents/Resources/static/build-templates/shares/main.js
2017-10-20T03:35:52.616Z - normal: Compiled project javascript file successfully
2017-10-20T03:35:52.617Z - normal: Start building assets
2017-10-20T03:35:52.617Z - normal: Start spawn build-worker
2017-10-20T03:35:53.482Z - normal: Finish spawn build-worker
2017-10-20T03:35:53.482Z - normal: Start init build-worker
2017-10-20T03:35:55.167Z - normal: 1.6.2
2017-10-20T03:35:55.620Z - normal: Finish init build-worker
2017-10-20T03:35:55.620Z - normal: Start build-assets in worker
2017-10-20T03:35:56.737Z - warn: Script attached to “New Label” in prefab “HistoryItem.prefab” is missing or invalid. Detailed information:
Node path: “HistoryItem/btnOp/New Label”
Asset url: “db://assets/resources/prefabs/UIModel/HistoryItem.prefab”
Script UUID: “e4f8869d-a778-4446-8278-f036763d2025”
Class ID: “e4f88adp3hERoJ48DZ2PSAl”

2017-10-20T03:35:56.760Z - warn: Script attached to “New Label” in prefab “HistoryRecordItem.prefab” is missing or invalid. Detailed information:
Node path: “HistoryRecordItem/btnOp/New Label”
Asset url: “db://assets/resources/prefabs/UIModel/HistoryRecordItem.prefab”
Script UUID: “e4f8869d-a778-4446-8278-f036763d2025”
Class ID: “e4f88adp3hERoJ48DZ2PSAl”

2017-10-20T03:36:00.396Z - warn: The referenced asset used in “db://assets/resources/prefabs/UIModel/HistoryItem.prefab” is not found, it may have been deleted. Detailed information:
Node path: “HistoryItem/btnOp”
Used in Component: “cc.Sprite”
uuid: “215052c8-acc5-4280-ad93-b5efa9bb294e”
2017-10-20T03:36:00.398Z - warn: The referenced asset used in “db://assets/resources/prefabs/Windows/CreateRoleWnd.prefab” is not found, it may have been deleted. Detailed information:
Node path: “CreateRoleWnd/center/frame_icon”
Used in Component: “cc.Sprite”
uuid: “0308ac80-8a9c-4ba4-8a19-fe9929ba3ad4”
2017-10-20T03:36:00.399Z - warn: The referenced asset used in “db://assets/resources/prefabs/Windows/CreateRoleWnd.prefab” is not found, it may have been deleted. Detailed information:
Node path: “CreateRoleWnd/center/women_head”
Used in Component: “cc.Sprite”
uuid: “2aaca8e7-2f00-4ce7-b14f-176bf104e887”
2017-10-20T03:36:00.500Z - normal: Finish build-assets in worker
2017-10-20T03:36:00.505Z - normal: Finish building assets
2017-10-20T03:36:00.785Z - normal: Start building raw assets
2017-10-20T03:36:00.786Z - normal: Start building plugin scripts
2017-10-20T03:36:01.577Z - normal: Finish building raw assets
2017-10-20T03:36:01.625Z - normal: Checked Python Version [2.7.10]
2017-10-20T03:36:03.131Z - error: Build Failed: Error: Failed to compile js files [/Data/SVN/client/build/jsb-binary/src] with exitCode : 14
at ChildProcess. (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/native-utils.js:1:17229)
at ChildProcess.e.on (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/native-utils.js:1:7613)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
at Async.series.r (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/builder.js:1:4119)
at /Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:726:13
at /Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:52:16
at /Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:264:21
at /Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:44:16
at /Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:723:17
at /Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:167:37
at Gulp.doneCallback (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/gulp-build.js:1:15517)
at Gulp.Orchestrator.stop (/Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/orchestrator/index.js:150:9)
2017-10-20T03:36:03.132Z - error: Error: Callback was already called.
at /Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:43:36
at /Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:723:17
at /Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:167:37
at Gulp.doneCallback (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/gulp-build.js:1:15517)
at Gulp.Orchestrator.stop (/Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/orchestrator/index.js:150:9)
at /Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/orchestrator/index.js:277:22
at finish (/Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/orchestrator/lib/runTask.js:21:8)
at cb (/Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/orchestrator/lib/runTask.js:29:3)
at ChildProcess. (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/native-utils.js:1:17227)
at ChildProcess.e.on (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/native-utils.js:1:7613)
at process.on.t (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/editor-init.js:1:992)
at emitOne (events.js:101:20)
at process.emit (events.js:188:7)
at process._fatalException (bootstrap_node.js:304:26)

引擎开发人员帮看看是什么问题

1.6.1 beta版本也又这个问题

应该是js文件哪里写法有问题吧?

你确定代码没问题?

确定代码没问题,PC上运行正常,项目之前是1.5.2的引擎都没问题,现在用1.6.2构建就报这个错误,也检查了代码,完全没问题

1.6.1也会有这个问题 求解

你把这行附近几行的代码发出来看看吧。

你把错误那行代码发上来看看?

找到问题了。var gameType = cc.vv.gameNetMgr.getGameType(); 把这行代码注释掉就可以了
问题就是这个 gameType声明了但是没有使用,然后竟然会导致编译不过,奇怪了
下面是完整代码

onGameEnd:function(endinfo){
    cc.vv.gameLog.log("onGameEnd----------->endinfo = "+JSON.stringify(endinfo));
    if(cc.vv.gameNetMgr.roomId){
        this._roomLabel.string = cc.vv.gameNetMgr.roomId;
        var m = cc.vv.gameNetMgr.overtime.getMinutes();
        m = m < 10 ? "0" + m : m;
        this._timeLabel.string = cc.vv.gameNetMgr.overtime.getFullYear()+'.'+(cc.vv.gameNetMgr.overtime.getMonth() + 1)+'.'+cc.vv.gameNetMgr.overtime.getDate()+' '+cc.vv.gameNetMgr.overtime.getHours()+':'+m;
    }
    var seats = cc.vv.gameNetMgr.seats;
    var maxscore = -1;
    for(var i = 0; i < seats.length; ++i){
        var seat = seats[i];
        if(seat.score > maxscore){
            maxscore = seat.score;
        }
    }
    **//var gameType = cc.vv.gameNetMgr.getGameType();**
    for(var i = 0; i < endinfo.length; ++i){
        var rootNode = this._totalscore[i];
        this.initScore(rootNode,endinfo[i].score);

        var allscore = endinfo[i].allscore;
        if(allscore){
            for(var j = 0; j < allscore.length; ++j){
                var node = this.getMainViewItem(j);
                var singleNode = node.getChildByName("data"+i);
                var title = singleNode.getChildByName("title").getComponent(cc.Label);
                title.string = cc.vv.i18n.t("game_lable22")+(j+1);
                this.initScore(singleNode,allscore[j]);
            }
        }
    }

    for(var i = 0; i < seats.length; ++i){
        var seat = seats[i];
        var isBigwin = false;
        var isFangzhu = i == 0;
        if(seat.score > 0){
            isBigwin = seat.score == maxscore;
        }
        this._seats[i].setID(seat.userid);
        this._seats[i].setInfo(seat.name,seat.score, isBigwin);
        this._seats[i].node.getChildByName("fangzhu").active = isFangzhu;
    }
    if(endinfo[0].allscore){
        this.shrinkMainContent(endinfo[0].allscore.length);
    }
},

最初以为是gameType会不会是和系统变量冲突了,但是其他地方也有用这个变量,编译都没问题

这个是没有注释代码后编译产生的错误代码
cc.vv.gameNetMgr.getGameType();
for (a = 0;; a < e.length; ++a) {
var o = this._totalscore[a];
this.initScore(o, e[a].score);
var c = e[a].allscore;
if © for (var s = 0; s < c.length; ++s) {
var r = this.getMainViewItem(s).getChildByName(“data” + a);

注意第二行a = 0后面有俩;;

你是说这两个 ;; 是 creator 压缩代码时造成的?

不晓得,反正我把上面那行代码注释掉,就能正常构建项目了,不晓得你们生成jsc的时候是个什么机制

构建时project.js里出现了同样的问题,构建失败。
1.6.2正式版Android构建

是的,1.7也有这个问题,只能修改一下代码
比如
let pos = cc.p(x,y);
while(true){};
上面的代码会被压成
for(var a=cc.p(x,y);true;; ){}

可能把cc.p(x,y);这个分号也放里了