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

Minimum platform for iOS missing in Package.swift -> Does not compile #4

Open
GerdC opened this issue Jun 12, 2021 · 0 comments
Open

Comments

@GerdC
Copy link

GerdC commented Jun 12, 2021

I'm Switching from Cocoapods to Swift Package Manager in an iOS project.

I get many compiler errors similar to
'converted(to:)' is only available in iOS 10.0 or newer

The cause appears to be that Package.swift declares requirements for MacOS but not for iOS:

platforms: [ .macOS(.v10_12) ],

What is missing is something like

.iOS("10.0"),

PodSpec has the correct platform requirements:
s.ios.deployment_target = '10.0'
s.osx.deployment_target = '10.12'
s.swift_version = '5.0'

@GerdC GerdC changed the title Minimum target for iOS missing in Package.swift -> Does not compile Minimum platform for iOS missing in Package.swift -> Does not compile Jun 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant