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

SPM: adding package to another package #3

Open
triple7 opened this issue Jan 26, 2023 · 6 comments
Open

SPM: adding package to another package #3

triple7 opened this issue Jan 26, 2023 · 6 comments

Comments

@triple7
Copy link

triple7 commented Jan 26, 2023

Hey, first off great repo man. Was about to write a swift wrapper then I saw your spam :)

Just having an issue with below message:
product 'whisper.spm' required by package 'swiftwhisper' target 'SwiftWhisperTests' not found in package 'whisper.spm'.

The line where it's hanging is:
.testTarget(
name: "SwiftWhisperTests",
dependencies: ["SwiftWhisper", .product(name: "whisper.spm", package: "whisper.spm")]),
]

I tried whisper.cpp as package or product but that doesn't work. Is there another name to be included? as the normal target dependency works.

@finnvoor
Copy link

Replacing dependencies with [.product(name: "whisper", package: "whisper.spm")] should fix it. You can then import whisper to use.

@triple7
Copy link
Author

triple7 commented Jan 27, 2023 via email

@finnvoor
Copy link

This package is just a wrapper around the whisper.cpp files/headers. It seems like you are following the whisper.cpp whisper.swiftui.demo app, which defines WhisperContext here. You should be able to get it working by just copying over that file.

@triple7
Copy link
Author

triple7 commented Jan 27, 2023 via email

@chidiwilliams
Copy link

@triple7, @finnvoor, did either of you run into a similar issue importing this project to Xcode? #4

@triple7
Copy link
Author

triple7 commented Apr 14, 2023 via email

iandundas pushed a commit to jordibruin/Whisper that referenced this issue Apr 26, 2023
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