[SOLVED] SPM artifact not found for target 'AAA' – Xcode 13.3 only

Issue

I have SDK that installed with SPM. It works as expected from Xcode 13.2 but on Xcode 13.3 I got this error.

import PackageDescription

let package = Package(
name: "AAA",
products: [
    .library(
        name: "AAA",
        targets: ["AAA"]),
],
dependencies: [
    
],
targets: [
    .binaryTarget(
                        name: "AAA",
                        path: "artifacts/BBB.xcframework"
                    ),
    .testTarget(
        name: "AAATests",
        dependencies: ["AAA"]),
]

error_image

Solution

This is new Xcode 13.3 thing.
The artifact name has to match the target name.

Answered By – Ori

Answer Checked By – Marie Seifert (BugsFixing Admin)

Leave a Reply

Your email address will not be published.