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

Why are local packages added using XcodeProj and local packages added through the Xcode GUI interface in different locations in the project? Do we need to distinguish between locally added and remotely added packages? #879

Open
zhangjiang1203 opened this issue Nov 8, 2024 · 0 comments

Comments

@zhangjiang1203
Copy link

Context 🕵️‍♀️

Provide information that helps with understanding your issue. For example your use case that the project doesn't cover, what you were doing when you found the bug... You can also provide the version of the library that you were using, how you integrated it with your project, the platform version...

Use the following two methods to add packages
`
//remote package
do{
let reference = try rootObject.addSwiftPackage(repositoryURL: package.url, productName: package.name, versionRequirement: .branch(""), targetName: "TestSwiftPackage")
print("success===(reference)")
} catch {
print("fail (package.name),error:(error.localizedDescription)")
}

// local package
do {
let reference = try rootObject.addLocalSwiftPackage(path:Path(package.url), productName: package.name, targetName: "TestSwiftPackage")
print("success===(reference)")
} catch {
print("fail (package.name),error:(error.localizedDescription)")
}

`
but remote package and local package in different localtion.
截屏2024-11-08 16 05 39

What 🌱

Describe here your issue, a bug you found, an idea that you had, something that you think can be improved...

Proposal 🎉

Attach your own proposal (if you have it). We'll discuss in on the issue to find the best one that fits into the library.

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

1 participant