Closed tommy306 closed 9 months ago
Seems like this problem is not unique to bitsdojo but to all plugin packages. Since the base XCode project does not come with any scaffolding for plugins, adding such a package will add/change a few project files that break the template. The fix is to:
flutter create --platforms=ios,macos .
flutter pub add bitsdojo_window
I'll add this to the documentation soon, but for now there doesn't seem to be a general solution to this short of creating a new template.
Thanks very much. It's worked after followed the steps above.
However, ffigen: ^9.0.1 is required to make it work. Do you know why?
However, ffigen: ^9.0.1 is required to make it work. Do you know why?
I didn't notice this, could be a constraint from flutter_rust_bridge and/or bitsdojo.
I upgraded the flutter_rust_bridge version to 1.82.4, and there is a constraint in the the frb_codegen/src/commands.rs file. so the flutter_rust_bridge_codegen command is failing. However, this constraint is not present in version 1.45.0.
The constraint code:
lazy_static! {
pub(crate) static ref FFI_REQUIREMENT: VersionReq =
VersionReq::parse(">= 2.0.1, < 3.0.0").unwrap();
pub(crate) static ref FFIGEN_REQUIREMENT: VersionReq =
VersionReq::parse(">= 8.0.0, < 10.0.0").unwrap();
}
This issue has been marked as stale because it has no activity recently. Please remove the 'stale' label, or comment if the issue persists.
This issue has been closed after a period of inactivity. Please reopen this issue if the problem persists, or open a new one if you have a similar problem.
❯ flutter run Connected devices: macOS (desktop) • macos • darwin-arm64 • macOS 13.4.1 22F82 darwin-arm64 Chrome (web) • chrome • web-javascript • Google Chrome 118.0.5993.96
Checking for wireless devices...
Please choose one (or "q" to quit): 1 Launching lib/main.dart on macOS in debug mode... Running pod install... 411ms CocoaPods' output: ↳ Preparing
dependencies: flutter: sdk: flutter cupertino_icons: ^1.0.2 ffi: ^2.0.1 flutter_rust_bridge: ^1.45.0 meta: ^1.8.0 uuid: ^4.1.0 bitsdojo_window: ^0.1.5 // add new lib