2016-08-21 7 views
0

코드 바 및 이온을 설정하는 지침서를 살펴 보았습니다. 성공적으로 개발에서 응용 프로그램을 실행할 수 있지만 이오를 구축 할 때이 오류가 발생합니다. 어떤 아이디어? 노드 및 코도 바를 업데이트하려고 시도했습니다.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) 모든

답변

0

첫째, 당신이 그것을 제거하고 다시 개발 공간에 추가하려고 IOS 플랫폼 설치에 대한 몇 가지 문제가있을 것 같다.

ios 빌드를 시도하기 전에 ionic platform remove ios && ionic platform add ios 명령을 실행하십시오.

두 번째로 iOS 응용 프로그램을 빌드하려면 Mac 운영 체제가 필요합니다. 빌드 할 XCode (기본 소프트웨어)에 종속되어 있기 때문입니다.

셋째, 여전히 동일한 사기성이 있다면 여기에 기록 된 버그 때문일 수 있습니다. https://github.com/driftyco/ionic-cli/issues/772

sudo npm install -g cordova을 시도하고 빌드를 다시 실행하십시오.

행운을 빈다.

+0

xcode가 설치된 Mac에서 실행되고 있습니다. 난 그 명령을 실행하고 여전히 같은 오류가 나타납니다 .. 다른 아이디어? –

+0

코드도 설치에 버그가있는 것으로 나타났습니다. 다시 설치하십시오. 자세한 내용은 https://github.com/driftyco/ionic-cli/issues/772를 참조하십시오. –

관련 문제