Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

build:ios fails with no error #1875

Closed
jsdtaylor opened this issue Apr 14, 2020 · 12 comments
Closed

build:ios fails with no error #1875

jsdtaylor opened this issue Apr 14, 2020 · 12 comments

Comments

@jsdtaylor
Copy link

Description

I'm trying to build an iOS standalone app. It currently fails with no error every time.

Expected Behavior

expo build:ios builds an iOS standalone app.

Observed Behavior

tl;dr

Screenshot 2020-04-14 at 11 21 02

Terminal Output

$ EXPO_DEBUG=true expo build:ios -c
Checking if there is a build in progress...

? Do you have access to the Apple account that will be used for submitting this app to the App Store
? Yes
Please enter your Apple Developer Program account credentials. These credentials are needed to
manage certificates, keys and provisioning profiles in your Apple Developer account.
The password is only used to authenticate with Apple and never stored
Learn more here (​https://bit.ly/2VtGWhU​)
? Apple ID: [redacted]
? Password (for [redacted]): [hidden]
Authenticating to Apple Developer Portal...
Authenticated with Apple Developer Portal successfully!
Only 1 team associated with your account, using Apple Team with ID: 2MD5[redacted]
Fetching available credentials
? You are removing certificate used by [redacted]. Do you want to continue? Yes
Removing Distribution Certificate...

? Do you also want to revoke it on Apple Developer Portal? Yes
✔ Revoking Distribution Certificate on Apple Servers...
Removing Provisioning Profile for [redacted]
Removing Provisioning Profile...

✔ Revoking Provisioning Profile on Apple Servers...
? Removing this key/cert will disable notifications in [redacted]. Do you want to continue? Yes
Removing Push Key...

? Do you also want to revoke it on Apple Developer Portal? Yes
✔ Revoking Push Key on Apple Servers...
✔ App ID found on Apple Developer Portal.
✔ Getting Distribution Certificates from Apple...
? Will you provide your own Apple Distribution Certificate? Let Expo handle the process
✔ Creating Distribution Certificate on Apple Servers...
Successfully assigned Distribution Certificate to [redacted]
✔ Getting Push Keys from Apple...
? Will you provide your own Apple Push Notifications service key? Let Expo handle the process
✔ Creating Push Key on Apple Servers...
Successfully assigned Push Key to [redacted]
✔ Getting Provisioning Profiles from Apple...
? Will you provide your own Apple Provisioning Profile? Let Expo handle the process
✔ Creating Provisioning Profile on Apple Servers...
Successfully created Provisioning Profile

  Experience: [redacted], bundle identifier: [redacted]
    Provisioning profile (ID: 33JH[redacted])
    Apple Team ID: 2MD5[redacted],  Apple Team Name: ---------


Project Credential Configuration:
  Experience: [redacted], bundle identifier: [redacted]
    Provisioning profile (ID: 33JH[redacted])
    Apple Team ID: 2MD5[redacted],  Apple Team Name: ---------

  Distribution Certificate - Certificate ID: AXVW[redacted]
    Apple Team ID: 2MD5[redacted],  Apple Team Name: [redacted] (Company/Organization)
    used by
      [redacted]
  Push Notifications Key - Key ID: 493F[redacted]
    Apple Team ID: 2MD5[redacted],  Apple Team Name: [redacted] (Company/Organization)
    used by
     [redacted]
Publishing to channel 'default'...
Building iOS bundle
Building Android bundle
Analyzing assets
Uploading assets
No assets changed, skipped.
Processing asset bundle patterns:
- [redacted]/packages/app/**/*
Uploading JavaScript bundles
Publish complete

The manifest URL is: https://exp.host/[redacted] (​https://exp.host/[redacted]/index.exp?sdkVersion=37.0.0​). Learn more. (​https://expo.fyi/manifest-url​)
The project page is: https://expo.io/[redacted] (​https://expo.io/[redacted]​). Learn more. (​https://expo.fyi/project-page​)
Checking if this build already exists...

Build started, it may take a few minutes to complete.
You can check the queue length at https://expo.io/turtle-status

You can monitor the build at

 https://expo.io/dashboard/[redacted]/builds/2b861033-[redacted]

Waiting for build to complete.
You can press Ctrl+C to exit. It won't cancel the build, you'll able to monitor it at the printed URL.
✖ Build failed.
Standalone build failed!

Environment

$ expo diagnostics                 

  Expo CLI 3.17.24 environment info:
    System:
      OS: macOS 10.15.4
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 12.14.1 - /usr/local/bin/node
      Yarn: 1.22.0 - ~/.yarn/bin/yarn
      npm: 6.14.4 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    IDEs:
      Android Studio: 3.6 AI-192.7142.36.36.6241897
      Xcode: 11.4/11E146 - /usr/bin/xcodebuild
    npmPackages:
      expo: ^37.0.0 => 37.0.6 
      react: 16.9.0 => 16.9.0 
      react-native: https://github.com/expo/react-native/archive/sdk-37.0.0.tar.gz => 0.61.4 
      react-navigation: ^4.2.2 => 4.3.7 
    npmGlobalPackages:
      expo-cli: 3.17.24

Reproducible Demo

As above.

@jmackay-io
Copy link

We're having the same error. No logs, no place to start trying to debug...

@brentvatne
Copy link
Member

@jmackay-io @jsdtaylor - can you send build ids to secure@expo.io please?

@jmackay-io
Copy link

build id sent - appreciate the quick response. Unfortunately we deleted a number of our errored builds, but we can generate more if needed

@jmackay-io
Copy link

I don't know if this helps anyone, but we were using expo's team features and running expo build:ios from an administrator account which failed consistently. When we switched over to using the account owner, our build issues went away. Can't say if that's what caused @jsdtaylor 's issues, but it's what fixed ours.

@jsdtaylor
Copy link
Author

@jmackay-io @jsdtaylor - can you send build ids to secure@expo.io please?

Sent! 👍

@jsdtaylor
Copy link
Author

I don't know if this helps anyone, but we were using expo's team features and running expo build:ios from an administrator account which failed consistently. When we switched over to using the account owner, our build issues went away. Can't say if that's what caused @jsdtaylor 's issues, but it's what fixed ours.

WORKS! You're a beautiful human, @jmackay-io

@brentvatne
Copy link
Member

sorry there was a regression in support for the owner field, we've fixed that in the latest expo-cli release

@cruzach
Copy link
Contributor

cruzach commented Apr 16, 2020

As Brent said, this is fixed in the latest release on Android

On iOS, we're still working on the fix, but in the meantime in order to build from a teammate account, you'll need to pass in your iOS credentials manually by providing:

  • EXPO_IOS_DIST_P12_PASSWORD env variable
  • --dist-p12-path <path here> --push-p8-path <path here> --provisioning-profile-path <path here> --push-id <push id here> --team-id <team id here>

with the expo build:ios command. After you do that one time, credentials will be configured correctly and you can continue to build as you normally would, unless your iOS build credentials change.

You can get those credentials that you pass in through the CLI flags by running expo fetch:ios:certs from the team owner account in your project's directory.

Sorry about this inconvenience! If you still have any issues, feel free to write in to secure@expo.io with your affected build IDs and we'll do everything we can to help you out

@cruzach cruzach reopened this Apr 16, 2020
@soconrep
Copy link

soconrep commented Apr 18, 2020

I have same issue.

Waiting for build to complete.
You can press Ctrl+C to exit. It won't cancel the build, you'll able to monitor it at the printed URL.
✖ Build failed.
Standalone build failed!

run all step @cruzach. but not working.

@brentvatne
Copy link
Member

@soconrep - send your build url to secure@expo.io

@cruzach
Copy link
Contributor

cruzach commented Apr 28, 2020

Hi everyone! this issue should be resolved in the most recent version of expo-cli, so once you update- no need to pass in certificates manually anymore!
and thanks so much for your patience on this 🙂

Please let us know if you still run into this on expo-cli v3.19.2 or greater

@cruzach cruzach closed this as completed Apr 28, 2020
@Mahmoud3ali
Copy link

This can be a result if you are trying to build the same build over the same channel too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants