Skip to content

Commit 2c5b116

Browse files
committed
chore: Do not generate SPM until archive
1 parent 2066a25 commit 2c5b116

File tree

8 files changed

+13
-693
lines changed

8 files changed

+13
-693
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,4 @@ Package.resolved
4848

4949
.DS_Store
5050
**/.idea/**
51+
RxWebKit-SPM.xcodeproj

RxWebKit-SPM.xcodeproj/project.pbxproj

Lines changed: 0 additions & 490 deletions
This file was deleted.

RxWebKit-SPM.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 0 additions & 7 deletions
This file was deleted.

RxWebKit-SPM.xcodeproj/xcshareddata/xcschemes/RxWebKit iOS.xcscheme

Lines changed: 0 additions & 94 deletions
This file was deleted.

RxWebKit-SPM.xcodeproj/xcshareddata/xcschemes/RxWebKit macOS.xcscheme

Lines changed: 0 additions & 94 deletions
This file was deleted.

cleanup.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ exit 1
1616
fi
1717

1818
if which xcodegen >/dev/null; then
19-
`which xcodegen` --spec project-spm.yml
2019
`which xcodegen` --spec project-carthage.yml
2120
else
2221
echo "error: XcodeGen not installed, do `sh setup.sh` to install XcodeGen."

scripts/bump-version.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ echo "RELEASE_VERSION=$(git describe --abbrev=0 | tr -d '\n')" >> $GITHUB_ENV
88
export VERSION="$(git describe --abbrev=0 | tr -d '\n')"
99
VERSION=${VERSION:1}
1010
echo $VERSION
11-
npx podspec-bump -w -i "$VERSION"
11+
npx podspec-bump -w -i "$VERSION"
12+
git add -A
13+
git commit --amend --no-edit

scripts/xcframeworks.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
#!/usr/bin/env bash
2-
31
set -euo pipefail
2+
rm -rf RxWebKit-SPM.xcodeproj
43
rm -rf xcarchives/*
54
rm -rf RxWebKit.xcframework.zip
5+
rm -rf RxWebKit.xcframework
6+
7+
xcodegen --spec project-spm.yml
68

7-
xcodebuild archive -quiet -project RxWebKit-SPM.xcodeproj -scheme "RxWebKit iOS" -sdk iphoneos -archivePath "xcarchives/RxWebKit-iOS"
8-
xcodebuild archive -quiet -project RxWebKit-SPM.xcodeproj -scheme "RxWebKit iOS" -sdk iphonesimulator -archivePath "xcarchives/RxWebKit-iOS-Simulator"
9-
xcodebuild archive -quiet -project RxWebKit-SPM.xcodeproj -scheme "RxWebKit macOS" -sdk macosx -archivePath "xcarchives/RxWebKit-macOS"
9+
xcodebuild archive -quiet -project RxWebKit-SPM.xcodeproj -configuration Release -scheme "RxWebKit iOS" -destination "generic/platform=iOS" -archivePath "xcarchives/RxWebKit-iOS" SKIP_INSTALL=NO SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES OTHER_CFLAGS="-fembed-bitcode" BITCODE_GENERATION_MODE="bitcode" ENABLE_BITCODE=YES | xcpretty --color --simple
10+
xcodebuild archive -quiet -project RxWebKit-SPM.xcodeproj -configuration Release -scheme "RxWebKit iOS" -destination "generic/platform=iOS Simulator" -archivePath "xcarchives/RxWebKit-iOS-Simulator" SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES OTHER_CFLAGS="-fembed-bitcode" BITCODE_GENERATION_MODE="bitcode" ENABLE_BITCODE=YES | xcpretty --color --simple
11+
xcodebuild archive -quiet -project RxWebKit-SPM.xcodeproj -configuration Release -scheme "RxWebKit macOS" -destination "generic/platform=macOS" -archivePath "xcarchives/RxWebKit-macOS" SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES OTHER_CFLAGS="-fembed-bitcode" BITCODE_GENERATION_MODE="bitcode" ENABLE_BITCODE=YES | xcpretty --color --simple
1012

1113
xcodebuild -create-xcframework \
1214
-framework "xcarchives/RxWebKit-iOS-Simulator.xcarchive/Products/Library/Frameworks/RxWebKit.framework" \
@@ -19,4 +21,5 @@ xcodebuild -create-xcframework \
1921

2022
zip -r RxWebKit.xcframework.zip RxWebKit.xcframework
2123
rm -rf xcarchives/*
22-
rm -rf RxWebKit.xcframework
24+
rm -rf RxWebKit.xcframework
25+
rm -rf RxWebKit-SPM.xcodeproj

0 commit comments

Comments
 (0)