mirror of
https://github.com/AppFlowy-IO/AppFlowy
synced 2026-04-21 15:47:55 +00:00
chore: fix ios simulator build
This commit is contained in:
parent
73757dad6b
commit
af6d1f4701
1 changed files with 5 additions and 0 deletions
|
|
@ -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)"
|
||||
|
|
|
|||
Loading…
Reference in a new issue