Skip to content

Commit

Permalink
Final fixes to iOS building from source
Browse files Browse the repository at this point in the history
  • Loading branch information
takameyer committed Jan 24, 2024
1 parent 9c27039 commit 68fb769
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/realm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"react-native/shared",
"binding",
"bindgen",
"!bindgen/vendor/realm-core/build-xcode-platforms",
"scripts/submit-analytics.mjs",
"scripts/generate-*.sh",
"react-native.config.js",
Expand Down
5 changes: 3 additions & 2 deletions packages/realm/scripts/generate-input-list.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
#!/bin/bash

REALM_CORE_SRC=bindgen/vendor/realm-core/src
REALM_CORE_SRC=bindgen/vendor/realm-core
INPUT_FILELIST=react-native/ios/input-files.xcfilelist

# Clear the file list
> $INPUT_FILELIST

find "$REALM_CORE_SRC" -type f \( -name "*.h" -o -name "*.cpp" -o -name "*.hpp" \) | while read -r file; do
find "$REALM_CORE_SRC" -type f \( -name "*.h" -o -name "*.cpp" -o -name "*.hpp" -o -name "CMakeLists.txt" -o -name "*.cmake" \) | while read -r file; do
echo "\$(SRCROOT)/$file" >> "$INPUT_FILELIST"
done

echo "\$(SRCROOT)/bindgen/vendor/realm-core/dependencies.list" >> "$INPUT_FILELIST"
echo "\$(SRCROOT)/bindgen/vendor/realm-core/tools/build-apple-device.sh" >> "$INPUT_FILELIST"
2 changes: 1 addition & 1 deletion packages/realm/scripts/generate-ios-libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fi
if [ "$BUILD_REALM_CORE" == "1" ]; then
echo "Building realm-core..."
pushd $PROJECT_ROOT/bindgen/vendor/realm-core
./tools/build-apple-device.sh -p $PLATFORM_NAME -c $CONFIGURATION
env -i PATH=$PATH DEVELOPER_DIR=$DEVELOPER_DIR ./tools/build-apple-device.sh -p $PLATFORM_NAME -c $CONFIGURATION -v $CORE_VERSION -f -DREALM_BUILD_LIB_ONLY=1
cp -R _CPack_Packages/$PLATFORM_NAME/TGZ/realm-$CONFIGURATION-v$CORE_VERSION-$PLATFORM_NAME/devel/* $PROJECT_ROOT/react-native/ios/build
popd
else
Expand Down

0 comments on commit 68fb769

Please sign in to comment.