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

"is only available is iOS 16 or newer" #15

Open
Jonovono opened this issue Feb 22, 2024 · 4 comments
Open

"is only available is iOS 16 or newer" #15

Jonovono opened this issue Feb 22, 2024 · 4 comments

Comments

@Jonovono
Copy link

I am trying to use pkl swift in my ios project. Here are my steps.

  1. Project -> package dependencies -> add
  2. Add: "https://github.com/apple/pkl-swift.git"
  3. MessagePack -> None, PklSwift -> Added to target, pkl-gen-swift -> None
  4. Build to simulator or device
  5. I get errors: "checkouts/pkl-swift/Sources/PklSwift/API/Duration.swift:65:44 'Duration' is only available in iOS 16.0 or newer"
  6. My minimum deployment is set to 17.

Any ideas? Can you use this on iOS?

@Jonovono
Copy link
Author

Ah, I see it's only available on mac:

let package = Package(
    name: "pkl-swift",
    platforms: [
        // required because of `Duration` API
        .macOS(.v13)
    ],

Will this ever be available for ios?

@stackoverflow
Copy link
Contributor

Some libraries we use are not yet fully supported on iOS, but we do want to add iOS support for pkl-swift.

@Jonovono
Copy link
Author

Very cool, thanks @stackoverflow. Will be monitoring the project :)

@arkavo-com
Copy link

Any update?

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

3 participants