forked from mozilla-mobile/firefox-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
carthage_command.sh
executable file
·21 lines (17 loc) · 1.18 KB
/
carthage_command.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
xcodesdk=`xcodebuild -scheme Firefox -showBuildSettings | grep -i 'SDK_VERSION =' | sed 's/[ ]*SDK_VERSION = //' | colrm 3`
echo Xcode SDK: "$xcodesdk"
if [[ "$xcodesdk" != "13" ]]; then
echo XCode 12 version detected! ••• Please ensure this is correct. •••
echo 'EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64=arm64 arm64e armv7 armv7s armv6 armv8' > /tmp/tmp.xcconfig
echo 'EXCLUDED_ARCHS=$(inherited) $(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_$(EFFECTIVE_PLATFORM_SUFFIX)__NATIVE_ARCH_64_BIT_$(NATIVE_ARCH_64_BIT))' >> /tmp/tmp.xcconfig
echo 'IPHONEOS_DEPLOYMENT_TARGET=11.4' >> /tmp/tmp.xcconfig
echo 'SWIFT_TREAT_WARNINGS_AS_ERRORS=NO' >> /tmp/tmp.xcconfig
echo 'GCC_TREAT_WARNINGS_AS_ERRORS=NO' >> /tmp/tmp.xcconfig
export XCODE_XCCONFIG_FILE=/tmp/tmp.xcconfig
fi
carthage bootstrap $CARTHAGE_VERBOSE --platform ios --color auto --cache-builds
# if [[ -d Carthage/Build/iOS/Static/MozillaAppServices.framework ]]; then
# echo Move local build of AppServices from Static
# rm -rf Carthage/Build/iOS/MozillaAppServices.framework
# cp -r Carthage/Build/iOS/Static/MozillaAppServices.framework Carthage/Build/iOS/MozillaAppServices.framework
# fi