Xcode SPM Issues

We tried to build with Xcode 14 and quickly ran into SPM issues, we have one binary submodule for a framework. Has something changed in how package location are described? Can't seem to find it as a legit framework. Can "cd" and inspect, everything appears to be in place.

Showing Recent Errors Only

local binary target 'Service.iOS' does not contain expected binary artifact named 'Service.iOS'

Works without issues in Xcode 13.4.1 and can switch between the versions.

Any ideas?

What is the binary file named?

In Package.swift

.target(

            name: "ServiceModule",

            dependencies: ["Service.iOS"],

            path: "ServiceModule"

        ) $ file Service.iOS  Service.iOS: Mach-O 64-bit dynamically linked shared library arm64

As I stated, switch back to Xcode 13.4.1 and it builds without issues, what kind of binary artifact could it be expecting?

Binary targets need to be declared as .binaryTarget, and need to be packaged as an XCFramework.

Further, the names of everything must be consistent, and it's not clear from this example if that's true. As stated in the referenced article:

Ensure that the name of the binary target in the package manifest matches the artifact’s module name.

Yes, at the bottom of Package.swift, does order matter?

.binaryTarget(name: "Service.iOS", path: "Frameworks/Service/Service.iOS.xcframework")

Xcode SPM Issues
 
 
Q