bitrise-steplib / steps-xcode-archive

Xcode Archive for iOS step
MIT License
68 stars 56 forks source link

XCode Archive & Export for iOS fails since 5.2.1 #361

Closed mtx-tnguyen closed 1 month ago

mtx-tnguyen commented 1 month ago

Troubleshooting

Useful information

Issue description

Our CD was working perfectly until this morning, when we got the following error::

Failed to execute Step main logic: failed to archive the project: command failed with exit status 65 (set -o pipefail && xcodebuild "archive" "-workspace" "/Users/[REDACTED]/git/ios/meilleurtaux.xcworkspace" "-scheme" "preprod" "-configuration" "preprodRelease" "-xcconfig" "/var/folders/yy/6kcn9mkd5svdbqnznwf474f00000gn/T/52466558/temp.xcconfig" "-archivePath" "/var/folders/yy/6kcn9mkd5svdbqnznwf474f00000gn/T/xcodeArchive2430447478/MTX PREPROD.xcarchive" "-destination" "generic/platform=iOS" | xcpretty): error: Could not get GOOGLE_APP_ID in Google Services file from build environment (exit code: 1)

We changed nothing since yesterday, we just got these errors on every build since this morning, and I only just thought about checking for changelogs, and got the good surprise of finding only one update on the step that is now failing ^^

Bitrise info

Failed to execute Step main logic: failed to archive the project: command failed with exit status 65 (set -o pipefail && xcodebuild "archive" "-workspace" "/Users/[REDACTED]/git/ios/meilleurtaux.xcworkspace" "-scheme" "preprod" "-configuration" "preprodRelease" "-xcconfig" "/var/folders/yy/6kcn9mkd5svdbqnznwf474f00000gn/T/52466558/temp.xcconfig" "-archivePath" "/var/folders/yy/6kcn9mkd5svdbqnznwf474f00000gn/T/xcodeArchive2430447478/MTX PREPROD.xcarchive" "-destination" "generic/platform=iOS" | xcpretty): error: Could not get GOOGLE_APP_ID in Google Services file from build environment (exit code: 1)
  

Steps to reproduce

Rebuild any of our previous builds from before. We should expect it to work, it now fails (for 2 reasons by the way, because another issue of Bitrise is that when it sees an nvmrc file, it switches to the indicated version, but does not install it ; Bitrise should either ignore the .nvmrc file completely, or install the version before switching to it --- And Bitrise upgraded the configuration of the XCode 15.2 and bumped the default Node version from 18.20.2 to 18.20.4)

mtx-tnguyen commented 1 month ago

Sorry it seems there are multiple errors and the step update might not be the cause of it, so I'm closing the issue for now!