fzyzcjy / flutter_rust_bridge

Flutter/Dart <-> Rust binding generator, feature-rich, but seamless and simple.

Home Page:https://fzyzcjy.github.io/flutter_rust_bridge/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does not work on iOS

feimenggo opened this issue · comments

Describe the bug

Automatically signing iOS for device deployment using specified development team in Xcode project: xxxxxx
Running Xcode build...
Xcode build done. 7.9s
Failed to build iOS app
Could not build the precompiled application for the device.

Steps to reproduce

  1. flutter run
  2. Logs: test.txt

Logs

[test.txt](https://github.com/fzyzcjy/flutter_rust_bridge/files/14403772/test.txt)

Expected behavior

It should build the app

Generated binding code

No response

OS

No response

Version of flutter_rust_bridge_codegen

No response

Flutter info

No response

Version of clang++

No response

Additional context

No response

Hi! Thanks for opening your first issue here! 😄

Hi, could you please run flutter run --verbose and look at the logs, usually there are some info about what is wrong

Hi, could you please run flutter run --verbose and look at the logs, usually there are some info about what is wrong

run_log.txt

           INFO: Precompiled binaries are disabled
           INFO: Building rust_lib for aarch64-apple-ios
           SEVERE: ================================================================================
           SEVERE: Cargokit BuildTool failed with error:
           SEVERE: --------------------------------------------------------------------------------
           SEVERE: External Command: rustup "run" "stable" "cargo" "build" "--manifest-path" "/Applications/flutter_projects/bailing/bailing_mobile/rust/Cargo.toml" "-p" "rust_lib" "--target" "aarch64-apple-ios" "--target-dir" "/Users/mochen/Library/Developer/Xcode/DerivedData/Runner-bitsnfmkcpjjthancaarklnbalpy/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/rust_builder.build"
           SEVERE: Returned Exit Code: 1
           SEVERE: --------------------------------------------------------------------------------
           SEVERE: STDOUT:
           SEVERE: --------------------------------------------------------------------------------
           SEVERE: STDERR:
           SEVERE: error: toolchain 'stable-aarch64-apple-darwin' is not installed
           SEVERE: --------------------------------------------------------------------------------

Hi, could you please follow the suggestions of the log and see whether it works

How to install toolchain 'stable-aarch64-apple-darwin'?

Thank you! There is no problem now.
rustup toolchain install stable-aarch64-apple-darwin

You are welcome and happy to hear that!

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new issue.