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
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.
The text was updated successfully, but these errors were encountered:
Environment
macOS 10.15.5
Xcode 11.5 (11E608c)
swift 5.2.4
SPM 5.2.0
Additional Detail from JIRA
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.
The text was updated successfully, but these errors were encountered: