参考:
http://cordova.apache.org/docs/en/5.4.0/guide/platforms/ios/index.html
ios开发环境准备
需要安装Xcode和ios SDK(Software Development Kit)
ios SDK内包含虚拟机,但如果要发布到App store,最好用真实的设备进行测试,
如果要安装应用到手机,必须有苹果的注册账号。
环境配置
1.安装Xcode后,需要安装Command Line Tools,默认安装Xcode就安装好了。
安装命令
xcode-select --install
2.安装发布工具,
ios-sim和ios-deploy工具,允许你从command-line发布应用到虚拟机Simulator和真实的iOS Device,需要管理员权限.
sudo npm install -g ios-sim
安装ios-deploy的时候还要加上 [--unsafe-perm]参数 才好用
sudo npm install --unsafe-perm -g ios-deploy
3.创建cordova工程
参照:
http://vinnie424.iteye.com/blog/2255701
4.Deploy the app
发布到device
cordova run ios --device
发布到虚拟机
cordova emulate ios
You can use
cordova run ios --list to see all available targets and
cordova run ios --target=target_name to run application on a specific device or emulator (for example,
cordova run ios --target="iPhone-6").
You can also use
cordova run --help to see additional build and run options.
5.真机调试设置参考
https://blog.csdn.net/lovelyelfpop/article/details/70213326
分享到:
相关推荐
This practical guide shows you how to use Ionic’s tools and services to develop apps with HTML, CSS, and TypeScript, rather than rely on platform-specific solutions found in Android, iOS, and ...
This practical guide shows you how to use Ionic’s tools and services to develop apps with HTML, CSS, and TypeScript, rather than rely on platform-specific solutions found in Android, iOS, and ...
A step by step guide, filled with real-world examples to help you create hybrid mobile applications Who This Book Is For This book is for web developers who want to be productive in the mobile market ...
5. **平台准备**: 通过`cordova platform add`命令添加目标开发平台,如Android或iOS。 6. **编译和运行**: 使用`cordova build`命令编译项目,然后用`cordova run`命令在模拟器或真实设备上运行应用。 7. **调试和...
Use out-of-the-box Ionic functionalities, customize existing components, and add new components with this comprehensive, step-by-step guide What You Will Learn Authenticate users using an e-mail ...
- **Windows 10开发导航**:[Developing Universal Windows Apps with C# and XAML](https://docs.microsoft.com/zh-cn/windows/uwp/get-started/universal-application-platform-guide) #### Cordova - **简介**...
**PhoneGap 3.x Mobile Application Development Hotshot.2014.pdf** is a comprehensive guide designed to help developers create engaging and practical mobile applications for iOS and Android devices ...
You'll work with Cordova to support native functionalities on both iOS and Android. From there, you'll get to grips with using the default themes for each platform as well as customizing your own. ...