Sdwebimage: Xcode 12 SPM `IPHONEOS_DEPLOYMENT_TARGET` warning

Created on 16 Sep 2020  路  4Comments  路  Source: SDWebImage/SDWebImage

New Issue Checklist

Issue Info

Info | Value |
-------------------------|-------------------------------------|
Platform Name | ios
Platform Version | 14
SDWebImage Version | 5.9.1
Integration Method | SPM
Xcode Version | Xcode 12
Repro rate | all the time (100%)

Issue Description and Steps

Using SDWebImage in SPM on Xcode 12 GM produces this warning:

The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99.

According to this thread the problem is that this line is overriding Xcode settings forcing IPHONEOS_DEPLOYMENT_TARGET to an unsupported SDK version by Xcode 12.

The solution on the thread was remove the platforms section, because they support all platforms/versions this might be also applicable here.

important swiftpm

Most helpful comment

Designed behavior. SDWebImage 5.x version still need to support iOS 8+.

If we remove that platform limit, this will cause error, not warning. Because if one Sub-dependency, for example, SDWebImageWebPCoder. Use another iOS 8+ platform, that will cause an dependency check fail (low deployment target should not dependent high deployment target). This is an recursive issue.

See more: https://github.com/SDWebImage/SDWebImageWebPCoder/pull/43

For iOS 9+ min deployment target version, we will schedule to release SDWebImage 6.0.

All 4 comments

Designed behavior. SDWebImage 5.x version still need to support iOS 8+.

If we remove that platform limit, this will cause error, not warning. Because if one Sub-dependency, for example, SDWebImageWebPCoder. Use another iOS 8+ platform, that will cause an dependency check fail (low deployment target should not dependent high deployment target). This is an recursive issue.

See more: https://github.com/SDWebImage/SDWebImageWebPCoder/pull/43

For iOS 9+ min deployment target version, we will schedule to release SDWebImage 6.0.

Thanks!

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, please make sure it is up to date and if so, add a comment that this is still an issue to keep it open. Thank you for your contributions.

This issue will be addressed in version 6, so I think it shouldn't be closed by stale bot yet.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Binusz picture Binusz  路  4Comments

SamboVisal picture SamboVisal  路  6Comments

floprr picture floprr  路  4Comments

cyanzhong picture cyanzhong  路  5Comments

onato picture onato  路  3Comments