[英]Is Expo able to build a production-ready iOS app without needing a Mac?
I'm about to start developing a React Native app.我即将开始开发 React Native 应用程序。 However, for iOS, my company is unable to provide me a physical Mac device for building/publishing the app.
但是,对于 iOS,我的公司无法为我提供用于构建/发布应用程序的物理 Mac 设备。
So I'm planning to use Expo.所以我打算使用世博会。 But can Expo replace a physical Mac for building the app (I mean, getting the app ready for the App Store)?
但是 Expo 能否取代物理 Mac 来构建应用程序(我的意思是,让应用程序为 App Store 做好准备)? Or is Expo only used to test the app on an iPhone (by flashing the QR code)?
还是 Expo 仅用于在 iPhone 上测试应用程序(通过闪烁二维码)? I'm a bit confused.
我有点困惑。
Short answer: Yes, with a curve.简短回答:是的,有曲线。
Long answer: Before your app is released, react native needs to transpile
your javascript to exo-native code (not sure of the real term for that).长答案:在您的应用程序发布之前,
transpile
Native 需要将您的 JavaScript 转换为外部本地代码(不确定真正的术语)。 And this process may not run unless you 'eject' your code.除非你“弹出”你的代码,否则这个过程可能不会运行。 This produces the android and ios folders that would be almost production ready except that you now have to
build
to generate apk
in the case of Android or app
in the case of iOS.这将生成几乎可以用于生产的 android 和 ios 文件夹,除了您现在必须
build
以在 Android 的情况下生成apk
或在 iOS 的情况下生成app
。
Now if you have added third party plugins, that have native codes, that expo does not already have a unimodule
for, these won't work in expo because they need to really be compiled into native codes before being bundled into your app.现在,如果您添加了具有本机代码的第三方插件,那么 expo 还没有
unimodule
,这些插件将无法在 expo 中使用,因为它们需要在捆绑到您的应用程序之前真正编译成本机代码。
Edit: Expos has evolved during these years and the former short answer I gave as No, no longer is as valid.编辑:Expos 在这些年里发生了变化,我之前给出的简短回答“否”不再有效。 You can now build without a Mac;
您现在可以在没有 Mac 的情况下进行构建; expo does that for you.
世博会为你做到这一点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.