Skip to content
Discussion options

You must be logged in to vote

ok, so at the end the problem was in our setup.

The submodule folder with the dependencies was under <OurTarget>/Vendor.

xcodebuild says “Cannot open “share” as a “Swift Package Dependency” because it is already open as a “Folder”.”

when resolving the command

xcodebuild -resolvePackageDependencies -project OurProject.xcodeproj -scheme Dev 2>&1 | grep "already open as a"

so moving the Vendor folder with the plugins one level up was enough to fix this.

Curiously enough just running xcodebuild -resolvePackageDependencies we could see this error message, that was not available when seeing the package resolution inside Xcode itself

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fespinoza
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant