코드 바 및 이온을 설정하는 지침서를 살펴 보았습니다. 성공적으로 개발에서 응용 프로그램을 실행할 수 있지만 이오를 구축 할 때이 오류가 발생합니다. 어떤 아이디어? 노드 및 코도 바를 업데이트하려고 시도했습니다.ionic build ios 명령이 작동하지 않습니다.
sudo ionic build ios
Running 'build:before' gulp task before build
[11:16:00] Starting 'clean'...
[11:16:00] Finished 'clean' after 47 ms
[11:16:00] Starting 'build'...
[11:16:00] Starting 'sass'...
[11:16:00] Starting 'html'...
[11:16:00] Starting 'fonts'...
[11:16:00] Starting 'scripts'...
[11:16:00] Finished 'scripts' after 45 ms
[11:16:00] Finished 'html' after 51 ms
[11:16:00] Finished 'fonts' after 54 ms
[11:16:00] Finished 'sass' after 770 ms
[11:16:07] Finished 'build' after 7.18 s
[11:16:07] Starting 'build:before'...
[11:16:07] Finished 'build:before' after 11 μs
• You're trying to build for ios but don't have the platform installed yet.
∆ Installing ios for you.
Installing cordova-plugin-device
Installing cordova-plugin-console
Installing cordova-plugin-whitelist
Installing cordova-plugin-splashscreen
Installing cordova-plugin-statusbar
Installing ionic-plugin-keyboard
Error: Command failed: /bin/sh -c cordova platform add ios
Error: Platform ios already added.
at ChildProcess.exithandler (child_process.js:213:12)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:821:16)
at Socket.<anonymous> (internal/child_process.js:319:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:4
69:12) 모든
xcode가 설치된 Mac에서 실행되고 있습니다. 난 그 명령을 실행하고 여전히 같은 오류가 나타납니다 .. 다른 아이디어? –
코드도 설치에 버그가있는 것으로 나타났습니다. 다시 설치하십시오. 자세한 내용은 https://github.com/driftyco/ionic-cli/issues/772를 참조하십시오. –