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

The package product cannot be used as a dependency of this target because it uses unsafe build flags #12

Closed
1234igor opened this issue Jan 20, 2024 · 7 comments

Comments

@1234igor
Copy link

I am getting this error in Xcode when trying to build the newly created project with this package imported:

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

It doesn't work even when I'm importing the package locally and commenting out all the .unsafeFlags lines in the Package.swift

I also tried the approach suggested here with importing a specific commit, but it didn't help

How do you add this package to the Xcode project?

Sorry, I'm not proficient with packages 🙂

@guoyingtao
Copy link

I have the same issue.

@guoyingtao
Copy link

I solved this issue by using Commit for SPF
image

but I saw a compile issue as below

image

@guinmoon
Copy link
Owner

Hi. This is problem with Xcode 15.

@guoyingtao
Copy link

@guinmoon
Thank you! New Xcode solved the issue.

@buhe
Copy link

buhe commented Jan 27, 2024

Although using Commit for SPF , the library is considered an unstable-version package after relying on commit

@small-cactus
Copy link

Xcode 15.3, still have the issue.

@rakeshtwinciti
Copy link

Xcode 15.4, still have the issue.

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

6 participants