React Native。使用Expo生成.apk和.ipa[英] React Native: Generate .apk and .ipa using Expo

本文是小编为大家收集整理的关于React Native。使用Expo生成.apk和.ipa的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

我正在尝试使用Expo使用Expo并创建React Andive应用程序为我的React Andive应用程序生成.IPA和.APK文件.我成功地构建了该应用程序,并且能够通过文档将其运行在iOS和Android设备上: https://docs.expo.io/versions/v16.0.0.0.0.0.0.0/guides/building-standalone-apps.html

构建结束后,我的控制台显示了

之类的东西

您的URL是 https://exp.host/@myname/myapp

i然后在设备上打开exp.host/@myname/myapp,并通过Expo客户端显示该应用程序.

但是在文档的第4点,据说

完成后,您会看到.apk(android)或.ipa(ios)文件的URL - 这是您的应用程序.

我有点困惑.在此过程中,我在PC上任何地方生成的任何IPA或APK文件都没有.我想念什么吗?我如何实际生成文件?

推荐答案

您需要运行expo build:status.建筑过程完成后,您将看到链接到下载apk(android)或ipa(ios)文件.

其他推荐答案

确保在app.json

中确保
{
  "expo": {
    "name": "your app name",
    "description": "your app desc",
    ....,
    "ios": {
      "supportsTablet": true
    },
    
    "android": {
      "package": "com.yourcompany.yourappname"
    }
  }
}

然后运行expo build:android或expo ba

之后

运行expo build:status 您会发现,类似的东西,APK托管在Amazon AWS

[exp] Android:
[exp] APK: https://HOST/yourapp.apk

其他推荐答案

  • 使用`expo build:android`为android
  • 使用`expo build:ios` iOS

如果您没有博览会帐户,它将要求创建新帐户 expo build:status 要知道您的应用程序状态和排队的应用程序可能需要30分钟才能生成APK文件.
您可以在Expo网站

中找到它.

如何从Expo中生成apk/ios文件

本文地址:https://www.itbaoku.cn/post/1937900.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

Your URL is https://exp.host/@myname/myapp

I then open exp.host/@myname/myapp on my device and the app shows up via the Expo client.

But at point 4 of the docs, it is said that

When it’s done, you’ll see the url of a .apk (Android) or .ipa (iOS) file — this is your app.

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 ?

推荐答案

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.

其他推荐答案

make sure in app.json

{
  "expo": {
    "name": "your app name",
    "description": "your app desc",
    ....,
    "ios": {
      "supportsTablet": true
    },
    
    "android": {
      "package": "com.yourcompany.yourappname"
    }
  }
}

then run expo build:android or expo ba

after that

run expo build:status you'll find, something like this, the Apk's is hosted on amazon aws

[exp] Android:
[exp] APK: https://HOST/yourapp.apk

其他推荐答案

  • use `expo build:android` for android
  • use `expo build:ios` for ios

it will ask to create new account if you don't have an expo account expo build:status to know status of your app & the queued app may take around 30 mins to generate apk file .
you can find it in expo website

how to generate apk/ios file from expo