Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@fitomad
Created April 19, 2020 13:47
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fitomad/2342d783c719397aeaaf55b6b597251e to your computer and use it in GitHub Desktop.
Save fitomad/2342d783c719397aeaaf55b6b597251e to your computer and use it in GitHub Desktop.
#!/bin/sh
ARCHIVE_DIR="$HOME/archives"
XCFRAMEWORK_DIR="$HOME/Ambiently.xcframework"
rm -rf $ARCHIVE_DIR
rm -rf $XCFRAMEWORK_DIR
xcodebuild archive \
-scheme AmbientlyTouch \
-destination "generic/platform=iOS Simulator" \
-archivePath "$ARCHIVE_DIR/AmbientlyKit-iOS_Simulator" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
xcodebuild archive \
-scheme AmbientlyTouch \
-destination "generic/platform=iOS" \
-archivePath "$ARCHIVE_DIR/AmbientlyKit-iOS" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
xcodebuild archive \
-scheme AmbientlyTouch \
-destination "generic/platform=macOS,variant=Mac Catalyst" \
-archivePath "$ARCHIVE_DIR/AmbientlyKit-Catalyst" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
xcodebuild archive \
-scheme AmbientlyKit \
-destination "generic/platform=macOS" \
-archivePath "$ARCHIVE_DIR/AmbientlyKit-macOS" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
xcodebuild -create-xcframework \
-framework $ARCHIVE_DIR/AmbientlyKit-iOS.xcarchive/Products/Library/Frameworks/AmbientlyKit.framework \
-framework $ARCHIVE_DIR/AmbientlyKit-iOS_Simulator.xcarchive/Products/Library/Frameworks/AmbientlyKit.framework \
-framework $ARCHIVE_DIR/AmbientlyKit-Catalyst.xcarchive/Products/Library/Frameworks/AmbientlyKit.framework \
-framework $ARCHIVE_DIR/AmbientlyKit-macOS.xcarchive/Products/Library/Frameworks/AmbientlyKit.framework \
-output $XCFRAMEWORK_DIR
rm -rf $ARCHIVE_DIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment