Cargo subcommand to automatically create universal iOS static libraries from Rust code.
cargo-lipo is a Cargo subcommand that automates the creation of universal static libraries for iOS from Rust code. It builds and merges libraries for multiple iOS architectures (like arm64 and x86_64) into a single binary, simplifying the integration of Rust libraries into Xcode projects by reducing manual cross-compilation steps.
Rust developers building static libraries for iOS applications, particularly those integrating Rust code into Xcode projects and needing to support multiple iOS architectures (e.g., device and simulator).
Developers choose cargo-lipo for its automation of universal library creation and seamless Xcode integration via the --xcode-integ flag, which reduces configuration overhead compared to manual lipo usage or direct project.pbxproj editing.
Cargo subcommand to automatically create universal libraries for iOS.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Automatically builds and merges static libraries for multiple iOS architectures like arm64 and x86_64 into a single binary, eliminating manual lipo usage.
The --xcode-integ flag derives build settings from Xcode's environment variables, simplifying configuration for release/debug and targets without manual guessing.
Can be integrated into Xcode Run Script phases to automatically rebuild libraries when target platforms change, as detailed in the setup recipe.
The project is explicitly marked as deprecated and passively maintained, with the author recommending alternative approaches like direct Xcode integration for future projects.
Integration requires complex steps like adding multiple script phases, deleting libraries to force rebuilds, and disabling bitcode, increasing setup overhead and potential errors.
Rust libraries built with cargo-lipo require disabling Enable Bitcode in Xcode Archive builds due to LLVM version mismatches, limiting full iOS feature support.