tauri-apps / cargo-mobile2

Rust on mobile made easy!
Apache License 2.0
1.5k stars 71 forks source link

Failed to run on ios simulator, -ltauri_mobile not found #138

Open rizrmd opened 1 year ago

rizrmd commented 1 year ago
image
terhechte commented 1 year ago

The generated Xcode project contains the wrong path for Apple Silicon Macs.

The project contains the following path for the Library Search Path:

"/Users/terhechte/Desktop/projects/bbbb/target/x86_64-apple-ios/$(CONFIGURATION)"

However, on Apple Silicon, the name of the target is aarch64-apple-ios-sim, hence the configuration should be

"/Users/terhechte/Desktop/projects/bbbb/target/aarch64-apple-ios-sim/$(CONFIGURATION)"

Here's a screenshot that shows the correct config for debug and the wrong one for release.

Screenshot 2023-05-26 at 13 26 54