Open eroshinn opened 1 year ago
Hi @eroshinn, thanks for reporting this and sorry for the problem.
I tried running patrol test
on iOS Simualtor (iPhone 11, iOS 13.7) and it failed as well, but with a different error. This is something we need to look at.
Here's my output. I have started iPhone 11 simulator running iOS 13.7. It crashed.
$ patrol --version
patrol_cli v2.0.4
I also tried running on iPhone 13 simulator running iOS 15.5. It crashed as well.
Firebase Test Lab also dropped support for iOS 13. I'm going to run any other non-16 version.
I managed to run on iPhone 13 simulator running iOS 15.5.
First run patrol build ios --debug --simulator
.
Then go to the ios
directory and run:
xcodebuild test-without-building \
-xctestrun /Users/bartek/dev/leancode/patrol/packages/patrol/example/build/ios_integ/Build/Products/Runner_iphonesimulator16.4-arm64-x86_64.xctestrun \
-only-testing RunnerUITests \
-destination 'platform=iOS Simulator,name=iPhone 13,OS=15.5'
The only difference between the above xcodebuild
invocation and the one that patrol_cli
does internally is in the -destination
:
-destination 'platform=iOS Simulator,name=iPhone 13,OS=15.5'
(works)-destination 'platform=iOS Simulator,name=iPhone 13'
(doesn't work)Unfortunately, for some reason, running with -destination 'platform=iOS Simulator,name=iPhone 11,OS=13.7'
crashes right after the initial run. Unknown cause.
Hello!
First of all, thanks a lot for an awesome framework, it adds crucial missing features to the Flutter integration tests thus making our lives much easier
Steps to reproduce
1) Create a default Flutter project 2) Integrate Patrol, use the default example_test.dart 3) Launch any iOS simulator with non-latest iOS version (e.g. 15.5) 4) Try running a Patrol test
Actual results
Test doesn't launch, this error log is shown:
The
OS:latest
bit seems suspicious: you can run a test without any problems if you use a simulator with the highest available iOS version your xcode allowsIt seems like a bug, because Patrol should work fine with iOS ^13.0
Patrol version
patrol: ^1.1.2
Patrol Doctor output
Patrol Doctor output
``` You're using Patrol CLI 2.0, which has breaking changes. Read the migration guide at https://patrol.leancode.co/v2. Disable this warning by setting the PATROL_MIGRATED environment variable. Patrol CLI version: 2.0.0 Program adb not found Env var $ANDROID_HOME is not set Program xcodebuild found in /usr/bin/xcodebuild Program ideviceinstaller found in /opt/homebrew/bin/ideviceinstaller ```Flutter Doctor output
Flutter Doctor output
``` Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.10.3, on macOS 12.6.1 21G217 darwin-arm64, locale en) [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1) [✓] Xcode - develop for iOS and macOS (Xcode 14.2) [✓] Chrome - develop for the web [✓] Android Studio (version 2021.3) [✓] VS Code (version 1.79.2) [✓] Connected device (3 available) [✓] Network resources • No issues found!v ```