React Native:使用 Expo 生成 .apk 和 .ipa [英] React Native: Generate .apk and .ipa using Expo
问题描述
我正在尝试使用 Expo & 为我的 React Native 应用程序生成 .ipa 和 .apk 文件.创建 React Native 应用程序.我成功构建了该应用程序,并且能够在 iOS 和 iOS 上运行它.Android 设备感谢文档:https://docs.expo.io/versions/v16.0.0/guides/building-standalone-apps.html
I'm trying to generate a .ipa and a .apk file for my React Native app using Expo & Create React Native App. I successfully built the app and was able to get it to run on both an iOS & an Android device thanks to the docs: https://docs.expo.io/versions/v16.0.0/guides/building-standalone-apps.html
构建结束后,我的控制台显示类似
When the build is over, my console shows something like
您的网址是https://exp.host/@myname/myapp
然后我在我的设备上打开 exp.host/@myname/myapp
,应用程序通过 Expo 客户端显示.
I then open exp.host/@myname/myapp
on my device and the app shows up via the Expo client.
但是在文档的第 4 点,据说
But at point 4 of the docs, it is said that
完成后,您将看到 .apk (Android) 或 .ipa (iOS) 文件的网址 — 这是您的应用.
When it’s done, you’ll see the url of a .apk (Android) or .ipa (iOS) file — this is your app.
我有点困惑.在这个过程中,我没有看到我电脑上任何地方生成的任何 ipa 或 apk 文件.我错过了什么吗?我如何实际生成文件?
I'm a bit confused. No where in the process do I see any ipa or apk file generated anywhere on my pc. Am I missing something ? How do I actually generate the files ?
推荐答案
您将需要运行 expo build:status
.构建过程完成后,您将看到下载 apk
(Android) 或 ipa
(IOS) 文件的链接.
You will need to run expo build:status
. When building process is complete you will see link to download apk
(Android) or ipa
(IOS) file.
这篇关于React Native:使用 Expo 生成 .apk 和 .ipa的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!