Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-13579] Xcode12 minimum deployment target and SPM error #4498

Open
swift-ci opened this issue Sep 22, 2020 · 1 comment
Open

[SR-13579] Xcode12 minimum deployment target and SPM error #4498

swift-ci opened this issue Sep 22, 2020 · 1 comment
Labels

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-13579
Radar rdar://problem/69373130
Original Reporter hello_im_szymon (JIRA User)
Type Bug

Attachment: Download

Additional Detail from JIRA
Votes 2
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: b196685412c1ad6b814c75d72e7ed167

Issue Description:

Some libraries imported with SPM in Xcode12 have problems with minimum deployment target on iOS (and probably on other platforms). Xcode12 has bumped it to iOS 9, most libraries have it set up as iOS 8.
This results in a 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.

The bigger problem arises, when there's a library requiring iOS 8 that depends on a library that does not have any minimum deployment target set:
The package product 'iOSAnyPackage' requires minimum platform version 9.0 for the iOS platform, but this target supports 8.0

I can easily replicate this with a sample project with these local dependencies:
MyProject -> iOS8Package -> iOSAnyPackage

iOS8Package:

 let package = Package(
 name: "iOS8Package",
 platforms: [
 .iOS(.v8)
 ],
 (...)
 dependencies: [
 .package(path: "../iOSAnyPackage")
 ],
 targets: [
 depends on.
 .target(
 name: "iOS8Package",
 dependencies: ["iOSAnyPackage"]),
 (...)

iOSAnyPackage:

 let package = Package(
 name: "iOSAnyPackage",
 products: [
 .library(
 name: "iOSAnyPackage",
 targets: ["iOSAnyPackage"]),
 ],
 dependencies: [
 ],
 targets: [
 depends on.
 .target(
 name: "iOSAnyPackage",
 dependencies: []),
 .testTarget(
 name: "iOSAnyPackageTests",
 dependencies: ["iOSAnyPackage"]),
 ]

Examples from GitHub:
https://github.com/SDWebImage/SDWebImageWebPCoder - iOS 8, depends on https://github.com/SDWebImage/libwebp-Xcode that doesn't have any platform specified

A project reproducing this problem is attached

@typesanitizer
Copy link

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants