简体   繁体   English

是否可以使用Windows 10和React Native创建iOS应用(.ipa)?

[英]Is it possible to create an iOS app (.ipa) with Windows 10 & React Native?

As a Windows 10 user I've built an app with React Native. 作为Windows 10用户,我已经使用React Native构建了一个应用程序。 I am using EXPO package which runs under npm. 我正在使用在npm下运行的EXPO软件包。

Anyway, if I hit "exp build:ios", I was getting a bunch of errors and this one is the last one: 无论如何,如果我点击“ exp build:ios”,我会遇到很多错误,这是最后一个错误:

 Input is required, but exp is in non-interactive mode.

I did a lot of reading and it seems there is no way to actually export React Native as .ipa file so I can have it as stand-alone app. 我读了很多书,似乎没有办法将React Native实际导出为.ipa文件,因此我可以将其作为独立应用程序使用。

Is that correct? 那是对的吗?

Nope. 不。

Here's the explanation courtesy of Facebook : 这是Facebook的解释

The process is the same as any other native iOS app, with some additional considerations to take into account. 此过程与其他任何本地iOS应用程序相同,但需要考虑一些其他注意事项。

XCode is required to deploy to the app store. 必须将XCode部署到应用商店。

You can look into finding a deployment service, but that it another can of worms. 可以考虑查找部署服务,但这是另一种蠕虫。 You can Google those since this is not a place to recommend services. 您可以在Google上搜索这些内容,因为这不是推荐服务的地方。

@CodeBender is correct that you would need access to a Mac to deploy it to the App Store. @CodeBender是正确的,您需要访问Mac才能将其部署到App Store。 However, you can do the build from your machine. 但是,您可以从计算机上进行构建。 The issue that you're encountering is likely due to using Git Bash as your terminal. 您遇到的问题可能是由于使用Git Bash作为终端。 If you instead use cmd.exe, PowerShell, bash.exe (WSL), or you reinstall Git Bash and follow the instructions here then you should be able to complete the build. 如果改用cmd.exe,PowerShell,bash.exe(WSL),或者重新安装Git Bash并按照此处的说明进行操作则应该可以完成构建。

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

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