My team uses a script for generating and parsing code coverage for an Xcode project locally which utilizes the CI command xcodebuild
. Ever since updating to Xcode 14 we have been unable to successfully resolve the package graph to build the project. I have noticed that this will only happen when the -derivedDataPath
flag is set, however we use that to easily fetch the coverage file generated when running xcodebuild
.
The error we are seeing is this:
an out-of-date resolved file was detected at .../Package.resolved, which is not allowed when automatic dependency resolution is disabled; please make sure to update the file to reflect the changes in dependencies. Running resolver because the following dependencies were added:
The list of dependencies that xcodebuild
claims are "added" changes after every run. I have no problem resolving the dependencies while using Xcode, or if I simply forgo using a custom build path with -derivedDataPath
.
The xcodebuild command is as follows:
xcodebuild -project {Our xcodeproj file path } -scheme {Our scheme} -destination "platform=iOS Simulator,name=iPad Pro (11-inch) (3rd generation)" -derivedDataPath Build/ -disableAutomaticPackageResolution -skipPackageUpdates -onlyUsePackageVersionsFromResolvedFile -scmProvider xcode -enableCodeCoverage YES clean build test
Any ideas why we might be seeing this behavior? Like I said, this script was functioning prior to Xcode 14 so there must be something in the update that is responsible so any help would be appreciated!
Thanks!