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

Error with unsafe build flags #4

Closed
chidiwilliams opened this issue Jan 29, 2023 · 4 comments
Closed

Error with unsafe build flags #4

chidiwilliams opened this issue Jan 29, 2023 · 4 comments

Comments

@chidiwilliams
Copy link

chidiwilliams commented Jan 29, 2023

I'm not sure what I'm doing wrong, but I keep running into this error with the unsafe flags in the build:

The package product 'whisper' cannot be used as a dependency of this target because it uses unsafe build flags.

Does any one know how I can work around this? I have tried importing the package using the commit hash and branch, but still no luck.

Xcode version 14

@finnvoor
Copy link

That error only happens when importing using a tag. Importing by branch or commit hash both work fine, if you are still getting the error I would suggest resolving package dependencies / clear packages / close and reopen Xcode.

@chidiwilliams
Copy link
Author

You're correct, thanks. Clearing packages and restarting Xcode didn't work, but creating a new project did.

@bdrelling
Copy link

I'm getting this issue as well:

xcodebuild: error: Could not resolve package dependencies:
  the target 'whisper' in product 'whisper' contains unsafe build flags

It's directly related to the resolution around PR #1 in this repo.

@ggerganov Given that tags won't work for this repo, I think we may need to find another solution? For now, we'll pin to the commit.

pannous added a commit to pannous/whisper.spm that referenced this issue May 2, 2023
Added segment:

⚠️ Important: Set Dependency Rule to 'branch' -> 'master' otherwise you get an [Error with unsafe build flags](ggerganov#4)
@pannous pannous mentioned this issue May 2, 2023
@Kshitij876
Copy link

Screenshot 2024-06-04 at 12 02 00 PM

Getting this same error even after setting the dependency to branch -> master . Tried the resolving package dependencies / clear packages / close and reopen Xcode as well. still getting the "The package product 'whisper' cannot be used as a dependency of this target because it uses unsafe build flags.
" error when installing the whisper package

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

4 participants