xcodebuild XCFramework failed with XCBuildData/build.db": disk I/O error

I try to build XCFramework with Xcode14.0 using the same script I used in Xcode13.0.0 which works perfect.

I work on Mac-pro M1

I basically run

xcodebuild archive -scheme "${TARGET_NAME}" -destination 'generic/platform=iOS' SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES -archivePath "${SRCROOT}/build/Release-iphonesimulator"

The response I receive is:

** ARCHIVE SUCCEEDED **


error: error: accessing build database "*****/SDK-sources/build/XCBuildData/build.db": disk I/O error

I don't know if it makes a difference, my source files are in Objective-C.

xcodebuild XCFramework failed with XCBuildData/build.db": disk I/O error
 
 
Q