Pular para o conteúdo

Troubleshooting

Este conteúdo não está disponível em sua língua ainda.

Cause: flutter_rust_bridge_codegen is not in your PATH.

Fix: Install it and ensure Cargo binaries are available to your shell.

Janela do terminal
cargo install flutter_rust_bridge_codegen
export PATH="$HOME/.cargo/bin:$PATH"

Cause: Flutter Rust Bridge codegen cannot find LLVM.

Fix: Install LLVM with Homebrew.

Janela do terminal
brew install llvm

Cause: CocoaPods is outdated, missing, or incompatible with the current Xcode version.

Fix: Install or update CocoaPods and reinstall pods.

Janela do terminal
sudo gem install cocoapods
cd ios
pod deintegrate
pod install

If needed, clear the CocoaPods cache.

Janela do terminal
pod cache clean --all
rm -rf ~/Library/Caches/CocoaPods
rm -rf ios/Pods
rm -rf ios/Podfile.lock
cd ios && pod install

Cause: MSVC build tools or the Windows SDK are missing or misconfigured.

Fix: Install Visual Studio Build Tools with the Desktop development with C++ workload, then use the MSVC Rust toolchain.

Janela do terminal
rustup default stable-x86_64-pc-windows-msvc

Cause: The Dart VM loads the Rust library differently than a standard Android JVM app.

Fix: Check the current Flutter Rust Bridge Android setup and regenerate the bridge files. This error usually means the Android native loading path is out of sync with the bridge configuration.

Janela do terminal
python scripts.py frb --generate
flutter clean
flutter pub get

iOS TestFlight reports store_dart_post_cobject not found

Seção intitulada “iOS TestFlight reports store_dart_post_cobject not found”

Cause: Xcode stripped symbols needed by Flutter Rust Bridge.

Fix: In Xcode, open the build settings for the native Rust target. Under Deployment, set Strip Linked Product to No and Strip Style to Debugging Symbols.

Cause: A schema change was made without a matching version bump, generated code update, or migration.

Fix for development: Confirm the database path and follow the schema and migration workflow in Persistence data. Delete only the local development database and rerun the app. For production changes, add a real migration.

Janela do terminal
find ~/Library/Containers -name "nahpu.db" 2>/dev/null
rm /path/to/nahpu.db