Closed kingfisherphuoc closed 2 years ago
ld: library not found for -lnative_static
I don't have an iPhone to test this, but it seems that it is not building and/or linking the Rust library.
Well, I was testing the sample rust bridge project with an IOS emulator. I tested no-rust project (dart only), and it was fine before. Is it an issue of M1?
Well, I was testing the sample rust bridge project with an IOS emulator. I tested no-rust project (dart only), and it was fine before. Is it an issue of M1?
It should at least work with the emulator. I'll take a look at this later.
Couldn't reproduce, although I haven't tried emulating the iPhone SE in particular. (I'm also using Mac M1)
@Desdaemon are you using main
branch or flutter 3.0
branch?
@Desdaemon are you using
main
branch orflutter 3.0
branch?
The main
branch.
well, I made it by Linking the project manually: http://cjycode.com/flutter_rust_bridge/integrate/ios_linking.html. Using the default value from sample template did not work for me.
I am trying to run the sample project on my MacbookPro M1 (2021). Here's the log:
I run it on Android device, it worked well. However, I tried to run it on my Iphone, it did not work. Any idea?
P/s: normal flutter project without rust bridge can be built and run as expected on IPhone.