ios – Swift bundle constructing in Xcode however not command line


I’ve a Swift bundle like:

// swift-tools-version: 5.10
// The swift-tools-version declares the minimal model of Swift required to construct this bundle.

import PackageDescription

let bundle = Package deal(
    title: "nmbr-icu",
    merchandise: [
        .library(name: "nmbr-icu", targets: ["nmbr-icu"])
    targets: [
        // Main NMBR target, contains 1 ObjC++ file (h + mm)
        .target(name: "nmbr-icu",
                dependencies: ["ICU"]),
        // Goal to construct the ICU framework, an xcframework for the ICU C++ code
        .binaryTarget(title: "ICU",
                      path: "./ICU.xcframework"),
        // Take a look at goal
        .testTarget(title: "nmbrTests", dependencies: ["nmbr-icu"])
    cxxLanguageStandard: .cxx20

The challenge construction appears like:

enter image description here

Once I open this bundle (in Xcode – by double-clicking the Package deal.swift file) I can construct (CMD+B) and check (CMD+U). Nevertheless, working swift construct returns an error saying that one of many header recordsdata in my xcframework can’t be discovered: deadly error: 'unicode/unistr.h' file not discovered
#embrace <unicode/unistr.h>

What am I lacking? The repo is open supply right here: