ios - 使用 Windows 为 IOS 构建 Expo 应用程序

标签 ios react-native expo

我想知道是否有任何方法可以构建我的 Expo应用程序与 Windows。每当我运行 exp build:ios 时,我都会收到以下警告:

Does not seem like WSL enabled on this machine. Download from the Windows app store a distribution of Linux, then in an admin powershell, please run:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem->Linux

and run the new Linux installation at least once

为此我应该使用什么应用程序?即使我这样做,Expo 是否允许我为 IOS 构建?

或者,我可以使用像 Microsoft Appcenter 这样的服务来为我构建它吗?

最佳答案

  1. 以管理员身份打开 PowerShell 并运行:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

  1. 出现提示时重新启动计算机。

引用:https://learn.microsoft.com/en-us/windows/wsl/install-win10

关于ios - 使用 Windows 为 IOS 构建 Expo 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50778011/

相关文章:

ios - AVAssetExportSession 为零 iPhone 7 - Plus 模拟器

ios - 将选项卡添加到 React Native map 中

android - 无法将 react-native 2 项目构建到手机

ios - expo弹出后无法运行IOS,只能看到白屏,如何使其工作?

ios - UISearchBar 向下移动 20 像素

ios - Swift NSTimer 将 userInfo 检索为 CGPoint

ios - xcode-阻止音频文件相互播放

javascript - 如何使用 React Native 创建发光动画

ios - 未处理的 js 异常 : application main has not been registered expo TestFlight

javascript - 如何将图像URI转换为字节Expo