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

Target version too low for ZipArchive #4

Open
ctgreybeard opened this issue Jul 20, 2022 · 7 comments
Open

Target version too low for ZipArchive #4

ctgreybeard opened this issue Jul 20, 2022 · 7 comments

Comments

@ctgreybeard
Copy link

Received the error:

error build: The package product 'ZipArchive' requires minimum platform version 15.5 for the iOS platform, but this target supports 11.0

I added SwiftXLSX to my XCode project using the built-in Swift Package Manager. In the package.swift for SwiftXLSX there is:

    name: "SwiftXLSX",
    platforms: [
        .iOS(.v10),
        .macOS(.v11),
    ],

But in ZipArchive is:

    name: "ZipArchive",
    platforms: [
        .iOS("15.5"),
        .tvOS("15.4"),
        .macOS(.v10_15),
        .watchOS("8.4"),
    ],

Before I fork and update SwiftXLSX I thought I would check to see if anyone else has solved this issue. I am unable (XCode won't let me) to change the package.swift for SwiftXLSX.

@xinix909
Copy link

+1

1 similar comment
@Fondu
Copy link

Fondu commented Sep 29, 2022

+1

@Fondu
Copy link

Fondu commented Oct 10, 2022 via email

@mdsahilak
Copy link

+1

@jearle1974
Copy link

jearle1974 commented Mar 9, 2023

This looks like a great package but I cannot run as I just get this error. I tried editing the package file to 15.5 as @Fondu suggested but the package failed to load. I did manage to get working by editing both package files and set both to 15. Please fix as this is a great package.

@david-palafox
Copy link

It very much works. I know because I actually use it and I'm able to generate a dynamic xlsx file with two sheets. It does, however, have some other issues on top of the dependencies. It's a good proof of concept which I assume can be improved manually by creating the packages locally with whatever fixes it needs, but I haven't had the time to dig in. If you need some help getting it to at least work, send me a message.

@olibar27
Copy link

olibar27 commented Mar 28, 2023

Hi there,
I am receiving the same error.
Was anyone who had the error able to solve it?

name: "SwiftXLSX",
platforms: [
    .iOS(.v10),
    .macOS(.v11),
],

Maybe simply adjust these lines in the package.swift file?

Any help appreciated!
Thank you in advance.

EDIT: I simply wrote a different version into both package.swift files (SwiftXLSX and ziparchive)
Problem Solved!

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

7 participants