Last active
February 6, 2022 23:10
-
-
Save vladimir-anisimov/9570ab222efe24e0903d205b617d3e26 to your computer and use it in GitHub Desktop.
build framework Makefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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