chore: fix ios simulator build

This commit is contained in:
Nathan 2025-05-26 17:38:51 +08:00
parent 73757dad6b
commit af6d1f4701

View file

@ -29,6 +29,11 @@ script = [
# Set environment variables for iOS simulator builds to fix bindgen issues
# This prevents the "stdbool.h file not found" error when building for iOS simulator
# Fix the issue:
# error: version 'sim' in target triple 'arm64-apple-ios-sim' is invalid
# rocksdb/include/rocksdb/c.h:65:10: fatal error: 'stdbool.h' file not found
#
if [[ "${RUST_COMPILE_TARGET}" == *"ios-sim"* ]]; then
echo "🔧 Setting up environment for iOS Simulator build..."
export SDKROOT="$(xcrun --sdk iphonesimulator --show-sdk-path)"