Skip to content

Instantly share code, notes, and snippets.

@imaNNeo
Created April 16, 2025 08:34
Show Gist options
  • Save imaNNeo/a866584ec2e0f523240a357118c752a8 to your computer and use it in GitHub Desktop.
Save imaNNeo/a866584ec2e0f523240a357118c752a8 to your computer and use it in GitHub Desktop.
Patrol iOS issue logs
~/IdeaProjects/test_app (test-branch) » patrol develop -t integration_test/example_test.dart -d F60F1029-2613-4C93-921B-163CBCC7F140 --verbose
Verbose mode enabled. More logs will be printed.
Received test target: /Users/neo/IdeaProjects/test_app/integration_test/example_test.dart
Generated entrypoint /Users/neo/IdeaProjects/test_app/integration_test/test_bundle.dart for development
Received Android flavor: testapp
Received iOS flavor: testapp
$ flutter --no-version-check --suppress-analytics devices --machine
$ flutter --suppress-analytics --no-version-check pub deps --style=list
Received device: iPhone 14 Pro Max
$ xcrun simctl listapps F60F1029-2613-4C93-921B-163CBCC7F140
Received 11 --dart-define(s) (0 custom, 11 internal)
Received internal --dart-define: PATROL_WAIT=0
Received internal --dart-define: PATROL_APP_PACKAGE_NAME=de.test.app
Received internal --dart-define: PATROL_APP_BUNDLE_ID=de.test.app
Received internal --dart-define: PATROL_ANDROID_APP_NAME=
Received internal --dart-define: PATROL_IOS_APP_NAME=TestApp
Received internal --dart-define: INTEGRATION_TEST_SHOULD_REPORT_RESULTS_TO_NATIVE=false
Received internal --dart-define: PATROL_TEST_LABEL_ENABLED=true
Received internal --dart-define: PATROL_HOT_RESTART=true
Received internal --dart-define: PATROL_IOS_INSTALLED_APPS=["com.apple.Bridge","com.apple.DocumentsApp","com.apple.Fitness","com.apple.Health","com.apple.Maps","com.apple.MobileAddressBook","com.apple.MobileSMS","com.apple.Passbook","com.apple.Passwords","com.apple.Preferences","com.apple.PreviewShell","com.apple.mobilecal","com.apple.mobilesafari","com.apple.mobileslideshow","com.apple.news","com.apple.reminders","com.apple.shortcuts","com.apple.webapp"]
Received internal --dart-define: PATROL_TEST_SERVER_PORT=8081
Received internal --dart-define: PATROL_APP_SERVER_PORT=8082
• Building app with entrypoint test_bundle.dart for iOS simulator (debug)...
$ flutter build ios --no-version-check --suppress-analytics --config-only --no-codesign --debug --simulator --flavor testapp --target /Users/neo/IdeaProjects/test_app/integration_test/test_bundle.dart --dart-define PATROL_WAIT=0 --dart-define PATROL_APP_PACKAGE_NAME=de.test.app --dart-define PATROL_APP_BUNDLE_ID=de.test.app --dart-define PATROL_ANDROID_APP_NAME=TestApp --dart-define PATROL_IOS_APP_NAME=TestApp --dart-define INTEGRATION_TEST_SHOULD_REPORT_RESULTS_TO_NATIVE=false --dart-define PATROL_TEST_LABEL_ENABLED=true --dart-define PATROL_HOT_RESTART=true --dart-define PATROL_IOS_INSTALLED_APPS=["com.apple.Bridge","com.apple.DocumentsApp","com.apple.Fitness","com.apple.Health","com.apple.Maps","com.apple.MobileAddressBook","com.apple.MobileSMS","com.apple.Passbook","com.apple.Passwords","com.apple.Preferences","com.apple.PreviewShell","com.apple.mobilecal","com.apple.mobilesafari","com.apple.mobileslideshow","com.apple.news","com.apple.reminders","com.apple.shortcuts","com.apple.webapp"] --dart-define PATROL_TEST_SERVER_PORT=8081 --dart-define PATROL_APP_SERVER_PORT=8082
Building de.test.app for simulator (ios)...
$ xcodebuild build-for-testing -workspace Runner.xcworkspace -scheme testapp -configuration Debug-testapp -sdk iphonesimulator -destination generic/platform=iOS Simulator -quiet -derivedDataPath ../build/ios_integ OTHER_SWIFT_FLAGS=$(inherited) -D PATROL_ENABLED
ld: warning: ignoring duplicate libraries: '-lc++', '-lsqlite3', '-lz'
ld: warning: no platform load command found in '/Users/neo/IdeaProjects/test_app/ios/Pods/MLKitBarcodeScanning/Frameworks/MLKitBarcodeScanning.framework/MLKitBarcodeScanning', assuming: iOS-simulator
ld: warning: ignoring duplicate libraries: '-lc++', '-lsqlite3', '-lz'
ld: warning: no platform load command found in '/Users/neo/IdeaProjects/test_app/ios/Pods/MLKitBarcodeScanning/Frameworks/MLKitBarcodeScanning.framework/MLKitBarcodeScanning', assuming: iOS-simulator
note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'Runner' from project 'Runner')
note: Run script build phase 'Run Script' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'Runner' from project 'Runner')
warning: Run script build phase 'FlutterFire: "flutterfire upload-crashlytics-symbols"' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')
note: Run script build phase 'Thin Binary' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'Runner' from project 'Runner')
note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'RunnerUITests' from project 'Runner')
warning: Run script build phase 'xcode_backend build' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'RunnerUITests' from project 'Runner')
warning: Run script build phase 'xcode_backend embed_and_thin' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'RunnerUITests' from project 'Runner')
✓ Completed building app with entrypoint test_bundle.dart for iOS simulator (61.3s)
Will uninstall apps before running tests
$ xcrun simctl uninstall F60F1029-2613-4C93-921B-163CBCC7F140 de.test.app
$ xcrun simctl uninstall F60F1029-2613-4C93-921B-163CBCC7F140 de.test.app.RunnerUITests.xctrunner
$ log stream
Interactive shell mode enabled.
Logs: waiting for them...
$ flutter --no-version-check --suppress-analytics logs --device-id F60F1029-2613-4C93-921B-163CBCC7F140
$ flutter attach --no-version-check --suppress-analytics --debug --device-id F60F1029-2613-4C93-921B-163CBCC7F140 --app-id de.test.app --target /Users/neo/IdeaProjects/test_app/integration_test/test_bundle.dart --dart-define PATROL_WAIT=0 --dart-define PATROL_APP_PACKAGE_NAME=de.test.app --dart-define PATROL_APP_BUNDLE_ID=de.test.app --dart-define PATROL_ANDROID_APP_NAME=TestApp --dart-define PATROL_IOS_APP_NAME=TestApp --dart-define INTEGRATION_TEST_SHOULD_REPORT_RESULTS_TO_NATIVE=false --dart-define PATROL_TEST_LABEL_ENABLED=true --dart-define PATROL_HOT_RESTART=true --dart-define PATROL_IOS_INSTALLED_APPS=["com.apple.Bridge","com.apple.DocumentsApp","com.apple.Fitness","com.apple.Health","com.apple.Maps","com.apple.MobileAddressBook","com.apple.MobileSMS","com.apple.Passbook","com.apple.Passwords","com.apple.Preferences","com.apple.PreviewShell","com.apple.mobilecal","com.apple.mobilesafari","com.apple.mobileslideshow","com.apple.news","com.apple.reminders","com.apple.shortcuts","com.apple.webapp"] --dart-define PATROL_TEST_SERVER_PORT=8081 --dart-define PATROL_APP_SERVER_PORT=8082
• Running app with entrypoint test_bundle.dart for iOS simulator on simulator iPhone 14 Pro Max...
$ xcodebuild -showsdks -json
Hot Restart: waiting for attach to the app...
Assuming SDK version 18.4 for iphonesimulator
Looking for .xctestrun matching testapp_*iphonesimulator18.4*.xctestrun at /Users/neo/IdeaProjects/test_app/build/ios_integ/Build/Products
Found 1 match(es), the first one will be used
Found /Users/neo/IdeaProjects/test_app/build/ios_integ/Build/Products/testapp_iphonesimulator18.4-x86_64.xctestrun
$ xcodebuild test-without-building -xctestrun /Users/neo/IdeaProjects/test_app/build/ios_integ/Build/Products/testapp_iphonesimulator18.4-x86_64.xctestrun -only-testing RunnerUITests/RunnerUITests -destination platform=iOS Simulator,name=iPhone 14 Pro Max -destination-timeout 1 -resultBundlePath /Users/neo/IdeaProjects/test_app/build/ios_results_1744791716142.xcresult
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild test-without-building -xctestrun /Users/neo/IdeaProjects/test_app/build/ios_integ/Build/Products/testapp_iphonesimulator18.4-x86_64.xctestrun -only-testing RunnerUITests/RunnerUITests -destination "platform=iOS Simulator,name=iPhone 14 Pro Max" -destination-timeout 1 -resultBundlePath /Users/neo/IdeaProjects/test_app/build/ios_results_1744791716142.xcresult
Writing result bundle at path:
/Users/neo/IdeaProjects/test_app/build/ios_results_1744791716142.xcresult
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS Simulator, arch:arm64, id:F60F1029-2613-4C93-921B-163CBCC7F140, OS:18.4, name:iPhone 14 Pro Max }
{ platform:iOS Simulator, arch:x86_64, id:F60F1029-2613-4C93-921B-163CBCC7F140, OS:18.4, name:iPhone 14 Pro Max }
: Waiting for a connection from Flutter on iPhone 14 Pro Max...
Hot Restart: logs connected
[WARN] Hot Restart: not attached to the app yet
Showing iPhone 14 Pro Max logs:
2025-04-16 10:22:00.526191+0200 RunnerUITests-Runner[16561:36099642] [Default] Running tests...
Running tests...
objc[16561]: Class AKAlertImageURLProvider is implemented in both /Library/Developer/CoreSimulator/Volumes/iOS_22E238/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AuthKit.framework/AuthKit (0x12a3be8d8) and /Library/Developer/CoreSimulator/Volumes/iOS_22E238/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AuthKitUI.framework/AuthKitUI (0x1566acf48). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[16561]: Class AKBiometricRatchetUtility is implemented in both /Library/Developer/CoreSimulator/Volumes/iOS_22E238/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AuthKit.framework/AuthKit (0x12a3c03e0) and /Library/Developer/CoreSimulator/Volumes/iOS_22E238/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AuthKitUI.framework/AuthKitUI (0x1566acfc0). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
t = nans Interface orientation changed to Portrait
2025-04-16 10:22:02.146585+0200 RunnerUITests-Runner[16561:36099642] Running tests without clearing permissions
2025-04-16 10:22:02.150422+0200 RunnerUITests-Runner[16561:36099642] PatrolServer: INFO: PatrolServer constructor called
2025-04-16 10:22:02.151031+0200 RunnerUITests-Runner[16561:36099642] PatrolServer: INFO: PATROL_ENABLED flag is defined
2025-04-16 10:22:02.159683+0200 RunnerUITests-Runner[16561:36099642] PatrolServer: INFO: Starting server...
2025-04-16 10:22:02.179092+0200 RunnerUITests-Runner[16561:36099642] PatrolServer: INFO: Server started on http://0.0.0.0:8081
2025-04-16 10:22:02.180104+0200 RunnerUITests-Runner[16561:36099642] PatrolAppServiceClient: created, port: 8082
t = nans Checking existence of `"Allow" Button`
t = nans Open de.test.app
t = nans Launch de.test.app
t = nans Setting up automation session
objc[16561]: Class UIAccessibilityLoaderWebShared is implemented in both /Library/Developer/CoreSimulator/Volumes/iOS_22E238/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/WebCore.axbundle/WebCore (0x199c08328) and /Library/Developer/CoreSimulator/Volumes/iOS_22E238/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/AccessibilityBundles/WebKit.axbundle/WebKit (0x199ed6398). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
t = nans Wait for de.test.app to idle
The Dart VM service is listening on http://127.0.0.1:53242/R80Jyerz8cc=/
[ERROR:flutter/shell/platform/darwin/ios/framework/Source/FlutterDartVMServicePublisher.mm(129)] Could not register as server for FlutterDartVMServicePublisher, permission denied. Check your 'Local Network' permissions for this app in the Privacy section of the system Settings.
[ERROR:flutter/shell/platform/darwin/ios/framework/Source/FlutterDartVMServicePublisher.mm(129)] Could not register as server for FlutterDartVMServicePublisher, permission denied. Check your 'Local Network' permissions for this app in the Privacy section of the system Settings.
Initializing Hive with box key: testBox
Locale: de_DE
[ERROR:flutter/shell/common/shell.cc(1057)] The 'plugins.flutter.io/firebase_remote_config_updated' channel sent a message from native to Flutter on a non-platform thread. Platform channel messages must be sent on the platform thread. Failure to do so may result in data loss or crashes, and must be fixed in the plugin or application code creating that channel.
See https://docs.flutter.dev/platform-integration/platform-channels#channels-and-platform-threading for more information.
: Syncing files to device iPhone 14 Pro Max... 6.3s
:
Hot Restart: attached to the app (press "r" to restart)
: Flutter run key commands.
: r Hot reload. 🔥🔥🔥
: R Hot restart.
: h List all available interactive commands.
: c Clear the screen
: q Quit (terminate the application on the device).
:
: A Dart VM Service on iPhone 14 Pro Max is available at: http://127.0.0.1:53253/pkV4xfzylhI=/
Patrol DevTools extension is available at http://127.0.0.1:9103/patrol_ext?uri=http://127.0.0.1:53253/pkV4xfzylhI=/
: The Flutter DevTools debugger and profiler on iPhone 14 Pro Max is available at: http://127.0.0.1:9103?uri=http://127.0.0.1:53253/pkV4xfzylhI=/
Hot Restart for entrypoint test_bundle.dart...
:
: Performing hot restart...
: Restarted application in 1,158ms.
Patrol (native): NativeAutomatorClient created, port: 8081
Patrol (native): initialize() started
Patrol (native): initialize() succeeded
PatrolBinding: Register Patrol service extensions
Patrol (native): NativeAutomatorClient created, port: 8081
Patrol (native): NativeAutomatorClient created, port: 8081
00:00 +0: example_test counter state is the same after going to home and switching apps
Patrol (native): configure() started
Patrol (native): configure() succeeded
🧪 counter state is the same after going to home and switching apps
Patrol (native): pressHome() started
⏳ 1. pressHome (native)
2025-04-16 10:22:25.120790+0200 RunnerUITests-Runner[16561:36099642] PatrolServer: INFO: pressing home button...
t = nans Pressing Home button
2025-04-16 10:22:25.601210+0200 RunnerUITests-Runner[16561:36099642] PatrolServer: INFO: done pressing home button
2025-04-16 10:22:25.608625+0200 RunnerUITests-Runner[16561:36099642] PatrolServer: INFO: result: ()
✅ 1. pressHome (native)
00:02 +1: All tests passed!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment