开发组进来看下呀 卡两天了 Build Failed: TypeError: Cannot read property 'configs' of null

从2.0.9 升到2.0.10
模拟器预览没有问题 构建web没有问题
构建IOS项目出现这个错误:Build Failed: TypeError: Cannot read property ‘configs’ of null


TypeError: Cannot read property ‘configs’ of null
at Object.readEnableService (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/builtin/cocos-services/panel/utils/serviceConfig.js:1:683)
at Object.execInstallNativePlatformScript (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/builtin/cocos-services/panel/utils/ccServices.js:1:2908)
at e (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/builtin/cocos-services/main.js:1:255)
at /Applications/CocosCreator.app/Contents/Resources/app.asar/editor-framework/lib/share/polyfills.js:1:286
at Promise ()
at /Applications/CocosCreator.app/Contents/Resources/app.asar/editor-framework/lib/share/polyfills.js:1:260
at /Applications/CocosCreator.app/Contents/Resources/app.asar/editor/lib/builder/index.js:1:858
at
at process._tickDomainCallback (internal/process/next_tick.js:135:7)
at then.e (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/lib/builder/index.js:1:885)
at
at process._tickDomainCallback (internal/process/next_tick.js:135:7)


Build Failed: TypeError: Cannot read property ‘configs’ of null
at Object.readEnableService (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/builtin/cocos-services/panel/utils/serviceConfig.js:1:683)
at Object.execInstallNativePlatformScript (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/builtin/cocos-services/panel/utils/ccServices.js:1:2908)
at e (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/builtin/cocos-services/main.js:1:255)
at /Applications/CocosCreator.app/Contents/Resources/app.asar/editor-framework/lib/share/polyfills.js:1:286
at Promise ()
at /Applications/CocosCreator.app/Contents/Resources/app.asar/editor-framework/lib/share/polyfills.js:1:260
at /Applications/CocosCreator.app/Contents/Resources/app.asar/editor/lib/builder/index.js:1:858
at
at process._tickDomainCallback (internal/process/next_tick.js:135:7)
at r.waterfall.r (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/lib/builder/index.js:1:3393)
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:696:30
at /Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:167:37
at /Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/lib/async.js:1209:30
at Gulp.doneCallback (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/core/gulp-build.js:1:29044)
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)

服务面板出错,已经反馈了,你可以删除过全局的~/.CocosCreator 目录试试,还有删除项目本地的services.json文件。

可以了, 是services.json 文件SVN冲突了 造成的!

services.json 文件建议排除在 git / svn 中,否则容易造成数据读写失败

怎么 解决的过程。。

删除本地的services.json 就好使了