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 Run on iOS Simulator or Device - Deploys App but Doesn't Start Due To Library not loaded: @rpath/AppAuth.framework/AppAuth #2307

Open
pma07pg opened this issue Aug 12, 2024 · 10 comments
Assignees

Comments

@pma07pg
Copy link

pma07pg commented Aug 12, 2024

Steps to reproduce

Hello,

Firstly apologies - completely lost track of the ticket and it was closed - #2263

Just to clarify, it works absolutely fine when my Android device is connected so this is exclusively an iOS bug. I've been through the steps to setup quite a few times but nothing seems to change. My app also builds on both devices no issue and both flavors.

Run test release for iOS:

patrol test --release --flavor Dev --verbose
• Building app with entrypoint test_bundle.dart for iOS device (release)...
✓ Completed building app with entrypoint test_bundle.dart for iOS device (60.6s)
• Running app with entrypoint test_bundle.dart for iOS device on device Peter’s iPhone...

Actual results

I see the RunnerTests being moved onto the device but it never opens/runs. I've followed this: https://github.com/leancodepl/patrol/issues/1441 link and get the same result even if I type the commands individually.

Based on some of the logs it seems to be deciding that it's a simulator? I'm really not sure but the iOS versions in my XCode are matching and 14.0...

I've had a look at the ticket #2003 (comment) that was proposed as a work around but I cannot install 14.3 xcode CLI as the version is too old.

Logs

