Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

chore: fix ios simulator build

Nathanaf6d1f470181
diff --git a/frontend/scripts/makefile/mobile.toml b/frontend/scripts/makefile/mobile.toml
index 861c786d7e..6f89c1235e 100644
--- a/frontend/scripts/makefile/mobile.toml
+++ b/frontend/scripts/makefile/mobile.toml
@@ -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)"