Xcode build command not applied

Bitrise Build Issue Report template

Description of the issue

I’ve set an additional option for the xcodebuild command but it’s only applied to the first instance xcodebuild is run

Environment:

Xcode 16.2 based on macOS 14.5 Sonoma.

Which build Step causes the issue and which version of the step?

Xcode Archive & Export for iOS

Reproducibility

  • Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build) : NO
  • Does a rebuild without caches help? (You can remove the Cache:Pull and Cache:Push steps temporarily to not to use the cache, or you can delete all the caches on the Settings tab of the app. : NO
  • Does the issue happen sporadically, or every time? : Everytime
  • Does upgrading the build Step to the latest version help? : NO
  • When did the issue start? : updating to xcode 16.2

Local reproduction

Can it be reproduced on your own Mac/PC by following our local debug guide? Please follow at least the first section (“Testing with a full clean git clone”) to make sure to test the state of the code what bitrise.io will get when it does a git clone in the clean environment! If possible please note which sections you tried.

No if I run the xcodebuild command with the extra option it works

Build log

You can see the extra option is set in the first command -resolvePackageDependencies but not the second -showBuildSettings

Running resolve Swift package dependencies [19:46:22] Resolving package dependencies… [19:46:22] $ xcodebuild “-workspace” “/Users/[REDACTED]/git/mobile/apps/%/ios/%.xcworkspace” “-scheme” “%” “-resolvePackageDependencies” “-destination” “generic/platform=iOS” Command line invocation: /Applications/Xcode-16.2.0.app/Contents/Developer/usr/bin/xcodebuild -workspace /Users/[REDACTED]/git/mobile/apps/%/ios/%.xcworkspace -scheme % -resolvePackageDependencies -destination generic/platform=iOS User defaults from command line: IDEPackageSupportUseBuiltinSCM = YES resolved source packages: [19:46:24] Resolved package dependencies. Looking for artifact name as field is empty

[19:46:24] Reading build settings… [19:46:24] $ xcodebuild “”-workspace" “/Users/[REDACTED]/git/mobile/apps/%/ios/%.xcworkspace” “-scheme” “%” “-showBuildSettings”

Failed to execute Step main logic: failed to read build settings: xcodebuild “-workspace” “/Users/[REDACTED]/git/mobile/apps/%/ios/%.xcworkspace” “-scheme” “%” “-showBuildSettings” command failed,

output: Command line invocation: /Applications/Xcode-16.2.0.app/Contents/Developer/usr/bin/xcodebuild -workspace /Users/[REDACTED]/git/mobile/apps/%/%/%.xcworkspace -scheme % -showBuildSettings User defaults from command line: IDEPackageSupportUseBuiltinSCM = YES 2025-03-21 19:46:26.702 xcodebuild[17632:48607] Writing error result bundle to /var/folders/b8/9zt_tx3s1y37nzh_cs991xyc0000gn/T/ResultBundle_2025-21-03_19-46-0026.xcresult xcodebuild: error: Could not configure request to show build settings: Found no destinations for the scheme ‘%’ and action build.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.