I’ve a Swift package deal like:
// swift-tools-version: 5.10
// The swift-tools-version declares the minimal model of Swift required to construct this package deal.
import PackageDescription
let package deal = Bundle(
identify: "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(identify: "ICU",
path: "./ICU.xcframework"),
// Take a look at goal
.testTarget(identify: "nmbrTests", dependencies: ["nmbr-icu"])
],
cxxLanguageStandard: .cxx20
)
The challenge construction appears like:
Once I open this package deal (in Xcode – by double-clicking the Bundle.swift
file) I can construct (CMD+B) and take a look at (CMD+U). Nevertheless, operating swift construct
returns an error saying that one of many header information in my xcframework can’t be discovered:
NMBRFormatter.mm:11:10: deadly error: 'unicode/unistr.h' file not discovered
#embody <unicode/unistr.h>
What am I lacking? The repo is open supply right here: https://github.com/kerrmarin/nmbr-icu