Skip to content

Instantly share code, notes, and snippets.

@mttcrsp
Last active September 1, 2023 19:39
Show Gist options
  • Save mttcrsp/f8f01f0a0295de341d86b090a650af40 to your computer and use it in GitHub Desktop.
Save mttcrsp/f8f01f0a0295de341d86b090a650af40 to your computer and use it in GitHub Desktop.
swift package generate-xcodeproj
echo "go set a codesigning team"
exit 1
xcodebuild archive \
-project swift-composable-architecture.xcodeproj \
-scheme swift-composable-architecture-Package \
-destination "generic/platform=iOS" \
-archivePath "iphoneos" \
SKIP_INSTALL=NO | xcbeautify
xcodebuild archive \
-project swift-composable-architecture.xcodeproj \
-scheme swift-composable-architecture-Package \
-destination "generic/platform=iOS Simulator" \
-archivePath "iphonesimulator" \
SKIP_INSTALL=NO | xcbeautify
####################################################
xcodebuild -create-xcframework \
-allow-internal-distribution \
-archive iphoneos.xcarchive -framework CasePaths.framework \
-archive iphonesimulator.xcarchive -framework CasePaths.framework \
-output CasePaths.xcframework
xcodebuild -create-xcframework \
-allow-internal-distribution \
-archive iphoneos.xcarchive -framework Clocks.framework \
-archive iphonesimulator.xcarchive -framework Clocks.framework \
-output Clocks.xcframework
xcodebuild -create-xcframework \
-allow-internal-distribution \
-archive iphoneos.xcarchive -framework CombineSchedulers.framework \
-archive iphonesimulator.xcarchive -framework CombineSchedulers.framework \
-output CombineSchedulers.xcframework
xcodebuild -create-xcframework \
-allow-internal-distribution \
-archive iphoneos.xcarchive -framework ComposableArchitecture.framework \
-archive iphonesimulator.xcarchive -framework ComposableArchitecture.framework \
-output ComposableArchitecture.xcframework
xcodebuild -create-xcframework \
-allow-internal-distribution \
-archive iphoneos.xcarchive -framework ConcurrencyExtras.framework \
-archive iphonesimulator.xcarchive -framework ConcurrencyExtras.framework \
-output ConcurrencyExtras.xcframework
xcodebuild -create-xcframework \
-allow-internal-distribution \
-archive iphoneos.xcarchive -framework CustomDump.framework \
-archive iphonesimulator.xcarchive -framework CustomDump.framework \
-output CustomDump.xcframework
xcodebuild -create-xcframework \
-allow-internal-distribution \
-archive iphoneos.xcarchive -framework Dependencies.framework \
-archive iphonesimulator.xcarchive -framework Dependencies.framework \
-output Dependencies.xcframework
xcodebuild -create-xcframework \
-allow-internal-distribution \
-archive iphoneos.xcarchive -framework IdentifiedCollections.framework \
-archive iphonesimulator.xcarchive -framework IdentifiedCollections.framework \
-output IdentifiedCollections.xcframework
xcodebuild -create-xcframework \
-allow-internal-distribution \
-archive iphoneos.xcarchive -framework OrderedCollections.framework \
-archive iphonesimulator.xcarchive -framework OrderedCollections.framework \
-output OrderedCollections.xcframework
xcodebuild -create-xcframework \
-allow-internal-distribution \
-archive iphoneos.xcarchive -framework SwiftUINavigationCore.framework \
-archive iphonesimulator.xcarchive -framework SwiftUINavigationCore.framework \
-output SwiftUINavigationCore.xcframework
xcodebuild -create-xcframework \
-allow-internal-distribution \
-archive iphoneos.xcarchive -framework XCTestDynamicOverlay.framework \
-archive iphonesimulator.xcarchive -framework XCTestDynamicOverlay.framework \
-output XCTestDynamicOverlay.xcframework
##########################################################################
# facebook/componentkit
##########################################################################
xcodebuild archive \
-project ComponentKit.xcodeproj \
-scheme CKTextSwift \
-destination "generic/platform=iOS Simulator" \
-archivePath "iphonesimulator" \
SKIP_INSTALL=NO | xcbeautify
xcodebuild archive \
-project ComponentKit.xcodeproj \
-scheme CKTextSwift \
-destination "generic/platform=iOS" \
-archivePath "iphoneos" \
SKIP_INSTALL=NO | xcbeautify
xcodebuild -create-xcframework \
-allow-internal-distribution \
-archive iphoneos.xcarchive -framework CKSwift.framework \
-archive iphonesimulator.xcarchive -framework CKSwift.framework \
-output CKSwift.xcframework
xcodebuild -create-xcframework \
-allow-internal-distribution \
-archive iphoneos.xcarchive -framework RenderCore.framework \
-archive iphonesimulator.xcarchive -framework RenderCore.framework \
-output RenderCore.xcframework
xcodebuild -create-xcframework \
-allow-internal-distribution \
-framework iphoneos.xcarchive/Products/@rpath/CKTextSwift.framework \
-framework iphonesimulator.xcarchive/Products/@rpath/CKTextSwift.framework \
-output CKTextSwift.xcframework
xcodebuild -create-xcframework \
-allow-internal-distribution \
-framework iphoneos.xcarchive/Products/@rpath/ComponentKit.framework \
-framework iphonesimulator.xcarchive/Products/@rpath/ComponentKit.framework \
-output ComponentKit.xcframework
xcodebuild -create-xcframework \
-allow-internal-distribution \
-framework iphoneos.xcarchive/Products/@rpath/ComponentTextKit.framework \
-framework iphonesimulator.xcarchive/Products/@rpath/ComponentTextKit.framework \
-output ComponentTextKit.xcframework
#############################
xcodebuild archive \
-workspace Alamofire.xcworkspace \
-scheme "Alamofire iOS" \
-destination "generic/platform=iOS" \
-archivePath "iphoneos" \
SKIP_INSTALL=NO | xcbeautify
xcodebuild archive \
-workspace Alamofire.xcworkspace \
-scheme "Alamofire iOS" \
-destination "generic/platform=iOS Simulator" \
-archivePath "iphonesimulator" \
SKIP_INSTALL=NO | xcbeautify
xcodebuild -create-xcframework \
-allow-internal-distribution \
-archive iphoneos.xcarchive -framework Alamofire.framework \
-archive iphonesimulator.xcarchive -framework Alamofire.framework \
-output Alamofire.xcframework
rm -rf iphoneos.xcarchive
rm -rf iphonesimulator.xcarchive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment