[GH-ISSUE #369] Add SPM Support #292

Closed
opened 2026-05-05 12:06:40 -06:00 by gitea-mirror · 8 comments
Owner

Originally created by @mariohahn on GitHub (Apr 25, 2022).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/369

Originally assigned to: @jmcnamara on GitHub.

In addition to Cocopods it would be great to also support Swift Package Manager.

Thx for the lib. 🎸

https://github.com/jmcnamara/libxlsxwriter/issues/325

Originally created by @mariohahn on GitHub (Apr 25, 2022). Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/369 Originally assigned to: @jmcnamara on GitHub. In addition to Cocopods it would be great to also support Swift Package Manager. Thx for the lib. 🎸 https://github.com/jmcnamara/libxlsxwriter/issues/325
gitea-mirror 2026-05-05 12:06:40 -06:00
Author
Owner

@jmcnamara commented on GitHub (Apr 25, 2022):

There is already a Swift package for libxlsxwriter: https://swiftpackageregistry.com/damuellen/xlsxwriter.swift

<!-- gh-comment-id:1108883574 --> @jmcnamara commented on GitHub (Apr 25, 2022): There is already a Swift package for libxlsxwriter: https://swiftpackageregistry.com/damuellen/xlsxwriter.swift
Author
Owner

@jmcnamara commented on GitHub (Apr 28, 2022):

@mariohahn Is the linked package sufficient. Can this request be closed?

<!-- gh-comment-id:1111792325 --> @jmcnamara commented on GitHub (Apr 28, 2022): @mariohahn Is the linked package sufficient. Can this request be closed?
Author
Owner

@jmcnamara commented on GitHub (Apr 29, 2022):

Closing.

<!-- gh-comment-id:1113027516 --> @jmcnamara commented on GitHub (Apr 29, 2022): Closing.
Author
Owner

@willm132 commented on GitHub (May 12, 2022):

There is already a Swift package for libxlsxwriter: https://swiftpackageregistry.com/damuellen/xlsxwriter.swift

This does not work or compile so that is not sufficient

<!-- gh-comment-id:1124965771 --> @willm132 commented on GitHub (May 12, 2022): > There is already a Swift package for libxlsxwriter: https://swiftpackageregistry.com/damuellen/xlsxwriter.swift This does not work or compile so that is not sufficient
Author
Owner

@jmcnamara commented on GitHub (May 12, 2022):

@willm132 You need to take that up with the Swift Package maintainer. There isn't anything I can do about it.

<!-- gh-comment-id:1125481362 --> @jmcnamara commented on GitHub (May 12, 2022): @willm132 You need to take that up with the Swift Package maintainer. There isn't anything I can do about it.
Author
Owner

@orchetect commented on GitHub (May 28, 2024):

Just FYI: the release tags for the repo are not compatible with SPM. Which greatly limits the ability to use the library as a Swift package. SPM looks for SemVer tags (ie: "1.1.7"), so it won't understand "RELEASE_1.1.7"

This is causing showstopping issues in an open-source project I'm working on. The only current solution is to fork the repo and re-tag which is not really sustainable.

If the library is used as a dependency in an app then it may be possible to just use main branch or a specific tag. But It cannot be used as a dependency within another Swift package because Xcode will not compile, citing an unstable dependency.

The easiest resolution would be to tag the repo as SemVer instead of "RELEASE_x.x.x". If that's not viable, then tagging the repo twice would work fine, one tag as SemVer and the other as "RELEASE_x.x.x".

<!-- gh-comment-id:2136214276 --> @orchetect commented on GitHub (May 28, 2024): Just FYI: the release tags for the repo are not compatible with SPM. Which greatly limits the ability to use the library as a Swift package. SPM looks for SemVer tags (ie: "1.1.7"), so it won't understand "RELEASE_1.1.7" This is causing showstopping issues in an open-source project I'm working on. The only current solution is to fork the repo and re-tag which is not really sustainable. If the library is used as a dependency in an app then it may be possible to just use main branch or a specific tag. But It cannot be used as a dependency within another Swift package because Xcode will not compile, citing an unstable dependency. The easiest resolution would be to tag the repo as SemVer instead of "RELEASE_x.x.x". If that's not viable, then tagging the repo twice would work fine, one tag as SemVer and the other as "RELEASE_x.x.x".
Author
Owner

@jmcnamara commented on GitHub (May 29, 2024):

SPM looks for SemVer tags (ie: "1.1.7"), so it won't understand "RELEASE_1.1.7"

Does it have to be "1.1.7" or can it be "v1.1.7".

<!-- gh-comment-id:2136325377 --> @jmcnamara commented on GitHub (May 29, 2024): > SPM looks for SemVer tags (ie: "1.1.7"), so it won't understand "RELEASE_1.1.7" Does it have to be "1.1.7" or can it be "v1.1.7".
Author
Owner

@orchetect commented on GitHub (May 29, 2024):

Does it have to be "1.1.7" or can it be "v1.1.7".

Ideally "1.1.7", but "v1.1.7" is also recognized.

<!-- gh-comment-id:2136338098 --> @orchetect commented on GitHub (May 29, 2024): > Does it have to be "1.1.7" or can it be "v1.1.7". Ideally "1.1.7", but "v1.1.7" is also recognized.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/libxlsxwriter#292
No description provided.