-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
New integration tests added in #131865 are failing in CI:
flutter_gallery_ios__start_up_xcode_debug
integration_ui_ios_driver_xcode_debug
Errors when trying to open Xcode due to incompatible OS version
executing: open -a /opt/flutter/xcode/14e300c/XCode.app -g -j /opt/s/w/ir/x/w/recipe_cleanup/tmpe3k4n4er/flutter sdk/dev/integration_tests/ui/ios/Runner.xcworkspace
[2023-08-09 15:07:27.943464] [STDOUT] stdout: [ +39 ms] The application /opt/flutter/xcode/14e300c/XCode.app cannot be opened for an unexpected reason, error=Error Domain=NSOSStatusErrorDomain Code=-10825 "kLSIncompatibleSystemVersionErr: The app cannot run on the current OS version" UserInfo={_LSLine=3863, _LSFunction=_LSOpenStuffCallLocal}
I believe this is due to the Xcode version (14e300c) requiring macOS 13+ and the devicelab hosts being on 12.6.
Plan to fix:
Until hosts are upgraded, target level override the osx_sdk in .ci.yaml to Xcode 14.2 (14C18), which is already in CIPD. Xcode 14.2 requires macOs 12.5.
Also, secondary issue that we'll need to handle with AppleScript authorization dialog (see example).
Unfortunately, you can't pre-whitelist a application to allow Automation and can only change the setting after you've been prompted for it.
However, we could potentially do something sus with the TCC.db to whitelist it.
Tests removed in #132398, make sure to readd.