eas build for iOS fails with `git exited with non-zero code: 1`

We’re unable to run eas build successfully for iOS. The observed symptoms are similar to those listed here. Once the we receive the All credentials are ready to build message, as well as ✔ Push Notifications setup for <redacted>, we see the error message: Error: git exited with non-zero code: 1.

We’ve tried every git command listed in the above post, and they all succeed, including the creation of a tarball of the code.

What are other ways to debug what’s going on? It’s unclear where the error message is coming from, which makes debugging tricky.


  • We are on the bare workflow.
  • eas-cli version: eas-cli/0.46.0 darwin-x64 node-v14.17.1
  • expo diagnostics:

Expo CLI 4.13.0 environment info: System: OS: macOS 12.1 Shell: 5.8 - /bin/zsh Binaries: Node: 14.17.1 - ~/.nvm/versions/node/v14.17.1/bin/node Yarn: 1.22.10 - ~/.nvm/versions/node/v14.17.1/bin/yarn npm: 8.3.0 - ~/.nvm/versions/node/v14.17.1/bin/npm Watchman: 2021.06.07.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.2 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3 IDEs: Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild npmPackages: expo: ~43.0.2 => 43.0.3 react: 17.0.1 => 17.0.1 react-dom: 17.0.1 => 17.0.1 react-native: 0.64.3 => 0.64.3 react-native-web: 0.17.1 => 0.17.1 npmGlobalPackages: expo-cli: 4.13.0 Expo Workflow: bare

hi there! what is your eas.json config? can you update to the latest eas-cli and then run DEBUG=* eas build please?

Hey, it seems the issue was that excluding ios/ and android/ directories from git was causing issues. Adding them back fixed things for us :slight_smile:

I think having more of the error message and its context bubble up to the developer would have been super helpful!