Skip to content

Commit 2e9af2f

Browse files
committed
Fix travis CI script to only build Carthage. Swift cli build can not works on Objective-C code import syntax, but works on Xcode
1 parent 30bc73f commit 2e9af2f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ script:
3333
- pod install --project-directory=Example
3434
- xcodebuild build -workspace Example/SDWebImageSwiftUI.xcworkspace -scheme SDWebImageSwiftUIDemo -sdk iphonesimulator -destination 'name=iPhone 8' ONLY_ACTIVE_ARCH=NO | xcpretty -c
3535

36-
- swift build
36+
- carthage update --platform iOS
37+
- xcodebuild build -project SDWebImageSwiftUI.xcodeproj -scheme 'SDWebImageSwiftUI' -sdk iphonesimulator -configuration Debug | xcpretty -c

Cartfile.resolved

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github "SDWebImage/SDWebImage" "5.1.0"
1+
github "SDWebImage/SDWebImage" "5.2.3"

Package.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ let package = Package(
3333
name: "SDWebImageSwiftUIObjC",
3434
dependencies: ["SDWebImage"],
3535
path: "SDWebImageSwiftUI/Classes/ObjC",
36-
sources: ["SDAnimatedImageInterface.h", "SDAnimatedImageInterface.m"],
3736
publicHeadersPath: "."
3837
)
3938
]

0 commit comments

Comments
 (0)