报错信息如下
Build Failed: Error: rpk包构建失败!错误:Error: Command failed: node C:\CocosCreator_2.0.10\resources\builtin\huawei-runtime\package\index.js C:\palaceh5\trunk\huawei\build C:\palaceh5\trunk\huawei\dist palace.huawei.quick C:\palaceh5\trunk\palace-h5\private.pem C:\palaceh5\trunk\palace-h5\certificate.pemfs.js:114
throw err;
^
Error: EMFILE: too many open files, open ‘C:\palaceh5\trunk\huawei\build\res\import\a5\a541b7dc-0c03-4f12-9979-cd0debe67367.json’
at Object.openSync (fs.js:443:3) at Object.readFileSync (fs.js:343:35) at Object.hashFile (C:\CocosCreator_2.0.10\resources\builtin\huawei-runtime\package\lib\bundle.js:1:2219) at C:\CocosCreator_2.0.10\resources\builtin\huawei-runtime\package\lib\build-sign-file.js:1:734 at C:\CocosCreator_2.0.10\resources\builtin\huawei-runtime\package\lib\build-sign-file.js:1:1049 at Array.forEach ()
at parse (C:\CocosCreator_2.0.10\resources\builtin\huawei-runtime\package\lib\build-sign-file.js:1:887) at C:\CocosCreator_2.0.10\resources\builtin\huawei-runtime\package\lib\build-sign-file.js:1:1103 at Array.forEach ()
at parse (C:\CocosCreator_2.0.10\resources\builtin\huawei-runtime\package\lib\build-sign-file.js:1:887) at EventEmitter.k.on.n (C:\CocosCreator_2.0.10\resources\app.asar\editor-framework\lib\main\ipc.js:1:5026) at emitThree (events.js:116:13) at EventEmitter.emit (events.js:197:7) at Object.i.reply (C:\CocosCreator_2.0.10\resources\app.asar\editor-framework\lib\main\ipc.js:1:2272) at exec (C:\CocosCreator_2.0.10\resources\builtin\huawei-runtime\build-runtime.js:353:19) at ChildProcess.exithandler (child_process.js:224:5) at emitTwo (events.js:106:13) at ChildProcess.emit (events.js:194:7) at maybeClose (internal/child_process.js:899:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) --------------------fs.js:114
throw err;
^
Error: EMFILE: too many open files, open ‘C:\palaceh5\trunk\huawei\build\res\import\a5\a541b7dc-0c03-4f12-9979-cd0debe67367.json’
at Object.openSync (fs.js:443:3) at Object.readFileSync (fs.js:343:35) at Object.hashFile (C:\CocosCreator_2.0.10\resources\builtin\huawei-runtime\package\lib\bundle.js:1:2219) at C:\CocosCreator_2.0.10\resources\builtin\huawei-runtime\package\lib\build-sign-file.js:1:734 at C:\CocosCreator_2.0.10\resources\builtin\huawei-runtime\package\lib\build-sign-file.js:1:1049 at Array.forEach ()
at parse (C:\CocosCreator_2.0.10\resources\builtin\huawei-runtime\package\lib\build-sign-file.js:1:887) at C:\CocosCreator_2.0.10\resources\builtin\huawei-runtime\package\lib\build-sign-file.js:1:1103 at Array.forEach ()
at parse (C:\CocosCreator_2.0.10\resources\builtin\huawei-runtime\package\lib\build-sign-file.js:1:887) at exec (C:\CocosCreator_2.0.10\resources\builtin\huawei-runtime\build-runtime.js:353:25) at ChildProcess.exithandler (child_process.js:224:5) at emitTwo (events.js:106:13) at ChildProcess.emit (events.js:194:7) at maybeClose (internal/child_process.js:899:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) at r.waterfall.r (C:\CocosCreator_2.0.10\resources\app.asar\editor\lib\builder\index.js:1:3393) at C:\CocosCreator_2.0.10\resources\app.asar\node_modules\async\lib\async.js:52:16 at C:\CocosCreator_2.0.10\resources\app.asar\node_modules\async\lib\async.js:1209:30 at then.e (C:\CocosCreator_2.0.10\resources\app.asar\editor\lib\builder\index.js:1:894) at at process._tickDomainCallback (internal/process/next_tick.js:135:7)
已解决,勾选小包模式就行了
3赞
请问一下小包模式指的是小游戏分包吗
我是把分包的压缩类型从小游戏分包改成默认然后勾选上内联所有的SpriteFrame就可以了