-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script for generating the SPM binaries analogous to the other bui…
…ld script
- Loading branch information
1 parent
7c5363e
commit c0b7b1f
Showing
3 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
./Example/ConsentViewController.xcodeproj |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
# Creates the binaries which are distributed via SPM. | ||
|
||
xcodebuild archive \ | ||
-project ConsentViewController.xcodeproj \ | ||
-scheme SPMConsentViewController-iOS \ | ||
-destination 'generic/platform=iOS' \ | ||
-archivePath './build/SPM/ConsentViewController-iOS' && | ||
xcodebuild archive \ | ||
-project ConsentViewController.xcodeproj \ | ||
-scheme SPMConsentViewController-iOS \ | ||
-destination 'generic/platform=iOS Simulator' \ | ||
-archivePath './build/SPM/ConsentViewController-iOS-simulator' && | ||
xcodebuild archive \ | ||
-project ConsentViewController.xcodeproj \ | ||
-scheme SPMConsentViewController-tvOS \ | ||
-destination 'generic/platform=tvOS' \ | ||
-archivePath './build/SPM/ConsentViewController-tvOS' && | ||
xcodebuild archive \ | ||
-project ConsentViewController.xcodeproj \ | ||
-scheme SPMConsentViewController-tvOS \ | ||
-destination 'generic/platform=tvOS Simulator' \ | ||
-archivePath './build/SPM/ConsentViewController-tvOS-simulator' | ||
|
||
rm -r ./XCFramework/SPM/ConsentViewController.xcframework | ||
rm -r ./XCFramework/SPM/ConsentViewController.xcframework.zip | ||
|
||
xcodebuild -create-xcframework \ | ||
-framework './build/SPM/ConsentViewController-iOS.xcarchive/Products/Library/Frameworks/ConsentViewController.framework' \ | ||
-framework './build/SPM/ConsentViewController-iOS-simulator.xcarchive/Products/Library/Frameworks/ConsentViewController.framework' \ | ||
-framework './build/SPM/ConsentViewController-tvOS.xcarchive/Products/Library/Frameworks/ConsentViewController.framework' \ | ||
-framework './build/SPM/ConsentViewController-tvOS-simulator.xcarchive/Products/Library/Frameworks/ConsentViewController.framework' \ | ||
-output './XCFramework/SPM/ConsentViewController.xcframework' | ||
|
||
zip -r ./XCFramework/SPM/ConsentViewController.xcframework.zip ./XCFramework/SPM/ConsentViewController.xcframework |
This file contains 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