Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

Weird fastlane exited with non-zero code: 1 - (It worked 15 minutes ago and suddenly it does not) #336

Open
5 tasks done
jaroslavhuss opened this issue Sep 30, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@jaroslavhuss
Copy link

jaroslavhuss commented Sep 30, 2021

New Issue Checklist

  • Updated turtle-cli to the latest version (yarn global add turtle-cli or npm install --global turtle-cli).
  • I read the Contribution Guidelines.
  • I read docs.expo.dev (Managed Workflow > Distributing Your App).
  • I searched for existing GitHub issues.
  • I enclosed the complete output when running turtle, including the stack trace and command used.

How do I run the process?

  1. cd to the expo root directory
  2. expo fetch:ios:certs - this downloads .p12 and mobileprovisioning files
  3. I rename files so the path requirements are met
  4. sudo EXPO_IOS_DIST_P12_PASSWORD="***************" \
    turtle build:ios \
    --team-id ********* \
    --dist-p12-path ./cert.p12 \
    --provisioning-profile-path ./cert.mobileprovision \
    -u *********** \
    -p ***********
  5. Credentials are 100% good - it used to work for the first two apps and suddenly stopped working for others...
  6. Could be the fact I am on a MacBook M1 machine a sudden problem?

Issue Description

I have built two apps with turtle-cli without any problem. (I am still using the same command written down below). The third app threw an error:

Sep 30 19:33:41 turtle[4176] ERROR: Error: fastlane exited with non-zero code: 1 at ChildProcess.completionListener (/usr/local/lib/node_modules/turtle-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:65:13) at Object.onceWrapper (events.js:422:26) at ChildProcess.emit (events.js:315:20) at ChildProcess.EventEmitter.emit (domain.js:467:12) at maybeClose (internal/child_process.js:1048:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) ... at spawnAsync (/usr/local/lib/node_modules/turtle-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:26:19) at spawnAsyncThrowError (/@expo/xdl@59.1.0/src/detach/ExponentTools.ts:111:19) at runFastlane (/@expo/xdl@59.1.0/src/detach/IosCodeSigning.js:323:9) at Object.buildIPA (/@expo/xdl@59.1.0/src/detach/IosCodeSigning.js:132:11) at Object.build (/@expo/xdl@59.1.0/src/detach/IosIPABuilder.js:66:28) at buildAndSignIPA (/usr/local/lib/node_modules/turtle-cli/src/builders/ios/archive.ts:58:3) at Object.buildArchive [as default] (/usr/local/lib/node_modules/turtle-cli/src/builders/ios/archive.ts:20:5) at iosBuilder (/usr/local/lib/node_modules/turtle-cli/src/builders/ios/index.ts:33:7) at /usr/local/lib/node_modules/turtle-cli/src/bin/utils/builder.ts:87:7 at Command.<anonymous> (/usr/local/lib/node_modules/turtle-cli/src/bin/index.ts:23:12) platform: "ios"

So I came back to those two apps which were working perfectly (15 minutes before the error) - and they throw the same error as well now. It is super weird.

Command executed

sudo EXPO_IOS_DIST_P12_PASSWORD="***************" \
turtle build:ios \
--team-id ********* \
--dist-p12-path ./cert.p12 \
--provisioning-profile-path ./cert.mobileprovision \
-u *********** \
-p ***********

Complete output when running turtle, including the stack trace and command used
 Sep 30 19:33:41 turtle[4176] INFO:  	from /opt/homebrew/Cellar/fastlane/2.195.0/libexec/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
  platform: "ios"
  buildPhase: "building and signing IPA"
  source: "stderr"
Sep 30 19:33:41 turtle[4176] INFO:  	from /opt/homebrew/Cellar/fastlane/2.195.0/libexec/gems/fastlane-2.195.0/gym/lib/gym/commands_generator.rb:76:in `run'
  platform: "ios"
  buildPhase: "building and signing IPA"
  source: "stderr"
Sep 30 19:33:41 turtle[4176] INFO:  	from /opt/homebrew/Cellar/fastlane/2.195.0/libexec/gems/fastlane-2.195.0/gym/lib/gym/commands_generator.rb:16:in `start'
  platform: "ios"
  buildPhase: "building and signing IPA"
  source: "stderr"
Sep 30 19:33:41 turtle[4176] INFO:  	from /opt/homebrew/Cellar/fastlane/2.195.0/libexec/gems/fastlane-2.195.0/fastlane/lib/fastlane/cli_tools_distributor.rb:114:in `take_off'
  platform: "ios"
  buildPhase: "building and signing IPA"
  source: "stderr"
Sep 30 19:33:41 turtle[4176] INFO:  	from /opt/homebrew/Cellar/fastlane/2.195.0/libexec/gems/fastlane-2.195.0/bin/fastlane:23:in `'
  platform: "ios"
  buildPhase: "building and signing IPA"
  source: "stderr"
Sep 30 19:33:41 turtle[4176] INFO:  	from /opt/homebrew/Cellar/fastlane/2.195.0/libexec/bin/fastlane:23:in `load'
  platform: "ios"
  buildPhase: "building and signing IPA"
  source: "stderr"
Sep 30 19:33:41 turtle[4176] INFO:  	from /opt/homebrew/Cellar/fastlane/2.195.0/libexec/bin/fastlane:23:in `'
  platform: "ios"
  buildPhase: "building and signing IPA"
  source: "stderr"
