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-13220] Compiling for iOS 8.0, but module <dependency> has a minimum deployment target of iOS 13.5 #4524

Closed
swift-ci opened this issue Jul 14, 2020 · 2 comments
Labels

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-13220
Radar None
Original Reporter JonasVautherin (JIRA User)
Type Bug
Environment

macOS 10.15.5

Xcode 11.5 (11E608c)

swift 5.2.4

SPM 5.2.0

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

md5: d583c0bc9d117d9eafb1524a0a258969

Issue Description:

For the record, this comes from here: grpc/grpc-swift#887

It seems like `swift package generate-xcodeproj` sometimes wrongly guesses that a dependency requires iOS 13.5.

Here are detailed steps to reproduce with SwiftProtobuf:

1. Create a new project with `swift package init`.
2. In `dependencies`, add `.package(name: "SwiftProtobuf", url: "https://github.com/apple/swift-protobuf.git", from: "1.9.0"),
3. In `targets: (dependencies`, add `SwiftProtobuf`)
4. Run `swift package generate-xcodeproj`
5. Run `open <project-name>.xcodeproj` to open with Xcode
6. In the (only) source file "<project>.swift", add the line: `import SwiftProtobuf`
7. Try to build for "iPhone 11".

You should see the following error:

> Compiling for iOS 8.0, but module 'SwiftProtobuf' has a minimum deployment target of iOS 13.5: /path/to/x86_64-apple-ios-simulator.swiftmodule

But SwiftProtobuf does not require iOS 13.5.

@swift-ci
Copy link
Contributor Author

Comment by Jonas Vautherin (JIRA)

It is the first time I report a bug in SPM. Did I provide enough information to reproduce it and possibly acknowledge it?

@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
@ikesyo
Copy link
Collaborator

ikesyo commented Mar 25, 2024

generate-xcodeproj command doesn't exist anymore. Closing.

@ikesyo ikesyo closed this as not planned Won't fix, can't repro, duplicate, stale Mar 25, 2024
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