Cosmian / crypto_core

Other
1 stars 1 forks source link

Try fix ios build #25

Closed Manuthor closed 2 years ago

Manuthor commented 2 years ago

Try fix ios build (removing cdylib).

When cdylib is present, following error occurs later on (on projects depending on crypto_core):

error: failed to get iphoneos SDK path: process exit with error: osxcross: error: xcrun: '-sdk': expected macOS SDK

error: could not compile `cosmian_findex` due to previous error
[ERROR cargo_lipo] Failed to build "cosmian_findex" for "aarch64-apple-ios": Executing "/root/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo" "--color" "auto" "build" "-p" "cosmian_findex" "--target" "aarch64-apple-ios" "--release" "--lib" finished with error status: exit status: 101
root@299beefab449:~/project# cargo clean && cargo lipo --release --allow-run-on-non-macos