Sep 30 19:33:41 turtle[4176] INFO:  removed provisioning profile from the home directory
  platform: "ios"
  buildPhase: "building and signing IPA"
Sep 30 19:33:41 turtle[4176] ERROR: Error: fastlane exited with non-zero code: 1
    at ChildProcess.completionListener (/usr/local/lib/node_modules/turtle-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:65:13)
    at Object.onceWrapper (events.js:422:26)
    at ChildProcess.emit (events.js:315:20)
    at ChildProcess.EventEmitter.emit (domain.js:467:12)
    at maybeClose (internal/child_process.js:1048:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
    ...
    at spawnAsync (/usr/local/lib/node_modules/turtle-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:26:19)
    at spawnAsyncThrowError (/@expo/xdl@59.1.0/src/detach/ExponentTools.ts:111:19)
    at runFastlane (/@expo/xdl@59.1.0/src/detach/IosCodeSigning.js:323:9)
    at Object.buildIPA (/@expo/xdl@59.1.0/src/detach/IosCodeSigning.js:132:11)
    at Object.build (/@expo/xdl@59.1.0/src/detach/IosIPABuilder.js:66:28)
    at buildAndSignIPA (/usr/local/lib/node_modules/turtle-cli/src/builders/ios/archive.ts:58:3)
    at Object.buildArchive [as default] (/usr/local/lib/node_modules/turtle-cli/src/builders/ios/archive.ts:20:5)
    at iosBuilder (/usr/local/lib/node_modules/turtle-cli/src/builders/ios/index.ts:33:7)
    at /usr/local/lib/node_modules/turtle-cli/src/bin/utils/builder.ts:87:7
    at Command. (/usr/local/lib/node_modules/turtle-cli/src/bin/index.ts:23:12)
  platform: "ios"
Sep 30 19:33:41 turtle[4176] INFO:  delete keychain...
  platform: "ios"
  buildPhase: "deleting keychain"
Sep 30 19:33:41 turtle[4176] INFO:  deleting keychain...
  platform: "ios"
  buildPhase: "deleting keychain"
Sep 30 19:33:42 turtle[4176] INFO:  done deleting keychain
  platform: "ios"
  buildPhase: "deleting keychain"
Sep 30 19:33:42 turtle[4176] ERROR: Failed to build standalone app
  err: Error: fastlane exited with non-zero code: 1
      at ChildProcess.completionListener (/usr/local/lib/node_modules/turtle-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:65:13)
      at Object.onceWrapper (events.js:422:26)
      at ChildProcess.emit (events.js:315:20)
      at ChildProcess.EventEmitter.emit (domain.js:467:12)
      at maybeClose (internal/child_process.js:1048:16)
      at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
      ...
      at spawnAsync (/usr/local/lib/node_modules/turtle-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:26:19)
      at spawnAsyncThrowError (/@expo/xdl@59.1.0/src/detach/ExponentTools.ts:111:19)
      at runFastlane (/@expo/xdl@59.1.0/src/detach/IosCodeSigning.js:323:9)
      at Object.buildIPA (/@expo/xdl@59.1.0/src/detach/IosCodeSigning.js:132:11)
      at Object.build (/@expo/xdl@59.1.0/src/detach/IosIPABuilder.js:66:28)
      at buildAndSignIPA (/usr/local/lib/node_modules/turtle-cli/src/builders/ios/archive.ts:58:3)
      at Object.buildArchive [as default] (/usr/local/lib/node_modules/turtle-cli/src/builders/ios/archive.ts:20:5)
      at iosBuilder (/usr/local/lib/node_modules/turtle-cli/src/builders/ios/index.ts:33:7)
      at /usr/local/lib/node_modules/turtle-cli/src/bin/utils/builder.ts:87:7
      at Command. (/usr/local/lib/node_modules/turtle-cli/src/bin/index.ts:23:12)
  platform: "ios"

Environment

  Expo CLI 4.12.0 environment info:
    System:
      OS: macOS 11.6
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 14.16.0 - /usr/local/bin/node
      Yarn: 1.22.10 - /usr/local/bin/yarn
      npm: 7.24.1 - /usr/local/bin/npm
      Watchman: 2021.09.27.00 - /opt/homebrew/bin/watchman
    Managers:
      CocoaPods: 1.11.2 - /usr/local/bin/pod
    SDKs:
      iOS SDK:
        Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0
    IDEs:
      Xcode: 13.0/13A233 - /usr/bin/xcodebuild
    npmPackages:
      expo: * => 38.0.8 
      react: * => 16.11.0 
      react-dom: * => 16.11.0 
      react-native: * => 0.62.2 
      react-native-web: * => 0.11.7 
    npmGlobalPackages:
      expo-cli: 4.12.0
    Expo Workflow: managed 
@jaroslavhuss jaroslavhuss added the bug Something isn't working label Sep 30, 2021
@DarkVito
Copy link

Hey i have the same problem. Have you solved it?

@jaroslavhuss
Copy link
Author

Hey i have the same problem. Have you solved it?

Hello DarkVito,

unfortunately not. I also asked the team on their Discord but nobody had a time to look at this issue... If you find a solution, please, let me know.

Jaroslav

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants