2016-07-07 2 views
0

공식 'Getting Started'Ionic2 문서의 설치 섹션에있는 지침에 따라 Ionic2 환경을 설정하려고합니다.iOS 용 Ionic2 빌드가 실패했습니다.

Mac에서 El Captain 버전 10.11.5와 최신 xCode 버전 (7.3.1)이 설치되어 있습니다.

코도 바를 설치 한 후에 ionic platform add ios 명령을 성공적으로 실행했습니다. 나는 다음 명령을 실행하면 (시작 설명서에서 언급 한 바와 같이)

ionic emulate ios 나는 누구의 로그입니다 그리고

(node:38155) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version. 

Running 'emulate:before' gulp task before emulate 
[18:17:00] Starting 'clean'... 
[18:17:00] Finished 'clean' after 45 ms 
[18:17:00] Starting 'build'... 
[18:17:00] Starting 'sass'... 
[18:17:00] Starting 'html'... 
[18:17:00] Starting 'fonts'... 
[18:17:00] Starting 'scripts'... 
[18:17:00] Finished 'html' after 80 ms 
[18:17:00] Finished 'scripts' after 78 ms 
[18:17:00] Finished 'fonts' after 88 ms 
[18:17:01] Finished 'sass' after 901 ms 
[18:17:07] Finished 'build' after 6.73 s 
[18:17:07] Starting 'emulate:before'... 
[18:17:07] Finished 'emulate:before' after 4.22 μs 


You have been opted out of telemetry. To change this, run: cordova telemetry on. 

Running command: /Users/enrico.piccinin/work/dbs/examples/ionic2/cutePuppyPics/hooks/after_prepare/010_add_platform_class.js /Users/enrico.piccinin/work/dbs/examples/ionic2/cutePuppyPics 


add to body class: platform-ios 

Error: 


Caught exception: 
undefined 

내가 조금 서핑을하고 다음 명령을 실행 할 수있는 제안을 찾을 신비한 오류가 npm install -g ios-deploy --unsafe-perm=true 하지만 일단 내가 그것을하면 내가 얻은 것입니다

> [email protected] preinstall /usr/local/lib/node_modules/.staging/ios-deploy-298c9491 
> ./src/scripts/check_reqs.js && xcodebuild 

/usr/local/lib/node_modules/.staging/ios-deploy-298c9491/src/scripts/check_reqs.js:29 
     var ver = arr[1]; 
        ^

TypeError: Cannot read property '1' of null 
    at ChildProcess.<anonymous> (/usr/local/lib/node_modules/.staging/ios-deploy-298c9491/src/scripts/check_reqs.js:29:16) 
    at emitTwo (events.js:106:13) 
    at ChildProcess.emit (events.js:191:7) 
    at maybeClose (internal/child_process.js:852:16) 
    at Socket.<anonymous> (internal/child_process.js:323:11) 
    at emitOne (events.js:96:13) 
    at Socket.emit (events.js:188:7) 
    at Pipe._handle.close [as _onclose] (net.js:492:12) 
npm ERR! Darwin 15.5.0 
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "ios-deploy" "--unsafe-perm=true" 
npm ERR! node v6.3.0 
npm ERR! npm v3.10.3 
npm ERR! code ELIFECYCLE 

npm ERR! [email protected] preinstall: `./src/scripts/check_reqs.js && xcodebuild` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] preinstall script './src/scripts/check_reqs.js && xcodebuild'. 
npm ERR! Make sure you have the latest version of node.js and npm installed. 
npm ERR! If you do, this is most likely a problem with the ios-deploy package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  ./src/scripts/check_reqs.js && xcodebuild 

그런데 안드로이드에 대한 건물은 같은 기계에서 잘 작동합니다.

무엇이 잘못 될 수 있는지 알고 싶습니다.

감사

답변

0

당신이 엑스 코드에서 프로젝트를 실행하려고 가지고 사전에 어떤 도움을 많이? Mac에서 터미널을 실행하는 응용 프로그램을 실행할 때 : ionic build ios를 실행 한 다음 XCode에서 프로젝트를 실행합니다. 모든 것이 잘 작동합니다.

관련 문제