Skip to content

Instantly share code, notes, and snippets.

@treastrain
Created December 25, 2021 15:49
Show Gist options
  • Save treastrain/07e7f4ab5c32a531e2dc0691c2485fd6 to your computer and use it in GitHub Desktop.
Save treastrain/07e7f4ab5c32a531e2dc0691c2485fd6 to your computer and use it in GitHub Desktop.
trash build
# https://help.apple.com/xcode/mac/current/#/dev544efab96
xcodebuild \
'ENABLE_BITCODE=YES' \
'BITCODE_GENERATION_MODE=bitcode' \
'OTHER_CFLAGS=-fembed-bitcode' \
'BUILD_LIBRARY_FOR_DISTRIBUTION=YES' \
'SKIP_INSTALL=NO' \
archive \
-project SwiftPackageDependencies.xcodeproj \
-scheme 'SwiftPackageDependencies' \
-destination 'generic/platform=iOS Simulator' \
-configuration 'Release' \
-archivePath 'build/SwiftPackageDependencies-iphonesimulator.xcarchive'
xcodebuild \
'ENABLE_BITCODE=YES' \
'BITCODE_GENERATION_MODE=bitcode' \
'OTHER_CFLAGS=-fembed-bitcode' \
'BUILD_LIBRARY_FOR_DISTRIBUTION=YES' \
'SKIP_INSTALL=NO' \
archive \
-project SwiftPackageDependencies.xcodeproj \
-scheme 'SwiftPackageDependencies' \
-destination 'generic/platform=iOS' \
-configuration 'Release' \
-archivePath 'build/SwiftPackageDependencies-iphoneos.xcarchive'
xcodebuild \
-create-xcframework \
-archive 'build/SwiftPackageDependencies-iphoneos.xcarchive' -framework 'SwiftPackageDependencies.framework' \
-archive 'build/SwiftPackageDependencies-iphonesimulator.xcarchive' -framework 'SwiftPackageDependencies.framework' \
-output 'build/SwiftPackageDependencies.xcframework'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment