簡體   English   中英

Phonegap 3:phonegap安裝ios-錯誤:未將平台添加到該項目

[英]Phonegap 3: phonegap install ios - error: no platforms added to this project

我創建了一個新的phonegap 3項目

phonegap創建我的應用

cd我的應用

然后我試圖安裝到ios

phonegap安裝ios

[phonegap] detecting iOS SDK environment...
[phonegap] using the local environment
[phonegap] trying to install app onto device
[phonegap] no device was found
[phonegap] trying to install app onto emulator
 [warning] missing ios-sim
 [warning] install ios-sim from http://github.com/phonegap/ios-sim
   [error] No platforms added to this project. Please use `cordova platform add <platform>`.

1)從警告中可以看到,您需要安裝ios-sim。

按照github.com/phonegap/ios-sim中的說明進行操作

Brew安裝對我不起作用,因此我從源根目錄構建並安裝了ios-sim

git clone git://github.com/phonegap/ios-sim.git
cd ios-sim
rake install prefix=/usr/local/

2)在安裝項目之前,需要為專用平台構建項目。

首先

phonegap build ios

其次

phonegap install ios

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM