Skip to content

Commit c48a9ea

Browse files
ci: Emit dummy xcframeworks for Swift Packages (#768)
* ci: Swift Packages do not emit xcframeworks * update dependencies
1 parent c791c1f commit c48a9ea

5 files changed

Lines changed: 16 additions & 2 deletions

File tree

.github/workflows/release-publish.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,15 @@ jobs:
151151
152152
mkdir -p archives xcframeworks
153153
154+
SKIP_XCF="${{ matrix.kit.skip_xcframework }}"
155+
if [ "$SKIP_XCF" = "true" ]; then
156+
MODULE=$(echo "$SCHEMES_JSON" | jq -r '.[0].module')
157+
echo "Skipping xcframework: Swift package archives for this target do not emit Products/Library/Frameworks/*.framework (object files only). Use SwiftPM/CocoaPods from the tag." \
158+
>"xcframeworks/${MODULE}-distribution.txt"
159+
(cd xcframeworks && zip -r "${MODULE}.xcframework.zip" "${MODULE}-distribution.txt")
160+
exit 0
161+
fi
162+
154163
MODULES=$(echo "$SCHEMES_JSON" | jq -r '.[].module' | sort -u)
155164
156165
for MODULE in $MODULES; do

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ For each release, **Core** (main SDK) changes are listed first, followed by **Ki
2626

2727
- **Rokt SDK+ (`RoktSDKPlus`)** — Umbrella Swift package and CocoaPods pod at `Kits/rokt-sdk-plus/rokt-sdk-plus-ios`, versioned with the core SDK and mirrored to [ROKT/rokt-sdk-plus-ios](https://github.com/ROKT/rokt-sdk-plus-ios).
2828

29+
#### Fixed
30+
31+
- **Rokt SDK+** — Release **Build rokt-sdk-plus-ios** no longer runs `xcodebuild -create-xcframework` for this Swift-package-only target (archives do not produce `*.framework` under `Products/Library/Frameworks/`). CI uploads a small placeholder zip so mirror artifact steps still succeed; integrate via SwiftPM or CocoaPods from the tag.
32+
2933
#### Rokt
3034

3135
##### Changed

Kits/matrix.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@
400400
"dest_repo": "rokt-sdk-plus-ios",
401401
"dest_org": "ROKT",
402402
"spm_package_only": true,
403+
"skip_xcframework": true,
403404
"skip_example_builds": true,
404405
"skip_spm_tests": true,
405406
"pod_lint_include_podspecs": "Kits/rokt/rokt/mParticle-Rokt.podspec",

Kits/rokt-sdk-plus/rokt-sdk-plus-ios/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ let package = Package(
3636
mParticleRoktDependency,
3737
.package(
3838
url: "https://github.com/ROKT/rokt-payment-extension-ios.git",
39-
.upToNextMajor(from: "2.0.0")
39+
.upToNextMajor(from: "2.0.2")
4040
)
4141
],
4242
targets: [

Kits/rokt/rokt/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ let package = Package(
3232
mParticleAppleSDK,
3333
.package(
3434
url: "https://github.com/ROKT/rokt-sdk-ios",
35-
.upToNextMajor(from: "5.2.0")
35+
.upToNextMajor(from: "5.2.1")
3636
),
3737
.package(
3838
url: "https://github.com/ROKT/rokt-contracts-apple.git",

0 commit comments

Comments
 (0)