Back to Flutter Rust Bridge

`native/native.xcodeproj`

website/docs/manual/integrate/05-template/02-tour/03-native-proj.md

2.12.0686 B
Original Source

import V1Notice from '@site/docs/snippets/_v1-notice.mdx';

native/native.xcodeproj

<V1Notice />

This is the Xcode project folder for the Rust native library generated by cargo-xcode. The iOS and MacOS root projects import this folder as a subproject and depends on it during build-time.

It is important that the suitable crate-types are configured for your target devices. Make sure these lines exist in your Cargo.toml:

toml
[lib]
crate-type = ["lib", "cdylib", "staticlib"]

where

  • lib is required for non-library targets, such as tests and benchmarks
  • staticlib is required for iOS
  • cdylib for all other platforms