To use this release of icu in your own swift project, add icu as a package dependency in your project's Package.swift
file.
Note
Adds a workaround for disabling the loading of the missing icudt76_dat
file which otherwise creates an error when building OpenUSD's Pegtl library on Windows, which for OpenUSD's case, I don't believe is an issue at the current time of writing.
// swift-tools-version: 5.10
dependencies: [
.package(url: "https://github.com/wabiverse/icu.git", from: "76.1.2"),
]
Then, for any target you'd like, add the icu product as a target dependency.
targets: [
.target(
name: "MyLibrary",
dependencies: [
/* add the icu product as a library dependency. */
.product(name: "icuin", package: "icu"),
]
),
]