Skip to content

Commit

Permalink
chore: skip build xcframework when build for cocoapods (awslabs#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
diegocstn authored and CI machine committed Mar 24, 2022
1 parent 3a37ac5 commit bf1e4c8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build-support/build-xcframeworks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit bf1e4c8

Please sign in to comment.