cordova ios

使用Cordova进行iOS开发 (环境配置及基本用法)

字数1426 阅读3044 评论0 
安装Cordova CLI
1. cordova的安装:
  • 1.1 安装cordova需要先安装node.js
  • 1.2 如果你没有安装git client,需要下载并安装一个git客户端,只是对项目文件进行管理的。
  • 1.3 使用node.js的依赖包管理工具npm来进行cordova安装。
    打开终端输入如下命令:
    sudo npm install -g cordova

 

Installing the Requirements

Xcode

There are two ways to download Xcode:

  • from the App Store, available by searching for "Xcode" in the App Store application.

  • from Apple Developer Downloads, which requires registration as an Apple Developer.

Once Xcode is installed, several command-line tools need to be enabled for Cordova to run. From the command line, run:

$ xcode-select --install

Deployment Tools

The ios-sim and ios-deploy tools - allows you to launch iOS apps into the iOS Simulator and iOS Device from the command-line.

To install them, run the following from command-line terminal:

$ npm install -g ios-sim
$ npm install -g ios-deploy --unsafe-perm=true   --allow-root    (需要加上后面这两个参数才能够正常安装 )



到此 ios 的cordova 环境搭建完成。

 

 

转载于:https://www.cnblogs.com/Purk/p/5664917.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值