Created
August 19, 2021 01:49
-
-
Save tigi44/637f85110a9d04af0b35265f70a58078 to your computer and use it in GitHub Desktop.
Create a XCFrameWork
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
$ xcodebuild archive -scheme [Scheme 명] -archivePath [Archive 출력 경로] -sdk iphoneos SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES | |
# ex) iOS, iOS Simulator, macOS | |
$ xcodebuild archive -scheme FlightKit -archivePath "./build/ios.xcarchive" -sdk iphoneos SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES | |
$ xcodebuild archive -scheme FlightKit -archivePath "./build/ios_sim.xcarchive" -sdk iphonesimulator SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES | |
$ xcodebuild archive -scheme FlightKit -archivePath "./build/mac.xcarchive" SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES | |
# create xcframework | |
xcodebuild -create-xcframework \ | |
-framework "./build/ios.xcarchive/Products/Library/Frameworks/FlightKit.framework" \ | |
-framework "./build/ios_sim.xcarchive/Products/Library/Frameworks/FlightKit.framework" \ | |
-framework "./build/macos.xcarchive/Products/Library/Frameworks/FlightKit.framework" \ | |
-output "./build/FlightKit.xcframework" | |
# supported sdks | |
$ xcodebuild -showsdks | |
iOS SDKs: | |
iOS 13.2 -sdk iphoneos13.2 | |
iOS Simulator SDKs: | |
Simulator - iOS 13.2 -sdk iphonesimulator13.2 | |
macOS SDKs: | |
DriverKit 19.0 -sdk driverkit.macosx19.0 | |
macOS 10.15 -sdk macosx10.15 | |
tvOS SDKs: | |
tvOS 13.2 -sdk appletvos13.2 | |
tvOS Simulator SDKs: | |
Simulator - tvOS 13.2 -sdk appletvsimulator13.2 | |
watchOS SDKs: | |
watchOS 6.1 -sdk watchos6.1 | |
watchOS Simulator SDKs: | |
Simulator - watchOS 6.1 -sdk watchsimulator6.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment