我也有这个问题,构建就报async相关的错误
麻烦把报错贴上来看看
1.6.2后构建项目的时候报这个错
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 Socket. (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close as _onclose
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)
构建ios的时候
可不可以在node上加个属性控制,选择事件是向
父节点传递
下层传递
不传递
2017-09-29T06:57:34.155Z - normal: Load ~/.CocosCreator/settings.json
2017-09-29T06:57:34.160Z - normal: checking language setting…
2017-09-29T06:57:34.161Z - normal: Language: zh
2017-09-29T06:57:35.106Z - success: protocol editor-framework registered
2017-09-29T06:57:35.106Z - success: protocol app registered
2017-09-29T06:57:35.107Z - success: protocol theme registered
2017-09-29T06:57:35.107Z - success: protocol profile registered
2017-09-29T06:57:35.107Z - success: protocol packages registered
2017-09-29T06:57:35.109Z - success: protocol unpack registerred
2017-09-29T06:57:35.109Z - success: protocol disable-commonjs registerred
2017-09-29T06:57:35.356Z - normal: connected!
2017-09-29T06:57:35.362Z - normal: Check project /Data/SVN/client
2017-09-29T06:57:35.381Z - normal: Initializing Cocos2d
2017-09-29T06:57:35.635Z - normal: Initializing Asset Database
2017-09-29T06:57:35.676Z - success: protocol uuid registerred
2017-09-29T06:57:35.677Z - success: protocol db registerred
2017-09-29T06:57:35.677Z - success: protocol thumbnail registerred
2017-09-29T06:57:35.677Z - normal: Loading editor/builtin packages
2017-09-29T06:57:35.700Z - success: anysdk loaded
2017-09-29T06:57:35.853Z - success: assets loaded
2017-09-29T06:57:35.857Z - success: builder loaded
2017-09-29T06:57:35.863Z - success: hierarchy loaded
2017-09-29T06:57:35.870Z - success: inspector loaded
2017-09-29T06:57:35.872Z - success: keystore loaded
2017-09-29T06:57:35.879Z - success: node-library loaded
2017-09-29T06:57:35.881Z - success: package-asset loaded
2017-09-29T06:57:35.884Z - success: preferences loaded
2017-09-29T06:57:35.889Z - success: project-exporter loaded
2017-09-29T06:57:35.908Z - success: project-importer loaded
2017-09-29T06:57:35.912Z - success: project-settings loaded
2017-09-29T06:57:35.916Z - success: ui-kit loaded
2017-09-29T06:57:35.925Z - success: ui-grid loaded
2017-09-29T06:57:35.930Z - success: scene loaded
2017-09-29T06:57:35.932Z - success: sprite-editor loaded
2017-09-29T06:57:35.938Z - success: store loaded
2017-09-29T06:57:35.946Z - success: timeline loaded
2017-09-29T06:57:35.946Z - normal: Loading builtin packages
2017-09-29T06:57:35.953Z - success: asset-db-debugger loaded
2017-09-29T06:57:35.954Z - success: color-picker loaded
2017-09-29T06:57:35.962Z - success: console loaded
2017-09-29T06:57:35.966Z - success: package-manager loaded
2017-09-29T06:57:35.973Z - success: sdkbox loaded
2017-09-29T06:57:35.978Z - success: tester loaded
2017-09-29T06:57:35.984Z - success: ui-kit-preview-extra loaded
2017-09-29T06:57:35.988Z - success: ui-kit-preview loaded
2017-09-29T06:57:35.991Z - success: ui-tree loaded
2017-09-29T06:57:37.040Z - normal: Initializing project /Data/SVN/client
2017-09-29T06:57:37.043Z - normal: Loading packages
2017-09-29T06:57:37.062Z - success: i18n loaded
2017-09-29T06:57:37.062Z - normal: Watching packages
2017-09-29T06:57:37.100Z - normal: Run Application
2017-09-29T06:57:41.974Z - success: preview server running at http://localhost:7456
2017-09-29T06:57:49.940Z - normal: 1.6.2-beta.3
2017-09-29T06:57:52.764Z - warn: The Asset used by component “cc.Sprite” in prefab “ShareWnd.prefab” is missing. Detailed information:
Node path: “ShareWnd/collect”
Asset url: “db://assets/resources/prefabs/Windows/ShareWnd.prefab”
Missing uuid: “32966e20-f2b3-4331-8d31-35acf32ac619”
2017-09-29T06:57:52.766Z - warn: The Asset used by component “cc.Sprite” in prefab “ShareWnd.prefab” is missing. Detailed information:
Node path: “ShareWnd/haoyouquan”
Asset url: “db://assets/resources/prefabs/Windows/ShareWnd.prefab”
Missing uuid: “c667df1f-6945-4b42-b76c-3793d17488df”
2017-09-29T06:57:52.769Z - warn: The Asset used by component “cc.Sprite” in prefab “ShareWnd.prefab” is missing. Detailed information:
Node path: “ShareWnd/haoyou”
Asset url: “db://assets/resources/prefabs/Windows/ShareWnd.prefab”
Missing uuid: “1812d9a6-b633-459e-a643-920de7e70182”
2017-09-29T06:57:52.900Z - 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-09-29T06:57:52.905Z - 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-09-29T06:57:52.906Z - 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-09-29T06:57:52.907Z - 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-09-29T07:00:25.148Z - 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-09-29T07:00:25.152Z - normal: Building /Data/SVN/client
2017-09-29T07:00:25.153Z - normal: Destination /Data/SVN/client/build/jsb-binary
2017-09-29T07:00:25.505Z - normal: Delete /Data/SVN/client/build/jsb-binary/res/**/,/Data/SVN/client/build/jsb-binary/src//
2017-09-29T07:00:25.565Z - normal: Checked Python Version [2.7.10]
2017-09-29T07:00:26.938Z - normal: Creating native cocos project to /Data/SVN/client/build/jsb-binary
2017-09-29T07:00:27.740Z - normal: Generating main.js from /Applications/CocosCreator.app/Contents/Resources/static/build-templates/shares/main.js
2017-09-29T07:00:39.203Z - normal: Compiled project javascript file successfully
2017-09-29T07:00:39.205Z - normal: Start building assets
2017-09-29T07:00:39.205Z - normal: Start spawn build-worker
2017-09-29T07:00:39.989Z - normal: Finish spawn build-worker
2017-09-29T07:00:39.989Z - normal: Start init build-worker
2017-09-29T07:00:41.684Z - normal: 1.6.2-beta.3
2017-09-29T07:00:42.109Z - normal: Finish init build-worker
2017-09-29T07:00:42.109Z - normal: Start build-assets in worker
2017-09-29T07:00:43.134Z - 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-09-29T07:00:43.156Z - 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-09-29T07:00:46.659Z - 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-09-29T07:00:46.660Z - 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-09-29T07:00:46.661Z - 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-09-29T07:00:46.725Z - warn: The referenced asset used in “db://assets/resources/prefabs/Windows/ShareWnd.prefab” is not found, it may have been deleted. Detailed information:
Node path: “ShareWnd/collect”
Used in Component: “cc.Sprite”
uuid: “32966e20-f2b3-4331-8d31-35acf32ac619”
2017-09-29T07:00:46.728Z - warn: The referenced asset used in “db://assets/resources/prefabs/Windows/ShareWnd.prefab” is not found, it may have been deleted. Detailed information:
Node path: “ShareWnd/haoyouquan”
Used in Component: “cc.Sprite”
uuid: “c667df1f-6945-4b42-b76c-3793d17488df”
2017-09-29T07:00:46.729Z - warn: The referenced asset used in “db://assets/resources/prefabs/Windows/ShareWnd.prefab” is not found, it may have been deleted. Detailed information:
Node path: “ShareWnd/haoyou”
Used in Component: “cc.Sprite”
uuid: “1812d9a6-b633-459e-a643-920de7e70182”
2017-09-29T07:00:46.780Z - normal: Finish build-assets in worker
2017-09-29T07:00:46.787Z - normal: Finish building assets
2017-09-29T07:00:47.106Z - normal: Start building raw assets
2017-09-29T07:00:47.108Z - normal: Start building plugin scripts
2017-09-29T07:00:47.924Z - normal: Finish building raw assets
2017-09-29T07:00:47.950Z - normal: Checked Python Version [2.7.10]
2017-09-29T07:00:50.512Z - 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 Socket. (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:493:12)
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-09-29T07:00:50.514Z - 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)
这个是构建的时候编辑器日志
我之前也是webview关不掉 解决方法是在换场景或者需要关闭的地方 把webview url改成一个空页面的 。用的时候再重新给url
我觉得现在最头疼的是 web-mobile项目 第一次进游戏的时候加载引擎和初始场景时间太长了,平均都超过了10s, 其他的还有editbox文本不能居中
那就奇怪了~ 我是改了名字后才好的~~ 应该是有一个main.js文件,再有一个main的场景文件。打包选择了md5,然后,打包过程中应该是发现有main.js,然后, 变成main.xxx.js。又替换了所有"main"的字符串为"main.xxx"吧。。。 最终现象是这样的~
想问问,1.62正式版还会发布吗?
项目等着从1.52升级呢
还会发
大概哪天?
构建的时候async相关的错误应该怎么解决?
beta.3 ios构建项目会出错,AppDelegate.cpp里面的
#include “SDKManager.h”
#include “jsb_anysdk_protocols_auto.hpp”
#include “manualanysdkbindings.hpp”
这几个都找不到
等稳定版吧,这个版本ios构建一直出错
win版下载回来后解压无法找到文件
vs code 调试报错 cannot connect to JSB (timeout after 10000ms) 啥时候能解决
估计没法解决了。用浏览器调试吧。
到底什么时候出1.62啊?这么久了,能不能先把1.62搞定了再把重心放在1.7啊?
你们不紧不慢的,让我们使用的人情何以堪啊?
据说快放出来了。