Skip to content

Commit ffde582

Browse files
authored
Fix Swift 6 manifest warnings (Fixes #232) (#233)
* Fix Package manifest warning for Swift 6 * update Package.swift * update package.swift * fix build-frameworks * fix build_xcframeworks.sh * get rid of build_xcframeworks
1 parent 3229f66 commit ffde582

File tree

3 files changed

+8
-130
lines changed

3 files changed

+8
-130
lines changed

.github/workflows/primary.yml

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -46,39 +46,3 @@ jobs:
4646
- uses: actions/checkout@v4
4747
- name: Lint Podspec
4848
run: pod lib lint --allow-warnings
49-
50-
xcframework:
51-
name: XCFramework
52-
runs-on: macOS-14
53-
steps:
54-
- uses: actions/checkout@v4
55-
56-
- name: Build XCFramework
57-
run: ci/build_xcframework.sh
58-
59-
- uses: actions/upload-artifact@v4
60-
with:
61-
name: PocketSVG.xcframework
62-
path: derived_data/xcframework/PocketSVG.xcframework
63-
retention-days: 5
64-
65-
create-release:
66-
name: Make release
67-
runs-on: macOS-13
68-
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') # only if tag is pushed
69-
needs: [primary, cocoapods, spm, xcframework]
70-
steps:
71-
- uses: actions/checkout@v4
72-
73-
- uses: actions/download-artifact@v4
74-
with:
75-
name: PocketSVG.xcframework
76-
path: PocketSVG.xcframework
77-
78-
- name: Make release
79-
run: |
80-
echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
81-
TAG_NAME=${GITHUB_REF#refs/*/}
82-
zip -r9 "PocketSVG.xcframework.zip" "PocketSVG.xcframework"
83-
gh release create $TAG_NAME --notes ""
84-
gh release upload $TAG_NAME PocketSVG.xcframework.zip

Package.swift

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ import PackageDescription
55
let package = Package(
66
name: "PocketSVG",
77
platforms: [
8-
.macOS(.v10_10),
9-
.iOS(.v9),
10-
.tvOS(.v10),
11-
.watchOS(.v3),
12-
.visionOS(.v1)
8+
.macOS(.v10_13),
9+
.iOS(.v12),
10+
.tvOS(.v12),
11+
.watchOS(.v4),
12+
.visionOS(.v1),
1313
],
1414
products: [
1515
.library(
1616
name: "PocketSVG",
17-
type: .dynamic,
18-
targets: ["PocketSVG"])
17+
targets: ["PocketSVG"]
18+
),
1919
],
2020
targets: [
2121
.target(
@@ -35,5 +35,6 @@ let package = Package(
3535
]
3636
),
3737
],
38+
swiftLanguageVersions: [.v5],
3839
cxxLanguageStandard: .cxx14
3940
)

ci/build_xcframework.sh

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

0 commit comments

Comments
 (0)