react-native-mask-segment-c.../ios/scripts/setup_vendor_pods.sh
a1518 56738b1f06 feat: add MaskSegmentApp source code and config
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-26 00:23:52 -07:00

16 lines
535 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
# 可选:预检 GitHub 镜像是否可用(默认镜像见 ios/offline_pods.rb
set -euo pipefail
MIRROR="${COCOAPODS_GITHUB_MIRROR:-https://ghproxy.net/https://github.com}"
TEST_URL="${MIRROR}/google/double-conversion.git"
echo "Checking CocoaPods GitHub mirror..."
if git ls-remote "$TEST_URL" HEAD >/dev/null 2>&1; then
echo "✓ Mirror OK: $MIRROR"
else
echo "✗ Mirror unreachable: $MIRROR"
echo " Try: export COCOAPODS_GITHUB_MIRROR='https://mirror.ghproxy.com/https://github.com'"
exit 1
fi