Skip to content

Commit

Permalink
Let SD can be imported using static library by CocoaPods
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongwuzw committed Dec 3, 2018
1 parent 2bdc51e commit 72a34cf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Expand Up @@ -110,7 +110,16 @@ platform :ios, '7.0'
pod 'SDWebImage', '~> 4.0'
```

If you are using Swift, be sure to add `use_frameworks!` and set your target to iOS 8+:
##### Swift

If you are using `Swift`, `Xcode 9+` and `CocoaPods` `1.5.0+`, you only need to set your target to `iOS 8+` if you need static library:

```
platform :ios, '8.0'
```

If not, you still need to add `use_frameworks!` to use dynamic framework:

```
platform :ios, '8.0'
use_frameworks!
Expand Down
1 change: 1 addition & 0 deletions SDWebImage.podspec
Expand Up @@ -23,6 +23,7 @@ Pod::Spec.new do |s|

s.requires_arc = true
s.framework = 'ImageIO'
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }

s.default_subspec = 'Core'

Expand Down

0 comments on commit 72a34cf

Please sign in to comment.