EFPrefix / EFQRCode

A better way to operate QR Code in Swift, support iOS, macOS, watchOS and tvOS.

Home Page:https://efprefix.github.io/EFQRCode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot compile in Xcode 12 as Swift Package Manager dependency

skjiisa opened this issue · comments

Check List

Thanks for considering to open an issue. Before you submit your issue, please confirm these boxes are checked.

  • I have read the README.md, but there is no information I need.
  • I have searched in existing issues, but did find a same one.

Issue Description

Description

If this package is added as a dependency to a project in Xcode 12, you get the warning:

The iOS 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.

and the error:

The package product 'swift_qrcodejs' requires minimum platform version 9.0 for the iOS platform, but this target supports 8.0

This latter one looks like an issue with swift_qrcodejs, but adding just that to a project doesn't cause any warning or errors, so it appears to be an issue with EFQRCode.

Reproduce

Adding this through Xcode 12's "Add Package Dependency..." button to any project will create the errors specified above and the project will not compile.

Adding just swift_qrcodejs as a dependency to a project does not cause any issues.

@isvvc could you please verify that spm-xc12 branch fixes this issue?

Yes, that did work!