当我使用离子cordova build ios --release版ios时遇到问题
我如何使用MacOS解决此问题
Apple-User:alfraseh FirasHunaiti$ ionic cordova build ios --release
> ionic-app-scripts build --target cordova --platform ios
Error: spawn EACCES
at ChildProcess.spawn (internal/child_process.js:313:11)
at Object.exports.spawn (child_process.js:503:9)
at spawn
(/usr/local/lib/node_modules/ionic/node_modules/cross-spawn/index.js:17:18)
at spawn
(/usr/local/lib/node_modules/ionic/node_modules/@ionic/cli-framework/utils/shell.js:124:12)
at ShellCommand.spawn
(/usr/local/lib/node_modules/ionic/node_modules/@ionic/cli-framework/utils/shell.js:113:16)
at ShellCommand.run
(/usr/local/lib/node_modules/ionic/node_modules/@ionic/cli-framework/utils/shell.js:80:24)
at Shell.<anonymous>
(/usr/local/lib/node_modules/ionic/node_modules/@ionic/cli-utils/lib/shell.js:32:37)
at Generator.next (<anonymous>)
at /usr/local/lib/node_modules/ionic/node_modules/tslib/tslib.js:107:75
at new Promise (<anonymous>)
答案 0 :(得分:0)
构建用于ios(Xcode)的项目,然后转到该项目中的platform文件夹,并使用xcode打开我导出给您的那个项目,然后从xcode编译该项目。