Skip to content

Commit 15990ac

Browse files
committed
Added the temp Carthage support to build visionOS framework
Fix some new warning on Swift 5.9
1 parent 75fff6c commit 15990ac

File tree

5 files changed

+181
-23
lines changed

5 files changed

+181
-23
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ You can only use the Xcode's built-in package manager dependency to build on vis
2626

2727
To run the visionOS example, you need to clone and add both `SDWebImage` and `SDWebImageSwiftUI`, open the `SDWebImageSwiftUI.xcworkspace` and drag those folders to become local package dependency, see: [Editing a package dependency as a local package](https://developer.apple.com/documentation/xcode/editing-a-package-dependency-as-a-local-package)
2828

29+
If you really want to build framework instead of using Xcode's package dependency, following the manual steps below:
30+
31+
1. Clone SDWebImage, open `SDWebImage.xcodeproj` and build `SDWebImage` target for visionOS platform (Change `MACH_O_TYPE` to static library if you need)
32+
2. Clone SDWebImageSwiftUI, create directory at `Carthage/Build/visionOS` and copy `SDWebImage.framework` into it
33+
3. Open `SDWebImageSwiftUI.xcodeproj` and build `SDWebImageSwiftUI visionOS` target
34+
2935
## Features
3036

3137
Since SDWebImageSwiftUI is built on top of SDWebImage, it provide both the out-of-box features as well as advanced powerful features you may want in real world Apps. Check our [Wiki](https://github.com/SDWebImage/SDWebImage/wiki/Advanced-Usage) when you need:

0 commit comments

Comments
 (0)