Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get Patrol to run on Flutter 3.16.1 Vanilla App for iOS #1977

Closed
julien-neon opened this issue Dec 1, 2023 · 2 comments
Closed

Cannot get Patrol to run on Flutter 3.16.1 Vanilla App for iOS #1977

julien-neon opened this issue Dec 1, 2023 · 2 comments

Comments

@julien-neon
Copy link

julien-neon commented Dec 1, 2023

Steps to reproduce

  1. flutter create patrol_test
  2. Follow the steps from Getting Started for iOS (app_name = Patrol Test and bundle_id / package_name = com.example.patrolTest)
  3. Try to run the described example_test.dart on the iOS Simulator in verbose mode: patrol test -t integration_test/example_test.dart -d "iPhone 15 Plus" --verbose

Actual results

I receive the log (text form of logs available via pastebin below)
image

Following the granular logs (thanks to the verbose flag), there is some file that cannot be read (text form of logs available via pastebin below):

image

After running the suggested fix sudo chown -R $(whoami) /Users/julien/Development/projects/patrol_test/build/ios_integ/Build/Products/Debug-iphonesimulator/.last_build_id it does not run on my specified iOS emulator.

My best guess as of today is that it has something to do with Flutter >= 3.16.0 and patrol > 3.0.0?

When playing around with it a couple of weeks ago pre Flutter 3.16.0 and patrol v2.x.y, it worked out just fine.

Logs

Logs

The logs were too long, so I made them available here via Pastebin.

Patrol version

patrol: ^3.1.0

Patrol Doctor output

Patrol Doctor output
Patrol CLI version: 2.3.1+1
Program adb found in /opt/homebrew/bin/adb
Env var $ANDROID_HOME set to /Users/julien/Library/Android/sdk
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.16.1, on macOS 14.0 23A344 darwin-arm64, locale en-DE)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.84.1)
[✓] VS Code (version 1.79.0-insider)
[✓] Connected device (4 available)
[✓] Network resources

• No issues found!
@piotruela
Copy link
Collaborator

Hi @julien-neon. It looks like a issue with running test using XCode 15. Try disabling User Script Sandboxing for RunnerUITests as described here. If you'll have any other questions join our discord channel. Closing for now as it's not a bug.

Copy link

github-actions bot commented Dec 8, 2023

This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants