Open OueslatiGhaith opened 5 months ago
There's no reason why that should have any impact on it. The error clearly says that the the NDK compiler couldn't have been found. It is possible that it passed the second time you have invoked the build (unrelated to the podspec file modification). Can you consistently reproduce the build failure when you remove -framework SystemConfiguration
from the podspec?
yes, both flutter run
and cargo build
fail when I remove it, when I add it back, flutter run
works, but cargo build
doesn't
Edit: I have android studio and the NDK installed
I second this, exactly the same symptom and solution, but on MacOS (14.2.1.) instead of Linux. And my own project, using FRB, which uses CargoKit.
Any idea what this could be?
I've encountered a weird behavior while trying to use flutter_rust_bridge, specifically while building using
flutter run
, after runningcargo build --target aarch64-linux-android
I got the following error.By following this comment, I was led to the fix of adding the
-framework SystemConfiguration
flag to the iOS podspec, which weirdly enough fixed the issue with android builds.It is worth mentioning that
flutter run
succeeds after applying this fix, butcargo build
still gives the same error.You can find more details here: fzyzcjy/flutter_rust_bridge#1722