setup-cocoapods.sh 516 B

1234567891011121314151617
  1. #!/usr/bin/env bash
  2. set -euo pipefail
  3. source_root="$(dirname "$0")/.."
  4. readonly source_root
  5. if [ ! -f "$source_root/core/version.txt" ]; then
  6. sh "$source_root/scripts/download-core.sh"
  7. fi
  8. rm -rf "$source_root/include"
  9. mkdir -p "$source_root/include"
  10. cp -R "$source_root/core/realm-monorepo.xcframework/ios-arm64_armv7/Headers" "$source_root/include/core"
  11. mkdir -p "$source_root/include"
  12. echo '' > "$source_root/Realm/RLMPlatform.h"
  13. cp "$source_root/Realm/"*.h "$source_root/Realm/"*.hpp "$source_root/include"