2015-09-22 25 views
3

繼離子教訓關於建立和運行移動式混合應用程序,我迷迷糊糊步驟:ERROR建立一個平臺:IOS

$ ionic build ios 

以下錯誤是:

$ ionic build ios 
Running command: "c:\Program Files (x86)\nodejs\node.exe##c:\wamp\www\weather\hooks\after_prepare\010_add_platform_ class.js c:/wamp/www/weather 
add to body class: platform-ios 
Running command: cmd "/s/c"c:\wamp\www\weather\platforms\ios\cordova\build"" 
'c:\wamp\www\weather\platforms\ios\cordova\build' is not recognized as an internal or external command, 
operable program or batch file. 
ERROR building one of the platforms: Error: cmd: Command failed with exit code 1 
You may not have the required environment or OS to build this project 
Error: cmd: Command failed with exit code 1 
at ChildProcess.whenDone  (c:\Users\Acer\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:139:23) 
at emitTwo (events.js:87:13) 
at ChildProcess.emit (events.js:172:7) 
at maybeClose (internal/child_process.js:817:16) 
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) 

我沒有煩惱與離子建立android。 你可以幫我提一些問題來自哪裏? Tnx提前!

回答

5

我看到你使用Windows。

注:iOS開發需要Mac OS X.

來源:http://ionicframework.com/getting-started/

如果你真的需要建立適用於iOS,您將需要購買Mac(是的,這是真的悲傷)或使用處理這種情況的解決方案,如Phonegap。 如果我記得好,Ionic團隊正在研究解決這個問題的解決方案,但尚未準備就緒。

+0

Tnx,對我的解釋就足夠了:) – user1288338