2016-07-26 9 views
0

我一直在爲Android開發一款Windows電腦,但是一旦掌握了Mac Mini電腦,一旦我得到了更新,埃爾卡皮坦,安裝了XCode,以及其他一切(的NodeJS,離子等),操作系統我試圖對iOS和構建斷裂做一個構建說:Ionic Beta 10 iOS版本 - 您正在嘗試爲ios打造,但沒有安裝平臺

You're trying to build for iosbut don't have the platform installed yet.

我離子設置是如下:

Cordova CLI: 5.4.1
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.10
Ionic CLI Version: 2.0.0-beta.32
Ionic App Lib Version: 2.0.0-beta.18
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v5.12.0
Xcode version: Xcode 7.3.1 Build version 7D1014

我得到的錯誤如下:

Running 'build:before' gulp task before build
[23:21:58] Starting 'clean'...
[23:21:58] Finished 'clean' after 65 ms
[23:21:58] Starting 'build'...
[23:21:58] Starting 'sass'...
[23:21:58] Starting 'html'...
[23:21:58] Starting 'fonts'...
[23:21:58] Starting 'scripts'...
[23:21:58] Finished 'scripts' after 74 ms
[23:21:58] Finished 'fonts' after 85 ms
[23:21:58] Finished 'html' after 95 ms
[23:21:59] Finished 'sass' after 1.11 s
[23:22:10] Finished 'build' after 12 s
[23:22:10] Starting 'build:before'...
[23:22:10] Finished 'build:before' after 7.64 μs

• You're trying to build for iosbut 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
Caught exception:
Error: Command failed: cordova plugin add --save cordova-plugin-device
Parsing /Users/esx/projects/xcatalyst%20mobile%20app/config.xml failed
Error: Unencoded <
Line: 2
Column: 2
Char: <

at ChildProcess.exithandler (child_process.js:202:12)
at emitTwo (events.js:100:13)
at ChildProcess.emit (events.js:185:7)
at maybeClose (internal/child_process.js:850:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)

作爲一個方面說明,我確實有節點V6。?。?並安裝了Cordova v6.3.0,但在那裏出現Cordova CLI在執行「離子信息」時顯示爲「未安裝」的問題。

我也試圖執行「離子狀態的復位」卻得到了一個類似的錯誤:

Removed platforms and plugins
Attempting to restore your Ionic application from package.json

Restoring Platforms

cordova platform add ios
cordova platform add android

Restore platforms is complete

Restoring Plugins

cordova plugin add cordova-plugin-whitelist
Caught exception:
undefined

這是使用的是Mac,並試圖建立一個使用的離子應用我的第一次嘗試。我遵循(或嘗試過)Ionic網站上的設置信息(OSX Setup)。

我不確定如何跟蹤這些錯誤。

在此先感謝您的幫助。

+0

嘗試使用舊版本的節點,'0.12.7'總是爲我工作。使用NVM更改節點版本btw。 –

回答

0

問題出在我的config.xml中,它有一些無效的字符和語法問題。我猜想爲Android平臺構建這些並不重要,但它確實適用於iOS版本。

相關問題