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

[Bug] Using Patrol and BranchSDK in the same project #2197

Open
Bwolfs2 opened this issue May 16, 2024 · 1 comment
Open

[Bug] Using Patrol and BranchSDK in the same project #2197

Bwolfs2 opened this issue May 16, 2024 · 1 comment

Comments

@Bwolfs2
Copy link

Bwolfs2 commented May 16, 2024

Im trying to use patrol and in this project we are using BranchSDK for deeplink, and i having some weird errors on IOS ( In android works good)

RunnerUITests-Runner (92946) 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.

'/Library/Developer/CoreSimulator/Volumes/iOS_21A328/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/BranchSDK.framework/BranchSDK' (no such file)))

Anyone have the same error? How to fix that?

@nikitadol
Copy link
Contributor

I encountered a similar problem, most likely it was mentioned here #862

Way to reproduce:

  1. Get the project here -> https://github.com/leancodepl/patrol/tree/master/dev/e2e_app
  2. Open ios/Runner.xcworkspace in Xcode
  3. Add any iOS Extension:
Screen.Recording.2024-07-09.at.18.27.47.mov
  1. Declare a new target in ios/Podfile
    Screenshot 2024-07-09 at 18 11 35

  2. Run patrol test to make sure everything is working

  3. Add any pod to a new target
    Screenshot 2024-07-09 at 20 45 19

  4. Run patrol test

  5. Watch the error:

 Testing failed:
                RunnerUITests-Runner (37516) 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(/Users/nikitadol/Library/Developer/CoreSimulator/Devices/30AC798F-BB0A-4CF9-B897-36686E5D6333/data/Containers/Bundle/Application/DFAD4091-9E18-41B9-B35C-F2A3B604D32B/RunnerUITests-Runner.app/PlugIns/RunnerUITests.xctest/RunnerUITests, 0x0109): Library not loaded: @rpath/FBLPromises.framework/FBLPromises
          Referenced from: <A6E23200-1946-3C5E-A0E7-43348E5A74BF> /Users/nikitadol/Library/Developer/CoreSimulator/Devices/30AC798F-BB0A-4CF9-B897-36686E5D6333/data/Containers/Bundle/Application/DFAD4091-9E18-41B9-B35C-F2A3B604D32B/RunnerUITests-Runner.app/PlugIns/RunnerUITests.xctest/RunnerUITests
          Reason: tried: '/Users/nikitadol/development/projects/flutter/patrol/dev/e2e_app/build/ios_integ/Build/Products/Debug-iphonesimulator/FBLPromises.framework/FBLPromises' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks/FBLPromises.framework/FBLPromises' (no such file), '/Users/nikitadol/development/projects/flutter/patrol/dev/e2e_app/build/ios_integ/Build/Products/Debug-iphonesimulator/FBLPromises.framework/FBLPromises' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks/FBLPromises.framework/FBLPromises' (no such file), '/Users/nikitadol/Library/Developer/CoreSimulator/Devices/30AC798F-BB0A-4CF9-B897-36686E5D6333/data/Containers/Bundle/Application/DFAD4091-9E18-41B9-B35C-F2A3B604D32B/RunnerUITests-Runner.app/PlugIns/RunnerUITests.xctest/Frameworks/FBLPromises.framework/FBLPromises' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21F79/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.5.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/FBLPromises.framework/FBLPromises' (no such file), '/usr/lib/swift/FBLPromises.framework/FBLPromises' (no such file, not in dyld cache), '/Users/nikitadol/Library/Developer/CoreSimulator/Devices/30AC798F-BB0A-4CF9-B897-36686E5D6333/data/Containers/Bundle/Application/DFAD4091-9E18-41B9-B35C-F2A3B604D32B/RunnerUITests-Runner.app/Frameworks/FBLPromises.framework/FBLPromises' (no such file), '/Users/nikitadol/Library/Developer/CoreSimulator/Devices/30AC798F-BB0A-4CF9-B897-36686E5D6333/data/Containers/Bundle/Application/DFAD4091-9E18-41B9-B35C-F2A3B604D32B/RunnerUITests-Runner.app/PlugIns/RunnerUITests.xctest/Frameworks/FBLPromises.framework/FBLPromises' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21F79/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.5.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/FBLPromises.framework/FBLPromises' (no such file), '/usr/lib/swift/FBLPromises.framework/FBLPromises' (no such file, not in dyld cache), '/Users/nikitadol/Library/Developer/CoreSimulator/Devices/30AC798F-BB0A-4CF9-B897-36686E5D6333/data/Containers/Bundle/Application/DFAD4091-9E18-41B9-B35C-F2A3B604D32B/RunnerUITests-Runner.app/Frameworks/FBLPromises.framework/FBLPromises' (no such file), '/Users/nikitadol/Library/Developer/CoreSimulator/Devices/30AC798F-BB0A-4CF9-B897-36686E5D6333/data/Containers/Bundle/Application/DFAD4091-9E18-41B9-B35C-F2A3B604D32B/RunnerUITests-Runner.app/Frameworks/FBLPromises.framework/FBLPromises' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21F79/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.5.simruntime/Contents/Resources/RuntimeRoot/System/Developer/Library/Frameworks/FBLPromises.framework/FBLPromises' (no such file), '/System/Developer/Library/Frameworks/FBLPromises.framework/FBLPromises' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21F79/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.5.simruntime/Contents/Resources/RuntimeRoot/System/Developer/usr/lib/FBLPromises.framework/FBLPromises' (no such file), '/System/Developer/usr/lib/FBLPromises.framework/FBLPromises' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21F79/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.5.simruntime/Contents/Resources/RuntimeRoot/Developer/Library/Frameworks/FBLPromises.framework/FBLPromises' (no such file), '/Developer/Library/Frameworks/FBLPromises.framework/FBLPromises' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21F79/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.5.simruntime/Contents/Resources/RuntimeRoot/Developer/usr/lib/FBLPromises.framework/FBLPromises' (no such file), '/Developer/usr/lib/FBLPromises.framework/FBLPromises' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21F79/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.5.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/FBLPromises.framework/FBLPromises' (no such file)))

The easiest way to fix this problem is to add the missing pods to RunnerUITests:
Screenshot 2024-07-09 at 20 58 38

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

2 participants