SPM binary target issue on Xcode 14

I'm getting this error while building a project on Xcode 14 beta 4: Binary target 'LibraryName' could not be mapped to an artifact with the expected name 'LibraryName'

The same project builds successfully on the previous Xcode versions.

Here is the package file content:

let package = Package(     name: "PackageName",     platforms: [.iOS(.v13],     products: [         .library(             name: "PackageName",             targets: ["PackageName", "LibraryName"]         )     ],     dependencies: [     ],     targets: [         .target(             name: "PackageName",             dependencies:                 .target(name: "LibraryName"),             ]]         ),         .binaryTarget(name: "LibraryName", path: "Sources/LibraryBinaries/LibraryName.xcframework") )

Did you ever manage to figure out a workaround for the above? I'm running into the exact same issue with some SPM packages on Beta 5

Deleting ~/Library/org.swift.swiftpm helped for us.

Worked for me too. Thanks!

SPM binary target issue on Xcode 14
 
 
Q