Skip to content

Commit af2fe8c

Browse files
committed
try to fix carthage
1 parent a60a080 commit af2fe8c

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Diff for: Package.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.2
1+
// swift-tools-version:5.3
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

44
import PackageDescription

Diff for: build.sh

+12
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,19 @@ cocoapods-lint-other-subspecs)
261261

262262
carthage|all)
263263
echo "Verifying carthage works."
264+
## carthage workaround to slip spm based project
265+
spm_example_project="examples/ASIGListKitSPM/Sample.xcodeproj"
266+
carthge_example_project_workaround="examples/ASIGListKitSPM/Sample.carthageSkip"
267+
268+
# apply workaround
269+
mv $spm_example_project $carthge_example_project_workaround
270+
271+
# carthage job
264272
set -o pipefail && carthage update && carthage build --no-skip-current
273+
274+
#revert back workaround
275+
mv $carthge_example_project_workaround $spm_example_project
276+
265277
success="1"
266278
;;
267279

0 commit comments

Comments
 (0)