You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#### Use for backward deployment and weak linking SwiftUI
254
+
#### Using for backward deployment and weak linking SwiftUI
255
255
256
-
SDWebImageSwiftUI supports to use when your App Target has a deployment target version less than iOS 13/macOS 10.15/tvOS 13/watchOS 6. Which will weak linking of SwiftUI(Combine) to allows writing code with available check at runtime.
256
+
SDWebImageSwiftUI from v0.10.0, supports to use when your App Target has a deployment target version less than iOS 13/macOS 10.15/tvOS 13/watchOS 6. Which will weak linking of SwiftUI(Combine) to allows writing code with available check at runtime.
257
257
258
258
To use backward deployment, you have to do the follow things:
259
259
260
260
+ Add `-weak_framework SwiftUI -weak_framework Combine` in your App Target's `Other Linker Flags` build setting
261
261
262
-
You should notice that all the third party SwiftUI framework should have this build setting as well, not only just ourself (we already added). Or when running on iOS 12 device, it will trigger the runtime dyld error on startup.
262
+
You should notice that all the third party SwiftUI frameworks should have this build setting as well, not only just SDWebImageSwiftUI (we already added in v0.10.0). Or when running on iOS 12 device, it will trigger the runtime dyld error on startup.
263
263
264
264
+ Use CocoaPods or Carthage (SwiftPM does not support weak linking nor backward deployment currently)
265
265
266
266
For Carthage user, the built binary framework will use [Library Evolution](https://swift.org/blog/abi-stability-and-more/) to support for backward deployment.
267
267
268
-
For CocoaPods user, you should skip the platform validation in Podfile with
268
+
For CocoaPods user, you can skip the platform version validation in Podfile with:
269
269
270
270
```ruby
271
271
platform :ios, '13.0'# This does not effect your App Target's deployment target version, just a hint for CocoaPods
0 commit comments