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

Add support for Swift Package Manager #159

Closed
sindresorhus opened this issue Apr 23, 2024 · 2 comments · Fixed by #169
Closed

Add support for Swift Package Manager #159

sindresorhus opened this issue Apr 23, 2024 · 2 comments · Fixed by #169

Comments

@sindresorhus
Copy link

This would make it much easier to use the package in Swift projects like iOS or macOS apps.

Could do something similar to what's done in Whisper.cpp: https://github.com/ggerganov/whisper.cpp/blob/master/Package.swift

@PABannier
Copy link
Owner

Hi @sindresorhus ! I just merged #169 which adds an example on SwiftUI. I'll have a look at your issues #157 and #158 later today ;)

@sindresorhus
Copy link
Author

@PABannier Thank you 👍

However, the Package.swift is not working. The example project is not actually testing Package.swift because it uses a lot of symlinks instead. The correct way to use a local Swift package is to simply drag the folder of the package (the top-level "bark.cpp" folder) into the sidebar of Xcode (under "bark.swiftui). Then it should show up as a package there. Then delete the symlinks. I would have done a PR, but it fails to build after that, and I'm not familiar enough with a C++ project to fix it...

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

Successfully merging a pull request may close this issue.

2 participants