Binary linking is failing #30
Description
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.0, on macOS 14.5 23F79 darwin-arm64, locale en-SG)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Android Studio (version 2023.3)
[✓] VS Code (version 1.88.1)
[✓] Connected device (3 available)
[✓] Network resources
step to replicate :
run this code on the Flutter :
var mercuryjs = Mercury(
devToolsService: ChromeDevToolsService(),
bundle: MercuryBundle.fromContent(jsFile),
onControllerCreated: (controller) {
controller.onLoad = (controller) {
controller.context.dispatcher?.subscribe('example', (args) {});
controller.context.evaluateJavaScripts('hello();');
};
});
flutter: Invalid argument(s): Failed to load dynamic library 'mercury_bridge.framework/mercury_bridge': dlopen(mercury_bridge.framework/mercury_bridge, 0x0001): tried: 'mercury_bridge.framework/mercury_bridge' (no such file), '/private/preboot/Cryptexes/OSmercury_bridge.framework/mercury_bridge' (no such file), '/usr/lib/swift/mercury_bridge.framework/mercury_bridge' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/mercury_bridge.framework/mercury_bridge' (no such file), '/private/var/containers/Bundle/Application/E7D741FB-98F0-4EBE-B316-40FCEE308A6C/Runner.app/Frameworks/mercury_bridge.framework/mercury_bridge' (no such file), '/private/var/containers/Bundle/Application/E7D741FB-98F0-4EBE-B316-40FCEE308A6C/Runner.app/Frameworks/mercury_bridge.framework/mercury_bridge' (no such file), '/usr/lib/mercury_bridge.framework/mercury_bridge' (no such file, not in dyld cache), 'mercury_bridge.framework/mercury_bridge' (no such file)
tried to do flutter clean faced with new error
Could not build the precompiled application for the device.
Semantic Issue (Xcode): Unknown receiver 'MercuryjsPlugin'; did you mean 'MercuryPlugin'?
/Users/reinaldoarifin/FlutterProjects/flutter_rad/ios/Runner/GeneratedPluginRegistrant.m:233:3