Closed hyqshr closed 10 months ago
Solved after correctly config flutter run bridge
iOS setup iOS requires some additional Rust targets for cross-compilation:
rustup target add aarch64-apple-ios x86_64-apple-ios
rustup target add aarch64-apple-ios-sim
Nice to hear that you solved this @hyqshr . I think these are covered in the set up for Flutter Rust Bridge but I'll add a link to the setup in the Readme
It run successfully on ios simulator, but can not run on my ios device (Iphone 14 Pro) or run flutter build ios --release tested on Xcode 15.0, Flutter 3.13.4, ios 17
Running Xcode build...
Xcode build done. 8.2s Failed to build iOS app Error (Xcode): could not compile
cfg-if
(lib) due to 2 previous errorsError (Xcode): cannot find attribute
derive
in this scopeError (Xcode): could not compile
libc
(lib) due to 200 previous errorsEncountered error while building for device.