-
Notifications
You must be signed in to change notification settings - Fork 155
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
Comments
Hi @pma07pg! 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. |
Will give this a go! Thanks! |
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! |
Yes, but you don't have to open it. If you choose the older one in |
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:
|
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 |
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
|
Very strange but after some further inspection I get this error:
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 The library for me was |
Thanks @DanielCWeston, upgrading the Android Build Gradle plugin ( I faced the issue when using Android Build Gradle version |
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:
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)))✗ 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
Flutter Doctor output
Flutter Doctor output
The text was updated successfully, but these errors were encountered: