From bf1e4c89760c1e671781d91bdfaa79c02a875a44 Mon Sep 17 00:00:00 2001 From: Diego Costantino Date: Mon, 7 Mar 2022 10:10:13 -0800 Subject: [PATCH] chore: skip build xcframework when build for cocoapods (#524) --- build-support/build-xcframeworks.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build-support/build-xcframeworks.sh b/build-support/build-xcframeworks.sh index 0f42333c..c27f53aa 100755 --- a/build-support/build-xcframeworks.sh +++ b/build-support/build-xcframeworks.sh @@ -5,6 +5,13 @@ pwd=$(pwd) ios_device_archive_path="$pwd/build/iOS/AWSAppSync" ios_simulator_archive_path="$pwd/build/Simulator/AWSAppSync" xcframework_path="$pwd/build/$framework.xcframework" + +if [ -d "$xcframework_path" ] +then + echo "XCFramework exists already, skipping." + exit 0 +fi + # archive for device xcodebuild archive -workspace AWSAppSyncClient.xcworkspace \ -scheme $framework \