Logs ``` Verbose mode enabled. More logs will be printed. Received 1 test target(s) Received test target: /Users/user1/Development/test/test/integration_test/app_test.dart Generated entrypoint /Users/user1/Development/test/test/integration_test/test_bundle.dart with 1 bundled test(s) Received iOS flavor: Dev Received 5 --dart-define(s) (0 custom, 5 internal) Received internal --dart-define: PATROL_WAIT=0 Received internal --dart-define: PATROL_TEST_LABEL_ENABLED=true Received internal --dart-define: INTEGRATION_TEST_SHOULD_REPORT_RESULTS_TO_NATIVE=false 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 device (release)... $ flutter build ios --no-version-check --suppress-analytics --config-only --no-codesign --release --flavor Dev --target /Users/user1/Development/test/test/integration_test/test_bundle.dart --dart-define PATROL_WAIT=0 --dart-define PATROL_TEST_LABEL_ENABLED=true --dart-define INTEGRATION_TEST_SHOULD_REPORT_RESULTS_TO_NATIVE=false --dart-define PATROL_TEST_SERVER_PORT=8081 --dart-define PATROL_APP_SERVER_PORT=8082 Warning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device. Building com.test.dev for device (ios-release)... $ xcodebuild build-for-testing -workspace Runner.xcworkspace -scheme Dev -configuration Release-Dev -sdk iphoneos -destination generic/platform=iOS -quiet -derivedDataPath ../build/ios_integ OTHER_SWIFT_FLAGS=$(inherited) -D PATROL_ENABLED /Users/user1/Development/test/test/ios/Runner/AppDelegate.swift:14:9: warning: initialization of immutable value 'methodChannel' was never used; consider replacing with assignment to '_' or removing it let methodChannel = FlutterMethodChannel(name: "com.test.test/maps", binaryMessenger: flutterViewController.binaryMessenger) ~~~~^~~~~~~~~~~~~ _ ld: warning: no platform load command found in '/Users/user1/Development/test/test/ios/Pods/MLKitBarcodeScanning/Frameworks/MLKitBarcodeScanning.framework/MLKitBarcodeScanning', assuming: iOS ld: warning: no platform load command found in '/Users/user1/Development/test/test/ios/Pods/MLKitBarcodeScanning/Frameworks/MLKitBarcodeScanning.framework/MLKitBarcodeScanning', assuming: iOS /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'AppAuth-AppAuthCore_Privacy' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'AppAuth' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'CocoaAsyncSocket' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'PromisesObjC-FBLPromises_Privacy' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'PromisesObjC' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'FirebaseAppCheckInterop' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'GoogleUtilities-GoogleUtilities_Privacy' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'GoogleUtilities' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'FirebaseCoreInternal-FirebaseCoreInternal_Privacy' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'FirebaseCoreInternal' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'FirebaseCore-FirebaseCore_Privacy' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'FirebaseCore' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'GTMSessionFetcher-GTMSessionFetcher_Core_Privacy' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'GTMSessionFetcher-GTMSessionFetcher_Full_Privacy' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'GTMSessionFetcher' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'RecaptchaInterop' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'FirebaseAuth-FirebaseAuth_Privacy' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'FirebaseAuth' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'FirebaseInstallations-FirebaseInstallations_Privacy' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'FirebaseInstallations' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'nanopb-nanopb_Privacy' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'nanopb' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'GoogleDataTransport-GoogleDataTransport_Privacy' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'GoogleDataTransport' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'FirebaseMessaging-FirebaseMessaging_Privacy' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'FirebaseMessaging' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'GTMAppAuth-GTMAppAuth_Privacy' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'GTMAppAuth' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'GoogleToolboxForMac-GoogleToolboxForMac_Logger_Privacy' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'GoogleToolboxForMac-GoogleToolboxForMac_Privacy' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'GoogleToolboxForMac' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'flutter_native_splash-flutter_native_splash_privacy' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'patrol-patrol_privacy' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'wakelock_plus-thermal' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'GoogleUtilitiesComponents' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'GoogleSignIn-GoogleSignIn' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'GoogleSignIn' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'permission_handler_apple-permission_handler_apple_privacy' from project 'Pods') 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') note: Run script build phase 'Copyy g services file' 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: 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') warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, 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') warning: Run script build phase 'xcode_backend build' will be run during every build because it does not specify any outputs. To address this warning, 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 warning, 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') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'VeriffSDK' from project 'Pods') /Users/user1/Development/test/test/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'Firebase' from project 'Pods') ✓ Completed building app with entrypoint test_bundle.dart for iOS device (68.2s) build/ios_integ/Build/Products/Release-iphoneos/Runner.app (app under test) build/ios_integ/Build/Products/Release-iphoneos/RunnerUITests-Runner.app (test instrumentation app) $ xcodebuild -showsdks -json Assuming SDK version 17.5 for iphonesimulator Looking for .xctestrun matching Dev_*iphoneos17.5*.xctestrun at build/ios_integ/Build/Products Found 1 match(es), the first one will be used Found /Users/user1/Development/test/test/build/ios_integ/Build/Products/Dev_Dev_iphoneos17.5-arm64.xctestrun build/ios_integ/Build/Products/Dev_Dev_iphoneos17.5-arm64.xctestrun (xctestrun file) user1@Peters-MBP test % patrol test --release --flavor Dev No device specified, using the first one (iPhone) • Building app with entrypoint test_bundle.dart for iOS device (release)... ✓ Completed building app with entrypoint test_bundle.dart for iOS device (76.7s) • Running app with entrypoint test_bundle.dart for iOS device on device iPhone... 2024-08-12 19:06:01.968 xcodebuild[4840:6995318] [MT] IDETestOperationsObserverDebug: 11.285 elapsed -- Testing started completed. 2024-08-12 19:06:01.968 xcodebuild[4840:6995318] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start 2024-08-12 19:06:01.968 xcodebuild[4840:6995318] [MT] IDETestOperationsObserverDebug: 11.285 sec, +11.285 sec -- end Testing failed: RunnerUITests-Runner (790) encountered an error (Failed to load the test bundle. (Underlying Error: The bundle “RunnerUITests” couldn’t be loaded. The bundle couldn’t be loaded. Try reinstalling the bundle. dlopen(/var/containers/Bundle/Application/072C3EBF-E7B3-4CAD-90BF-12EF866B727F/RunnerUITests-Runner.app/PlugIns/RunnerUITests.xctest/RunnerUITests, 0x0109): Library not loaded: @rpath/AppAuth.framework/AppAuth Referenced from: <960250C3-0B4C-3680-89C6-64CAEF3747A6> /private/var/containers/Bundle/Application/072C3EBF-E7B3-4CAD-90BF-12EF866B727F/RunnerUITests-Runner.app/PlugIns/RunnerUITests.xctest/RunnerUITests Reason: tried: '/System/Developer/Library/Frameworks/AppAuth.framework/AppAuth' (no such file), '/private/var/containers/Bundle/Application/072C3EBF-E7B3-4CAD-90BF-12EF866B727F/RunnerUITests-Runner.app/PlugIns/RunnerUITests.xctest/Frameworks/AppAuth.framework/AppAuth' (no such file), '/usr/lib/swift/AppAuth.framework/AppAuth' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/AppAuth.framework/AppAuth' (no such file), '/private/var/containers/Bundle/Application/072C3EBF-E7B3-4CAD-90BF-12EF866B727F/RunnerUITests-Runner.app/Frameworks/AppAuth.framework/AppAuth' (no such file), '/private/var/containers/Bundle/Application/072C3EBF-E7B3-4CAD-90BF-12EF866B727F/RunnerUITests-Runner.app/PlugIns/RunnerUITests.xctest/Frameworks/AppAuth.framework/AppAuth' (no such file), '/usr/lib/swift/AppAuth.framework/AppAuth' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/AppAuth.framework/AppAuth' (no such file), '/private/var/containers/Bundle/Application/072C3EBF-E7B3-4CAD-90BF-12EF866B727F/RunnerUITests-Runner.app/Frameworks/AppAuth.framework/AppAuth' (no such file), '/private/var/containers/Bundle/Application/072C3EBF-E7B3-4CAD-90BF-12EF866B727F/RunnerUITests-Runner.app/Frameworks/AppAuth.framework/AppAuth' (no such file), '/System/Developer/Library/Frameworks/AppAuth.framework/AppAuth' (no such file), '/private/preboot/Cryptexes/OS/System/Developer/Library/Frameworks/AppAuth.framework/AppAuth' (no such file), '/System/Developer/usr/lib/AppAuth.framework/AppAuth' (no such file), '/private/preboot/Cryptexes/OS/System/Developer/usr/lib/AppAuth.framework/AppAuth' (no such file), '/Developer/Library/Frameworks/AppAuth.framework/AppAuth' (no such file), '/private/preboot/Cryptexes/OS/Developer/Library/Frameworks/AppAuth.framework/AppAuth' (no such file), '/Developer/usr/lib/AppAuth.framework/AppAuth' (no such file), '/private/preboot/Cryptexes/OS/Developer/usr/lib/AppAuth.framework/AppAuth' (no such file)))
    ** TEST EXECUTE FAILED **

✗ Failed to execute tests of app with entrypoint test_bundle.dart for iOS device on device iPhone (xcodebuild exited with code 65) (14.5s)
Error: xcodebuild exited with code 65
See the logs above to learn what happened. Also consider running with --verbose. If the logs still aren't useful, then it's a bug - please report it.

Patrol version

Patrol Package ^3.9.0

Tried with 2.6.0, 2.8.0 and 3.0.0

Patrol Doctor output

Patrol Doctor output
Patrol CLI version: 3.1.0
Flutter command: flutter 
  Flutter 3.22.2 • channel stable
Android: 
• Program adb found in /Users/user1/Library/Android/sdk/platform-tools/adb
• Env var $ANDROID_HOME set to /Users/user1/Library/Android/sdk/platform-tools
iOS / macOS: 
• Program xcodebuild found in /usr/bin/xcodebuild
• Program ideviceinstaller found in /opt/homebrew/bin/ideviceinstaller

Flutter Doctor output

Flutter Doctor output
[✓] Flutter (Channel stable, 3.22.2, on macOS 14.5 23F79 darwin-arm64 (Rosetta), locale en-DE)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.92.0)
[✓] Connected device (4 available)
[✓] Network resources

! Doctor found issues in 1 category.

@jBorkowska
Copy link
Collaborator

jBorkowska commented Aug 12, 2024

Hi @pma07pg!
About the workaround you linked - you can install older xcode just to build the app. I use a tool called xcodes (https://github.com/XcodesOrg/xcodes) for that and it works (I'm on macOS 14).

If this doesn't help - please provide a project, where this error is reproducible, so we can investigate by ourselves. It may have something to do with AppAuth and Patrol being used together, in such case we need a reproducible example.

@jBorkowska jBorkowska self-assigned this Aug 12, 2024
@jBorkowska jBorkowska added the waiting for response Waiting for user's response label Aug 12, 2024
@pma07pg
Copy link
Author

pma07pg commented Aug 12, 2024

Will give this a go! Thanks!

@github-actions github-actions bot removed the waiting for response Waiting for user's response label Aug 12, 2024
@jBorkowska jBorkowska added the waiting for response Waiting for user's response label Aug 13, 2024
@pma07pg
Copy link
Author

pma07pg commented Aug 13, 2024

Hi @jBorkowska I've just installed xcodes and installed xcode 14.3.1. However when I try to open it, it tells me that it's incompatible and needs to be updated... I'm currently using Sonoma 14.5.

Thanks!

@github-actions github-actions bot removed the waiting for response Waiting for user's response label Aug 13, 2024
@jBorkowska
Copy link
Collaborator

Yes, but you don't have to open it. If you choose the older one in xcodes select command, patrol will use command-line tools from that older version

@jBorkowska jBorkowska added the waiting for response Waiting for user's response label Aug 13, 2024
@pma07pg
Copy link
Author

pma07pg commented Aug 14, 2024

OK so I managed to get the xcodes stuff working and changed the app_options file to select 'iOS' only, as I only want to test it on my physical device and I get these errors:

patrol build ios --release --flavor Dev --verbose 
Verbose mode enabled. More logs will be printed.
Received 1 test target(s)
Received test target: /Users/user/Development/test1/test1/integration_test/app_test.dart
Generated entrypoint /Users/user/Development/test1/test1/integration_test/test_bundle.dart with 1 bundled test(s)
Received iOS flavor: Dev
Received 5 --dart-define(s) (0 custom, 5 internal)
Received internal --dart-define: PATROL_WAIT=0
Received internal --dart-define: PATROL_TEST_LABEL_ENABLED=true
Received internal --dart-define: INTEGRATION_TEST_SHOULD_REPORT_RESULTS_TO_NATIVE=false
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 device (release)...
$ flutter build ios --no-version-check --suppress-analytics --config-only --no-codesign --release --flavor Dev --target /Users/user/Development/test1/test1/integration_test/test_bundle.dart --dart-define PATROL_WAIT=0 --dart-define PATROL_TEST_LABEL_ENABLED=true --dart-define INTEGRATION_TEST_SHOULD_REPORT_RESULTS_TO_NATIVE=false --dart-define PATROL_TEST_SERVER_PORT=8081 --dart-define PATROL_APP_SERVER_PORT=8082
	Warning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device.
	Building com.test1.dev for device (ios-release)...
$ xcodebuild build-for-testing -workspace Runner.xcworkspace -scheme Dev -configuration Release-Dev -sdk iphoneos -destination generic/platform=iOS -quiet -derivedDataPath ../build/ios_integ OTHER_SWIFT_FLAGS=$(inherited) -D PATROL_ENABLED
	2024-08-14 17:52:35.883 xcodebuild[14391:950389] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
	2024-08-14 17:52:36.921 xcodebuild[14391:950421]  iPhoneConnect: 📱<DVTiOSDevice (0x7f97063d17c0), iPhone, iPhone, 17.5.1 (21F90), 00008110-001C79C42108401E> unable to mount developer disk image, (Error Domain=com.apple.dt.DVTDeviceSupportFilesDDIError Code=2 "Could not locate device support files" UserInfo={NSLocalizedDescription=Could not locate device support files, NSLocalizedRecoverySuggestion=You may be able to resolve the issue by installing the latest version of Xcode from the Mac App Store or developer.apple.com.
	
	[missing string: 869a8e318f07f3e2f42e11d435502286094f76de], DVTRadarComponentKey=487927, DeviceType=iPhone14,6, NSLocalizedFailureReason=The device may be running a version of iOS (17.5.1 21F90) that is not supported by this version of Xcode.}) {
	    DVTRadarComponentKey = 487927;
	    DeviceType = "iPhone14,6";
	    NSLocalizedDescription = "Could not locate device support files";
	    NSLocalizedFailureReason = "The device may be running a version of iOS (17.5.1 21F90) that is not supported by this version of Xcode.";
	    NSLocalizedRecoverySuggestion = "You may be able to resolve the issue by installing the latest version of Xcode from the Mac App Store or developer.apple.com.\n\n[missing string: 869a8e318f07f3e2f42e11d435502286094f76de]";
	}
	2024-08-14 17:52:36.962 xcodebuild[14391:950389] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x7f97063d17c0), iPhone, iPhone, 17.5.1 (21F90), 00008110-001C79C42108401E> -- An error occurred whilst preparing device for development -- Could not locate device support files
	Domain: com.apple.dt.DVTDeviceSupportFilesDDIError
	Code: 2
	Failure Reason: The device may be running a version of iOS (17.5.1 21F90) that is not supported by this version of Xcode.
	Recovery Suggestion: You may be able to resolve the issue by installing the latest version of Xcode from the Mac App Store or developer.apple.com.
	
	[missing string: 869a8e318f07f3e2f42e11d435502286094f76de]
	User Info: {
	    DVTRadarComponentKey = 487927;
	    DeviceType = "iPhone14,6";
	}
	--
	2024-08-14 17:52:36.962 xcodebuild[14391:950389] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x7f97063d17c0), iPhone, iPhone, 17.5.1 (21F90), 00008110-001C79C42108401E> == Underlying device preparation errors ==
	2024-08-14 17:52:36.962 xcodebuild[14391:950389] [MT] iPhoneConnect: Could not locate device support files
	Domain: com.apple.dt.DVTDeviceSupportFilesDDIError
	Code: 2
	Failure Reason: The device may be running a version of iOS (17.5.1 21F90) that is not supported by this version of Xcode.
	Recovery Suggestion: You may be able to resolve the issue by installing the latest version of Xcode from the Mac App Store or developer.apple.com.
	
	[missing string: 869a8e318f07f3e2f42e11d435502286094f76de]
	User Info: {
	    DVTRadarComponentKey = 487927;
	    DeviceType = "iPhone14,6";
	}
	--
	2024-08-14 17:52:36.962 xcodebuild[14391:950389] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x7f97063d17c0), iPhone, iPhone, 17.5.1 (21F90), 00008110-001C79C42108401E> == END: Underlying device preparation errors ==
	2024-08-14 17:52:36.968 xcodebuild[14391:950421]  iPhoneConnect: 📱<DVTiOSDevice (0x7f97063d17c0), iPhone, iPhone, 17.5.1 (21F90), 00008110-001C79C42108401E> unable to mount developer disk image, (Error Domain=com.apple.dt.DVTDeviceSupportFilesDDIError Code=2 "Could not locate device support files" UserInfo={NSLocalizedDescription=Could not locate device support files, NSLocalizedRecoverySuggestion=You may be able to resolve the issue by installing the latest version of Xcode from the Mac App Store or developer.apple.com.
	
	[missing string: 869a8e318f07f3e2f42e11d435502286094f76de], DVTRadarComponentKey=487927, DeviceType=iPhone14,6, NSLocalizedFailureReason=The device may be running a version of iOS (17.5.1 21F90) that is not supported by this version of Xcode.}) {
	    DVTRadarComponentKey = 487927;
	    DeviceType = "iPhone14,6";
	    NSLocalizedDescription = "Could not locate device support files";
	    NSLocalizedFailureReason = "The device may be running a version of iOS (17.5.1 21F90) that is not supported by this version of Xcode.";
	    NSLocalizedRecoverySuggestion = "You may be able to resolve the issue by installing the latest version of Xcode from the Mac App Store or developer.apple.com.\n\n[missing string: 869a8e318f07f3e2f42e11d435502286094f76de]";
	}
	2024-08-14 17:52:36.968 xcodebuild[14391:950389] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x7f97063d17c0), iPhone, iPhone, 17.5.1 (21F90), 00008110-001C79C42108401E> -- An error occurred whilst preparing device for development -- Could not locate device support files
	Domain: com.apple.dt.DVTDeviceSupportFilesDDIError
	Code: 2
	Failure Reason: The device may be running a version of iOS (17.5.1 21F90) that is not supported by this version of Xcode.
	Recovery Suggestion: You may be able to resolve the issue by installing the latest version of Xcode from the Mac App Store or developer.apple.com.
	
	[missing string: 869a8e318f07f3e2f42e11d435502286094f76de]
	User Info: {
	    DVTRadarComponentKey = 487927;
	    DeviceType = "iPhone14,6";
	}
	--
	2024-08-14 17:52:36.968 xcodebuild[14391:950389] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x7f97063d17c0), iPhone, iPhone, 17.5.1 (21F90), 00008110-001C79C42108401E> == Underlying device preparation errors ==
	2024-08-14 17:52:36.968 xcodebuild[14391:950389] [MT] iPhoneConnect: Could not locate device support files
	Domain: com.apple.dt.DVTDeviceSupportFilesDDIError
	Code: 2
	Failure Reason: The device may be running a version of iOS (17.5.1 21F90) that is not supported by this version of Xcode.
	Recovery Suggestion: You may be able to resolve the issue by installing the latest version of Xcode from the Mac App Store or developer.apple.com.
	
	[missing string: 869a8e318f07f3e2f42e11d435502286094f76de]
	User Info: {
	    DVTRadarComponentKey = 487927;
	    DeviceType = "iPhone14,6";
	}
	--
	2024-08-14 17:52:36.968 xcodebuild[14391:950389] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x7f97063d17c0), iPhone, iPhone, 17.5.1 (21F90), 00008110-001C79C42108401E> == END: Underlying device preparation errors ==
	2024-08-14 17:52:49.195 xcodebuild[14391:950433]  DVTPortal: Service '<DVTPortalViewDeveloperService: 0x600000c98bc0; action='viewDeveloper'>' encountered an unexpected result code from the portal ('1100')
	2024-08-14 17:52:49.196 xcodebuild[14391:950433]  DVTPortal: Error:
	Error Domain=DVTPortalServiceErrorDomain Code=1100 "Your session has expired. Please log in." UserInfo={payload={
	    creationTimestamp = "2024-08-14T15:52:49Z";
	    httpCode = 200;
	    protocolVersion = QH65B2;
	    requestUrl = "https://developerservices2.apple.com/services/QH65B2/viewDeveloper.action";
	    responseId = "796af603-dec3-4744-87f8-b29d66eaef58";
	    resultCode = 1100;
	    resultString = "Your session has expired. Please log in.";
	    userLocale = "en_US";
	    userString = "Your session has expired. Please log in.";
	}, NSLocalizedDescription=Your session has expired. Please log in.}
	2024-08-14 17:52:49.370 xcodebuild[14391:950421]  DVTPortal: Service '<DVTPortalViewDeveloperService: 0x600000c83380; action='viewDeveloper'>' encountered an unexpected result code from the portal ('1100')
	2024-08-14 17:52:49.370 xcodebuild[14391:950421]  DVTPortal: Error:
	Error Domain=DVTPortalServiceErrorDomain Code=1100 "Your session has expired. Please log in." UserInfo={payload={
	    creationTimestamp = "2024-08-14T15:52:49Z";
	    httpCode = 200;
	    protocolVersion = QH65B2;
	    requestUrl = "https://developerservices2.apple.com/services/QH65B2/viewDeveloper.action";
	    responseId = "68a55953-984b-46ab-a7e9-5d90a28ef28c";
	    resultCode = 1100;
	    resultString = "Your session has expired. Please log in.";
	    userLocale = "en_US";
	    userString = "Your session has expired. Please log in.";
	}, NSLocalizedDescription=Your session has expired. Please log in.}
	/Users/user/Development/test1/test1/ios/Pods/StripeCore/StripeCore/StripeCore/Source/Analytics/AnalyticLoggableError.swift:59:39: warning: expression of type 'String' is unused
	                analyticLoggableError.analyticsErrorType
	                ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
	/Users/user/Development/test1/test1/ios/Pods/StripeCore/StripeCore/StripeCore/Source/Analytics/AnalyticLoggableError.swift:61:22: warning: result of call to 'extractErrorType(from:)' is unused
	                Self.extractErrorType(from: self)
	                     ^               ~~~~~~~~~~~~
	/Users/user/Development/test1/test1/ios/Pods/StripeCore/StripeCore/StripeCore/Source/Analytics/AnalyticLoggableError.swift:66:39: warning: expression of type 'String' is unused
	                analyticLoggableError.analyticsErrorCode
	                ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
	/Users/user/Development/test1/test1/ios/Pods/StripeCore/StripeCore/StripeCore/Source/Analytics/AnalyticLoggableError.swift:68:22: warning: result of call to 'extractErrorCode(from:)' is unused
	                Self.extractErrorCode(from: self)
	                     ^               ~~~~~~~~~~~~
	/Users/user/Development/test1/test1/ios/Pods/StripeCore/StripeCore/StripeCore/Source/API Bindings/StripeError.swift:32:13: warning: string literal is unused
	            "invalidRequest"
	            ^~~~~~~~~~~~~~~~
	/Users/user/Development/test1/test1/ios/Pods/StripeCore/StripeCore/StripeCore/Source/API Bindings/StripeError.swift:34:33: warning: result of operator '??' is unused
	            stripeAPIError.code ?? ""
	            ~~~~~~~~~~~~~~~~~~~ ^  ~~
	/Users/user/Development/test1/test1/ios/Pods/StripeCore/StripeCore/StripeCore/Source/Analytics/AnalyticLoggableError.swift:63:9: error: missing return in closure expected to return 'String'
	        }()
	        ^
	/Users/user/Development/test1/test1/ios/Pods/StripeCore/StripeCore/StripeCore/Source/API Bindings/StripeError.swift:36:5: error: missing return in getter expected to return 'String'
	    }
	    ^
	/Users/user/Development/test1/test1/ios/Pods/StripeCore/StripeCore/StripeCore/Source/Analytics/AnalyticLoggableError.swift:70:9: error: missing return in closure expected to return 'String'
	        }()
	        ^
	In file included from /Users/user/.pub-cache/hosted/pub.dev/square_in_app_payments-1.7.9/ios/Classes/SquareInAppPaymentsFlutterPlugin.m:19:
	/Users/user/.pub-cache/hosted/pub.dev/square_in_app_payments-1.7.9/ios/Classes/FSQIPApplePay.h:23:53: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
	- (void)initWithMethodChannel:(FlutterMethodChannel *)channel;
	                                                    ^
	/Users/user/.pub-cache/hosted/pub.dev/square_in_app_payments-1.7.9/ios/Classes/FSQIPApplePay.h:23:53: note: insert '_Nullable' if the pointer may be null
	- (void)initWithMethodChannel:(FlutterMethodChannel *)channel;
	                                                    ^
	                                                     _Nullable
	/Users/user/.pub-cache/hosted/pub.dev/square_in_app_payments-1.7.9/ios/Classes/FSQIPApplePay.h:23:53: note: insert '_Nonnull' if the pointer should never be null
	- (void)initWithMethodChannel:(FlutterMethodChannel *)channel;
	                                                    ^
	                                                     _Nonnull
	1 warning generated.
	/Users/user/.pub-cache/hosted/pub.dev/square_in_app_payments-1.7.9/ios/Classes/FSQIPSecureRemoteCommerce.m:37:76: warning: 'keyWindow' is deprecated: first deprecated in iOS 13.0 - Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes [-Wdeprecated-declarations]
	    UIViewController *rootViewController = UIApplication.sharedApplication.keyWindow.rootViewController;
	                                                                           ^
	In module 'UIKit' imported from /Users/user/Development/test1/test1/ios/Pods/Target Support Files/square_in_app_payments/square_in_app_payments-prefix.pch:2:
	/Applications/Xcode-14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:135:51: note: 'keyWindow' has been explicitly marked deprecated here
	@property(nullable, nonatomic,readonly) UIWindow *keyWindow API_DEPRECATED("Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes", ios(2.0, 13.0));
	                                                  ^
	1 warning generated.
	/Users/user/.pub-cache/hosted/pub.dev/square_in_app_payments-1.7.9/ios/Classes/FSQIPCardEntry.m:63:76: warning: 'keyWindow' is deprecated: first deprecated in iOS 13.0 - Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes [-Wdeprecated-declarations]
	    UIViewController *rootViewController = UIApplication.sharedApplication.keyWindow.rootViewController;
	                                                                           ^
	In module 'UIKit' imported from /Users/user/Development/test1/test1/ios/Pods/Target Support Files/square_in_app_payments/square_in_app_payments-prefix.pch:2:
	/Applications/Xcode-14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:135:51: note: 'keyWindow' has been explicitly marked deprecated here
	@property(nullable, nonatomic,readonly) UIWindow *keyWindow API_DEPRECATED("Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes", ios(2.0, 13.0));
	                                                  ^
	/Users/user/.pub-cache/hosted/pub.dev/square_in_app_payments-1.7.9/ios/Classes/FSQIPCardEntry.m:87:76: warning: 'keyWindow' is deprecated: first deprecated in iOS 13.0 - Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes [-Wdeprecated-declarations]
	    UIViewController *rootViewController = UIApplication.sharedApplication.keyWindow.rootViewController;
	                                                                           ^
	In module 'UIKit' imported from /Users/user/Development/test1/test1/ios/Pods/Target Support Files/square_in_app_payments/square_in_app_payments-prefix.pch:2:
	/Applications/Xcode-14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:135:51: note: 'keyWindow' has been explicitly marked deprecated here
	@property(nullable, nonatomic,readonly) UIWindow *keyWindow API_DEPRECATED("Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes", ios(2.0, 13.0));
	                                                  ^
	/Users/user/.pub-cache/hosted/pub.dev/square_in_app_payments-1.7.9/ios/Classes/FSQIPCardEntry.m:104:76: warning: 'keyWindow' is deprecated: first deprecated in iOS 13.0 - Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes [-Wdeprecated-declarations]
	    UIViewController *rootViewController = UIApplication.sharedApplication.keyWindow.rootViewController;
	                                                                           ^
	In module 'UIKit' imported from /Users/user/Development/test1/test1/ios/Pods/Target Support Files/square_in_app_payments/square_in_app_payments-prefix.pch:2:
	/Applications/Xcode-14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:135:51: note: 'keyWindow' has been explicitly marked deprecated here
	@property(nullable, nonatomic,readonly) UIWindow *keyWindow API_DEPRECATED("Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes", ios(2.0, 13.0));
	                                                  ^
	/Users/user/.pub-cache/hosted/pub.dev/square_in_app_payments-1.7.9/ios/Classes/FSQIPCardEntry.m:131:76: warning: 'keyWindow' is deprecated: first deprecated in iOS 13.0 - Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes [-Wdeprecated-declarations]
	    UIViewController *rootViewController = UIApplication.sharedApplication.keyWindow.rootViewController;
	                                                                           ^
	In module 'UIKit' imported from /Users/user/Development/test1/test1/ios/Pods/Target Support Files/square_in_app_payments/square_in_app_payments-prefix.pch:2:
	/Applications/Xcode-14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:135:51: note: 'keyWindow' has been explicitly marked deprecated here
	@property(nullable, nonatomic,readonly) UIWindow *keyWindow API_DEPRECATED("Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes", ios(2.0, 13.0));
	                                                  ^
	/Users/user/.pub-cache/hosted/pub.dev/square_in_app_payments-1.7.9/ios/Classes/FSQIPCardEntry.m:273:76: warning: 'keyWindow' is deprecated: first deprecated in iOS 13.0 - Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes [-Wdeprecated-declarations]
	    UIViewController *rootViewController = UIApplication.sharedApplication.keyWindow.rootViewController;
	                                                                           ^
	In module 'UIKit' imported from /Users/user/Development/test1/test1/ios/Pods/Target Support Files/square_in_app_payments/square_in_app_payments-prefix.pch:2:
	/Applications/Xcode-14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:135:51: note: 'keyWindow' has been explicitly marked deprecated here
	@property(nullable, nonatomic,readonly) UIWindow *keyWindow API_DEPRECATED("Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes", ios(2.0, 13.0));
	                                                  ^
	5 warnings generated.
	In file included from /Users/user/.pub-cache/hosted/pub.dev/square_in_app_payments-1.7.9/ios/Classes/FSQIPApplePay.m:17:
	/Users/user/.pub-cache/hosted/pub.dev/square_in_app_payments-1.7.9/ios/Classes/FSQIPApplePay.h:23:53: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
	- (void)initWithMethodChannel:(FlutterMethodChannel *)channel;
	                                                    ^
	/Users/user/.pub-cache/hosted/pub.dev/square_in_app_payments-1.7.9/ios/Classes/FSQIPApplePay.h:23:53: note: insert '_Nullable' if the pointer may be null
	- (void)initWithMethodChannel:(FlutterMethodChannel *)channel;
	                                                    ^
	                                                     _Nullable
	/Users/user/.pub-cache/hosted/pub.dev/square_in_app_payments-1.7.9/ios/Classes/FSQIPApplePay.h:23:53: note: insert '_Nonnull' if the pointer should never be null
	- (void)initWithMethodChannel:(FlutterMethodChannel *)channel;
	                                                    ^
	                                                     _Nonnull
	/Users/user/.pub-cache/hosted/pub.dev/square_in_app_payments-1.7.9/ios/Classes/FSQIPApplePay.m:102:76: warning: 'keyWindow' is deprecated: first deprecated in iOS 13.0 - Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes [-Wdeprecated-declarations]
	    UIViewController *rootViewController = UIApplication.sharedApplication.keyWindow.rootViewController;
	                                                                           ^
	In module 'UIKit' imported from /Users/user/Development/test1/test1/ios/Pods/Target Support Files/square_in_app_payments/square_in_app_payments-prefix.pch:2:
	/Applications/Xcode-14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:135:51: note: 'keyWindow' has been explicitly marked deprecated here
	@property(nullable, nonatomic,readonly) UIWindow *keyWindow API_DEPRECATED("Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes", ios(2.0, 13.0));
	                                                  ^
	/Users/user/.pub-cache/hosted/pub.dev/square_in_app_payments-1.7.9/ios/Classes/FSQIPApplePay.m:160:76: warning: 'keyWindow' is deprecated: first deprecated in iOS 13.0 - Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes [-Wdeprecated-declarations]
	    UIViewController *rootViewController = UIApplication.sharedApplication.keyWindow.rootViewController;
	                                                                           ^
	In module 'UIKit' imported from /Users/user/Development/test1/test1/ios/Pods/Target Support Files/square_in_app_payments/square_in_app_payments-prefix.pch:2:
	/Applications/Xcode-14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:135:51: note: 'keyWindow' has been explicitly marked deprecated here
	@property(nullable, nonatomic,readonly) UIWindow *keyWindow API_DEPRECATED("Should not be used for applications that support multiple scenes as it returns a key window across all connected scenes", ios(2.0, 13.0));
	                                                  ^
	3 warnings generated.
	ld: warning: dylib (/Users/user/Development/test1/test1/build/ios_integ/Build/Products/Release-Dev-iphoneos/XCFrameworkIntermediates/SquareBuyerVerificationSDK/SquareBuyerVerificationSDK.framework/SquareBuyerVerificationSDK) was built for newer iOS version (15.0) than being linked (14.0)
	ld: warning: dylib (/Users/user/Development/test1/test1/build/ios_integ/Build/Products/Release-Dev-iphoneos/XCFrameworkIntermediates/SquareInAppPaymentsSDK/SquareInAppPaymentsSDK.framework/SquareInAppPaymentsSDK) was built for newer iOS version (15.0) than being linked (14.0)
	note: Building targets in dependency order
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'GoogleUtilities-GoogleUtilities_Privacy' from project 'Pods')
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'GoogleUtilities' from project 'Pods')
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'GTMAppAuth-GTMAppAuth_Privacy' from project 'Pods')
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'GTMAppAuth' from project 'Pods')
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'permission_handler_apple-permission_handler_apple_privacy' from project 'Pods')
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'nanopb-nanopb_Privacy' from project 'Pods')
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'flutter_native_splash-flutter_native_splash_privacy' from project 'Pods')
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'PromisesObjC-FBLPromises_Privacy' from project 'Pods')
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'GoogleToolboxForMac-GoogleToolboxForMac_Privacy' from project 'Pods')
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'GoogleToolboxForMac-GoogleToolboxForMac_Logger_Privacy' from project 'Pods')
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'GTMSessionFetcher-GTMSessionFetcher_Full_Privacy' from project 'Pods')
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'AppAuth-AppAuthCore_Privacy' from project 'Pods')
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'GTMSessionFetcher-GTMSessionFetcher_Core_Privacy' from project 'Pods')
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'CocoaAsyncSocket' from project 'Pods')
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'AppAuth' from project 'Pods')
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'nanopb' from project 'Pods')
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'FirebaseCore' from project 'Pods')
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'GoogleSignIn' from project 'Pods')
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'GoogleDataTransport' from project 'Pods')
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'FirebaseInstallations' from project 'Pods')
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'GoogleSignIn-GoogleSignIn' from project 'Pods')
	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 warning, 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 build' will be run during every build because it does not specify any outputs. To address this warning, 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')
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'FirebaseInstallations-FirebaseInstallations_Privacy' from project 'Pods')
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'FirebaseCore-FirebaseCore_Privacy' from project 'Pods')
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'GoogleToolboxForMac' from project 'Pods')
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'FirebaseCoreInternal-FirebaseCoreInternal_Privacy' from project 'Pods')
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'GoogleUtilitiesComponents' from project 'Pods')
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'FirebaseCoreInternal' from project 'Pods')
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'FirebaseAppCheckInterop' from project 'Pods')
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'GoogleDataTransport-GoogleDataTransport_Privacy' from project 'Pods')
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'PromisesObjC' from project 'Pods')
	/Users/user/Development/test1/test1/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'GTMSessionFetcher' from project 'Pods')
	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')
	note: Run script build phase 'Copyy g services file' 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: 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')
	warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, 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')
	** TEST BUILD FAILED **
	
✗ Failed to build app with entrypoint test_bundle.dart for iOS device (xcodebuild exited with code 65) (42.3s)
Error: xcodebuild exited with code 65
#0      throwToolExit (package:patrol_cli/src/base/exceptions.dart:7:3)
#1      IOSTestBackend.build.<anonymous closure> (package:patrol_cli/src/ios/ios_test_backend.dart:137:9)
<asynchronous suspension>
#2      DisposeScope.run (package:dispose_scope/src/dispose_scope.dart:46:7)
<asynchronous suspension>
#3      IOSTestBackend.build (package:patrol_cli/src/ios/ios_test_backend.dart:76:5)
<asynchronous suspension>
#4      BuildIOSCommand.run (package:patrol_cli/src/commands/build_ios.dart:163:7)
<asynchronous suspension>
#5      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#6      PatrolCommandRunner.runCommand (package:patrol_cli/src/runner/patrol_command_runner.dart:348:18)
<asynchronous suspension>
#7      PatrolCommandRunner.run (package:patrol_cli/src/runner/patrol_command_runner.dart:292:18)
<asynchronous suspension>
#8      patrolCommandRunner (package:patrol_cli/src/runner/patrol_command_runner.dart:70:20)
<asynchronous suspension>
#9      main (file:///Users/user/.pub-cache/hosted/pub.dev/patrol_cli-3.1.0/bin/main.dart:6:20)
<asynchronous suspension>

See the logs above to learn what happened. Also consider running with --verbose. If the logs still aren't useful, then it's a bug - please report it.
Error: xcodebuild exited with code 65
#0      throwToolExit (package:patrol_cli/src/base/exceptions.dart:7:3)
#1      IOSTestBackend.build.<anonymous closure> (package:patrol_cli/src/ios/ios_test_backend.dart:137:9)
<asynchronous suspension>
#2      DisposeScope.run (package:dispose_scope/src/dispose_scope.dart:46:7)
<asynchronous suspension>
#3      IOSTestBackend.build (package:patrol_cli/src/ios/ios_test_backend.dart:76:5)
<asynchronous suspension>
#4      BuildIOSCommand.run (package:patrol_cli/src/commands/build_ios.dart:163:7)
<asynchronous suspension>
#5      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#6      PatrolCommandRunner.runCommand (package:patrol_cli/src/runner/patrol_command_runner.dart:348:18)
<asynchronous suspension>
#7      PatrolCommandRunner.run (package:patrol_cli/src/runner/patrol_command_runner.dart:292:18)
<asynchronous suspension>
#8      patrolCommandRunner (package:patrol_cli/src/runner/patrol_command_runner.dart:70:20)
<asynchronous suspension>
#9      main (file:///Users/user/.pub-cache/hosted/pub.dev/patrol_cli-3.1.0/bin/main.dart:6:20)
<asynchronous suspension>

@github-actions github-actions bot removed the waiting for response Waiting for user's response label Aug 14, 2024
@jBorkowska
Copy link
Collaborator

Hi @pma07pg, sorry for very late response. Did you manage to fix this issue? About the last logs that you uploaded - I don't see anything patrol-related. Let us know if you still have some questions

@jBorkowska jBorkowska added the waiting for response Waiting for user's response label Sep 9, 2024
@pma07pg
Copy link
Author

pma07pg commented Sep 9, 2024

No worries! Unfortunately it now doesn't seem to be working at all. I upgraded some packages in my pubspec and even on Android it's showing a Task :app:connectedDevDebugAndroidTest FAILED with nothing in the index.html. Very strange as there's absolutely nothing I'd changed in my setup. It's not working on my Windows machine or my Mac now so I assume there's some kind of dependency issue or something but the logs aren't giving much away...

       : > Task :app:dexBuilderDevDebugAndroidTest UP-TO-DATE
        : > Task :app:mergeProjectDexDevDebugAndroidTest UP-TO-DATE
        : > Task :app:packageDevDebugAndroidTest UP-TO-DATE
        : > Task :app:createDevDebugAndroidTestApkListingFileRedirect UP-TO-DATE
        : > Task :app:connectedDevDebugAndroidTest FAILED
        : 
        : Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
        : 
        : You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
        : 
        : See https://docs.gradle.org/7.6/userguide/command_line_interface.html#sec:command_line_warnings
        : 510 actionable tasks: 6 executed, 504 up-to-date
        
        FAILURE: Build failed with an exception.
        
        * What went wrong:
        Execution failed for task ':app:connectedDevDebugAndroidTest'.
        See the report at: file:///Users/user/Development/test/test/build/app/reports/androidTests/connected/flavors/dev/index.html
        
        * Try:
        > Run with --stacktrace option to get the stack trace.
        > Run with --info or --debug option to get more log output.
        > Run with --scan to get full insights.
        
        * Get more help at https://help.gradle.org
        
        BUILD FAILED in 11s
✗ Failed to execute tests of apk with entrypoint test_bundle.dart on device 32131FDH200113 (Gradle test execution failed with code 1) (12.0s)
Exception: Gradle test execution failed with code 1
#0      AndroidTestBackend.execute.<anonymous closure> (package:patrol_cli/src/android/android_test_backend.dart:140:9)
<asynchronous suspension>
#1      DisposeScope.run (package:dispose_scope/src/dispose_scope.dart:46:7)
<asynchronous suspension>
#2      AndroidTestBackend.execute (package:patrol_cli/src/android/android_test_backend.dart:106:5)
<asynchronous suspension>
#3      TestCommand._execute (package:patrol_cli/src/commands/test.dart:336:7)
<asynchronous suspension>
#4      TestCommand.run (package:patrol_cli/src/commands/test.dart:228:23)
<asynchronous suspension>
#5      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#6      PatrolCommandRunner.runCommand (package:patrol_cli/src/runner/patrol_command_runner.dart:348:18)
<asynchronous suspension>
#7      PatrolCommandRunner.run (package:patrol_cli/src/runner/patrol_command_runner.dart:292:18)
<asynchronous suspension>
#8      patrolCommandRunner (package:patrol_cli/src/runner/patrol_command_runner.dart:70:20)
<asynchronous suspension>
#9      main (file:///Users/user/.pub-cache/hosted/pub.dev/patrol_cli-2.8.1/bin/main.dart:6:20)
<asynchronous suspension>

@github-actions github-actions bot removed the waiting for response Waiting for user's response label Sep 9, 2024
@pma07pg
Copy link
Author

pma07pg commented Sep 10, 2024

Very strange but after some further inspection I get this error:

SEVERE: Fatal error while executing main with args: --proto_config=/Users/user/.android/utp/runnerConfig16394222982918146376.pb --proto_server_config=/Users/user/.android/utp/serverConfig12969538524026250445.pb
java.lang.IllegalAccessError: class com.google.protobuf.GeneratedMessageV3 tried to access method 'boolean com.google.protobuf.CodedInputStream.shouldDiscardUnknownFields()' (com.google.protobuf.GeneratedMessageV3 is in unnamed module of loader java.net.URLClassLoader @319dead1; com.google.protobuf.CodedInputStream is in unnamed module of loader 'app')
        at com.google.protobuf.GeneratedMessageV3.parseUnknownField(GeneratedMessageV3.java:317)
        at com.android.server.adb.protos.AppProcessesProto$ProcessEntry.<init>(AppProcessesProto.java:119)
        at com.android.server.adb.protos.AppProcessesProto$ProcessEntry.<init>(AppProcessesProto.java:54)
        at com.android.server.adb.protos.AppProcessesProto$ProcessEntry$1.parsePartialFrom(AppProcessesProto.java:778)
        at com.android.server.adb.protos.AppProcessesProto$ProcessEntry$1.parsePartialFrom(AppProcessesProto.java:772)
        at com.google.protobuf.CodedInputStream$ArrayDecoder.readMessage(CodedInputStream.java:980)
        at com.android.server.adb.protos.AppProcessesProto$AppProcesses.<init>(AppProcessesProto.java:879)
        at com.android.server.adb.protos.AppProcessesProto$AppProcesses.<init>(AppProcessesProto.java:829)
        at com.android.server.adb.protos.AppProcessesProto$AppProcesses$1.parsePartialFrom(AppProcessesProto.java:1571)
        at com.android.server.adb.protos.AppProcessesProto$AppProcesses$1.parsePartialFrom(AppProcessesProto.java:1565)
        at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:111)
        at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:126)
        at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:20)
        at com.android.server.adb.protos.AppProcessesProto$AppProcesses.parseFrom(AppProcessesProto.java:1027)
        at com.android.ddmlib.internal.DeviceClientMonitorTask$TrackAppProcessor.processIncomingData(DeviceClientMonitorTask.java:505)
        at com.android.ddmlib.internal.DeviceClientMonitorTask.run(DeviceClientMonitorTask.java:252)
        at java.base/java.lang.Thread.run(Thread.java:842)

I have no idea what changed but this still occurs when I use a fresh flutter project.

@DanielCWeston
Copy link

DanielCWeston commented Nov 18, 2024

Very strange but after some further inspection I get this error:

SEVERE: Fatal error while executing main with args: --proto_config=/Users/user/.android/utp/runnerConfig16394222982918146376.pb --proto_server_config=/Users/user/.android/utp/serverConfig12969538524026250445.pb
java.lang.IllegalAccessError: class com.google.protobuf.GeneratedMessageV3 tried to access method 'boolean com.google.protobuf.CodedInputStream.shouldDiscardUnknownFields()' (com.google.protobuf.GeneratedMessageV3 is in unnamed module of loader java.net.URLClassLoader @319dead1; com.google.protobuf.CodedInputStream is in unnamed module of loader 'app')
        at com.google.protobuf.GeneratedMessageV3.parseUnknownField(GeneratedMessageV3.java:317)
        at com.android.server.adb.protos.AppProcessesProto$ProcessEntry.<init>(AppProcessesProto.java:119)
        at com.android.server.adb.protos.AppProcessesProto$ProcessEntry.<init>(AppProcessesProto.java:54)
        at com.android.server.adb.protos.AppProcessesProto$ProcessEntry$1.parsePartialFrom(AppProcessesProto.java:778)
        at com.android.server.adb.protos.AppProcessesProto$ProcessEntry$1.parsePartialFrom(AppProcessesProto.java:772)
        at com.google.protobuf.CodedInputStream$ArrayDecoder.readMessage(CodedInputStream.java:980)
        at com.android.server.adb.protos.AppProcessesProto$AppProcesses.<init>(AppProcessesProto.java:879)
        at com.android.server.adb.protos.AppProcessesProto$AppProcesses.<init>(AppProcessesProto.java:829)
        at com.android.server.adb.protos.AppProcessesProto$AppProcesses$1.parsePartialFrom(AppProcessesProto.java:1571)
        at com.android.server.adb.protos.AppProcessesProto$AppProcesses$1.parsePartialFrom(AppProcessesProto.java:1565)
        at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:111)
        at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:126)
        at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:20)
        at com.android.server.adb.protos.AppProcessesProto$AppProcesses.parseFrom(AppProcessesProto.java:1027)
        at com.android.ddmlib.internal.DeviceClientMonitorTask$TrackAppProcessor.processIncomingData(DeviceClientMonitorTask.java:505)
        at com.android.ddmlib.internal.DeviceClientMonitorTask.run(DeviceClientMonitorTask.java:252)
        at java.base/java.lang.Thread.run(Thread.java:842)

I have no idea what changed but this still occurs when I use a fresh flutter project.

I had this exact problem in a pure Android project.

I went into the ~/.gradle/caches/modules-2/files-2.1/com.google.protobuf/3.17.2, on mac, and delete the protobuf library. Then I commented out one dependency at a time and rebuilt the project. If the commented out dependency didn't download the protobuf library then I found the dependency that was downloading the library.

The library for me was classpath "com.android.tools.build:gradle". So I changed it's version until a different version of protobuf was downloaded and my build started working properly.

@bnorth-cltd
Copy link

bnorth-cltd commented Nov 29, 2024

Thanks @DanielCWeston, upgrading the Android Build Gradle plugin (com.android.tools.build:gradle) fixed the issue for me! I was running a purely Android app (unrelated to this repo) and trying to run an instrumented test on an Android 12 phone. I could run the test on another phone (Android 8), so I thought it was an Android 12 issue. But then I saw this issue has been reported on Android 15 phones (see https://issuetracker.google.com/issues/355607635).

I faced the issue when using Android Build Gradle version 8.1.4. Upgrading to 8.6.1 fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants