Skip to content

Instantly share code, notes, and snippets.

@vladimir-anisimov
Last active February 6, 2022 23:10
Show Gist options
  • Save vladimir-anisimov/9570ab222efe24e0903d205b617d3e26 to your computer and use it in GitHub Desktop.
Save vladimir-anisimov/9570ab222efe24e0903d205b617d3e26 to your computer and use it in GitHub Desktop.
build framework Makefile
ios:
xcodebuild archive \
-scheme TweakFramework \
-configuration Release \
-destination 'generic/platform=iOS' \
-archivePath './build/TweakFramework.framework-iphoneos.xcarchive' \
SKIP_INSTALL=NO \
BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
simulator:
xcodebuild archive \
-scheme TweakFramework \
-configuration Release \
-destination 'generic/platform=iOS Simulator' \
-archivePath './build/TweakFramework.framework-iphonesimulator.xcarchive' \
SKIP_INSTALL=NO \
BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
catalyst:
xcodebuild archive \
-scheme TweakFramework \
-configuration Release \
-destination 'platform=macOS,arch=x86_64,variant=Mac Catalyst' \
-archivePath './build/TweakFramework.framework-catalyst.xcarchive' \
SKIP_INSTALL=NO \
BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
xcframework: ios simulator catalyst
xcodebuild -create-xcframework \
-framework './build/TweakFramework.framework-iphonesimulator.xcarchive/Products/Library/Frameworks/TweakFramework.framework' \
-framework './build/TweakFramework.fra mework-iphoneos.xcarchive/Products/Library/Frameworks/TweakFramework.framework' \
-framework './build/TweakFramework.framework-catalyst.xcarchive/Products/Library/Frameworks/TweakFramework.framework' \
-output './build/TweakFramework.xcframework'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment