React Native: Generate .apk and .ipa using Expo

我的未来我决定 提交于 2019-11-30 11:17:50
2r83

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.

Ansyori

make sure in app.json

{
  "expo": {
    "name": "your app name",
    "description": "your app desc",
    ....,
    "ios": {
      "supportsTablet": true
    },

    "android": {
      "package": "com.yourcompany.yourappname"
    }
  }
}

then run exp build:android or exp ba

after that

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

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

If you run

exp build:status

you will get the status update of the build either for ios or android. It will show one of these possible states:

  • Build in progress...
  • There was an error with this build
  • URL of the ipa or apk file

The URL would be something like:

https://expo.io/builds/{buildId}

where {buildId} is a UUID

When you click on the link, it will show the current status, logs being generated, a "Download" button where you can download the ipa or apk file (which will only be available if the build was successful) and a "Cancel" button to cancel the current build (which will only be available if the build is running).

Alternatively you can view your previous and current builds statuses by following this link:

https://expo.io/{@user}/{app}/builds

Replace {@user} with your expo username (including the @ character) and {app} with your app name. Here you can view specific build statuses like Completed or Failed, view logs of your builds, and download current and previous successful builds.

This URL is also shown when you go to your current build, below the "Build logs" title:

This is a build from {@user}/{app}

kartik patel
{
  "expo": {
    "name": "your app name",
    "description": "your app desc",
    ....,
    "ios": {
      "supportsTablet": true
    },

    "android": {
      "package": "com.yourcompany.yourappname"
    }
  }
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!