简体   繁体   English

如何在Windows上构建ios(react-native)?

[英]How to build for ios on Windows (react-native)?

Is there any opportunity to build react-native project for ios on Windows? 有没有机会在Windows上为ios构建react-native项目? Is there any service for it? 它有什么服务吗?

Unfortunately Not possible for iOS as of now (If you are not going to use MAC on VMware ). 不幸的是,iOS现在不可能(如果你不打算在VMware上使用MAC )。 However you can use for Android & read More details here . 但是你可以使用Android和了解更多的细节在这里

NOTE: This guide focuses on Android development. 注意:本指南重点介绍Android开发。 You'll need a Mac to build iOS apps. 你需要一台Mac来构建iOS应用程序。

As React Native on iOS requires a Mac and most of the engineers at Facebook and contributors use Macs, support for OS X is a top priority. 由于iOS上的React Native需要Mac并且Facebook和贡献者的大多数工程师都使用Mac,因此支持OS X是首要任务。 However, we would like to support developers using Linux and Windows too. 但是,我们也希望支持使用Linux和Windows的开发人员。 We believe we'll get the best Linux and Windows support from people using these operating systems on a daily basis. 我们相信,我们每天都会使用这些操作系统的人获得最佳的Linux和Windows支持。

Therefore, Linux and Windows support for the development environment is an ongoing community responsibility. 因此,Linux和Windows对开发环境的支持是一项持​​续的社区责任。 This can mean filing issues and submitting PRs, and we'll help review and merge them. 这可能意味着提交问题并提交PR,我们将帮助审核并合并它们。 We are looking forward to your contributions and appreciate your patience. 我们期待您的贡献,并感谢您的耐心等待。

As of version 0.14 Android development with React native is mostly possible on Linux and Windows. 从版本0.14开始,使用React本机的Android开发大多数可以在Linux和Windows上进行。 You'll need to install Node.js 4.0 or newer. 您需要安装Node.js 4.0或更高版本。 On Linux we recommend installing watchman, otherwise you might hit a node file watching bug. 在Linux上我们建议安装watchman,否则你可能会看到节点文件看bug。

You can use a cloud build service, such as Circle CI or Mobile Center, to build iOS react-native applications and even automatically run Appium tests. 您可以使用云构建服务(例如Circle CI或Mobile Center)来构建iOS react-native应用程序,甚至可以自动运行Appium测试。 The feedback cycle would be much longer than on your local machine, though. 但是,反馈周期比本地计算机上的周期长得多。

Some folks choose to break the Apple EULA and run MacOS in a VirtualBox as a kind of "hackintosh" virtual machine on their Windows PCs. 有些人选择打破Apple EULA并在VirtualBox中运行MacOS作为其Windows PC上的一种“hackintosh”虚拟机。 This supposedly works very well, and runs at near-native build speeds. 据说这可以很好地工作,并以接近原生的构建速度运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM