patrol icon indicating copy to clipboard operation
patrol copied to clipboard

Xcode 26 appears to handle build scripts differently, can break previously working Patrol integration

Open ewann opened this issue 2 months ago • 0 comments

Steps to reproduce

  1. Follow the getting started guide for iOS up to https://github.com/leancodepl/patrol/blob/master/docs/getting-started.mdx?plain=1#L413 or https://github.com/leancodepl/patrol/blob/master/docs/getting-started.mdx?plain=1#L536 for MacOS
  2. Paste the entire script over the top of the existing /bin/sh, instead of leaving /bin/sh in place, and using the script box for this text

Actual results

Prior to Xcode 26, this appeared to work as intended, and the scripts would run successfully.

Apparently on Xcode 26.0.1 (17A400) this no longer works, resulting in some confusing/misleading errors that can be avoided by using the approach demonstrated in https://www.youtube.com/watch?v=zwQB8LfnTN8&t=926s at the ~15 min - ~15.26 min mark.

Unfortunately, I spent some time before reaching this understanding.

I'm happy to PR a clarification / screenshots about this for iOS & MacOS, but based on https://github.com/leancodepl/patrol/blob/master/CONTRIBUTING.md and not quickly finding how to build the docs locally, decided to submit it here first for feedback.

Logs

Logs
patrol test -t integration_test/example_test.dart -d A3354F44-EC7F-4FD4-993B-93D37F4C9790

<snip>

/bin/sh: "/<redacted>/fvm/versions/3.35.6/packages/flutter_tools/bin/xcode_backend.sh": No such file or directory
        Command PhaseScriptExecution failed with a nonzero exit code

<snip>

Patrol version

patrol: 3.19.0

Patrol Doctor output

Patrol Doctor output
patrol doctor 
Patrol doctor:
Patrol CLI version: 3.10.0
Flutter command: flutter 
  Flutter 3.35.6 • channel stable
Android: 
• Program adb found in /etc/profiles/per-user/<redacted>/bin/adb
• Env var $ANDROID_HOME set to /Users/<redacted>/Library/Android/sdk
iOS / macOS: 
• Program xcodebuild found in /usr/bin/xcodebuild
• Program ideviceinstaller found in /etc/profiles/per-user/<redacted>/bin/ideviceinstaller

Flutter Doctor output

Flutter Doctor output
n/a

ewann avatar Oct 31 '25 13:10 ewann