We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d37c998 commit 75871adCopy full SHA for 75871ad
1 file changed
Example/carthage.sh
@@ -0,0 +1,17 @@
1
+#!/usr/bin/env bash
2
+
3
+# carthage.sh
4
+# Usage example: ./carthage.sh build --platform iOS
5
6
+set -euo pipefail
7
8
+xcconfig=$(mktemp /tmp/static.xcconfig.XXXXXX)
9
+trap 'rm -f "$xcconfig"' INT TERM HUP EXIT
10
11
+# For Xcode 12 make sure EXCLUDED_ARCHS is set to arm architectures otherwise
12
+# the build will fail on lipo due to duplicate architectures.
13
+echo 'EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200 = arm64 arm64e armv7 armv7s armv6 armv8' >> $xcconfig
14
+echo 'EXCLUDED_ARCHS = $(inherited) $(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_$(EFFECTIVE_PLATFORM_SUFFIX)__NATIVE_ARCH_64_BIT_$(NATIVE_ARCH_64_BIT)__XCODE_$(XCODE_VERSION_MAJOR))' >> $xcconfig
15
16
+export XCODE_XCCONFIG_FILE="$xcconfig"
17
+carthage "$@"
0 commit comments