question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

running expo build for iOS

See original GitHub issue

assuming the flow in which expo is taking care of the entire signature and provisioning stuff for you do you have an example of how to create an expo build:ios -t archive flow, which having the Apple Connect user/pass?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
byCedriccommented, Oct 20, 2020

Hi @zivl! That should be possible by using environment variables! Based on the envvars used here and the options from the command itself, it should look something like:

name: Build Archive
on:
  push:
    branches:
      - master
jobs:
  publish:
    name: Install and build
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v1
        with:
          node-version: 14.x
      - uses: expo/expo-github-action@v5
        with:
          expo-version: 3.x
          expo-token: ${{ secrets.EXPO_TOKEN }}
      - run: yarn install
      - run: expo build:ios --no-wait --type archive
        env:
          EXPO_APPLE_ID: ${{ secrets.APPLE_ID }}
          EXPO_APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}

You can play around with the options you provide to expo build:ios, but the env vars should be enough for you to authenticate. If you have more commands depending on the build or if you want to reflect the GH Action status on a successful build, you can omit --no-wait ofc.

Can you try this out? I’ll add it to the readme if that works as expected 😄

1reaction
zivlcommented, Nov 14, 2020

@byCedric It did work! Amazing! 🍺

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating your first build - Expo Documentation
The easiest way to try out EAS Build is to create a build that you can run on your Android device/emulator or iOS...
Read more >
Building Standalone Apps - Expo Documentation
To start the build process, run expo build:android or expo build:ios depending on the platform you are building for. If there is no...
Read more >
iOS build process - Expo Documentation
Create a new macOS VM for the build. · Download the project tarball from a private AWS S3 bucket and unpack it. ·...
Read more >
EAS Build - Expo Documentation
EAS Build is a hosted service for building app binaries for your Expo and React Native projects.
Read more >
Building for iOS Simulators - Expo Documentation
Running a build of your app in an iOS Simulator is particularly useful in managed apps to get the standalone (independent of Expo...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found