Could not find Package.swift in this directory or any of its parent directories.
It's very unclear from your question what you are trying to do, but I had the same error.
The problem for me was that I used the bitbucket pipeline template for swift, which (if I understand it correctly) builds a swift package. But in my project I wasn't building a package, but instead I'm building an app.
So instead of the template command I use something like:
xcodebuild test -project myProj.xcodeproj -scheme MyProj -destination 'platform=iOS Simulator,name=iPhone 13 Pro,OS=17.0.1' | xcpretty -s
I get this same error, and I don't use any packages... Even if I add some package in the swift package manager it will not add a `Package.swift` file...
Is there some requirement that the system under test must be a package or something?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Welcome to the Atlassian Community!
You will need to set up your build environment so that it includes the missing package. We can't tell you anything more than that, based on a snippet of error and no other information.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.