Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kewlbear
Created October 23, 2019 07:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kewlbear/7c4c933b1d631f0f312de4ff80264149 to your computer and use it in GitHub Desktop.
Save kewlbear/7c4c933b1d631f0f312de4ff80264149 to your computer and use it in GitHub Desktop.
#!/bin/sh
xcodebuild archive -scheme "KissXML (iOS)" -destination "generic/platform=iOS" -archivePath iOS SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
xcodebuild archive -scheme "KissXML (iOS)" -destination "platform=macOS,variant=Mac Catalyst" -archivePath catalyst SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
xcodebuild archive -scheme "KissXML (iOS)" -destination "generic/platform=iOS Simulator" -archivePath simulator SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
FRAMEWORKS=""
for framework in iOS catalyst simulator
do
FRAMEWORKS="$FRAMEWORKS -framework $framework.xcarchive/Products/Library/Frameworks/KissXML.framework"
done
xcodebuild -create-xcframework $FRAMEWORKS -output KissXML.xcframework
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment