Newer
Older
bremer-ios-app / Pods / Realm / scripts / setup-cocoapods.sh
yhornisse on 10 Sep 2023 594 bytes Initial Commit
#!/usr/bin/env bash

set -euo pipefail
source_root="$(dirname "$0")/.."
readonly source_root

if [ ! -f "$source_root/core/version.txt" ]; then
  sh "$source_root/scripts/download-core.sh"
fi

rm -rf "$source_root/include"
mkdir -p "$source_root/include"
cp -R "$source_root/core/realm-monorepo.xcframework/ios-arm64/Headers" "$source_root/include/core"

mkdir -p "$source_root/include"
cp "$source_root/Realm/"*.h "$source_root/Realm/"*.hpp "$source_root/include"
echo "#define REALM_IOPLATFORMUUID @\"$(sh $source_root/build.sh get-ioplatformuuid)\"" >> "$source_root/Realm/RLMAnalytics.hpp"