ICU for iOS 和 Mac OS X (Intel & Apple Silicon M1) & Catalyst - arm64 / x86_64
支持版本:73.1
此仓库提供了一个用于在 iOS 和 Mac OS X 应用程序中使用静态 ICU 库的通用脚本。仓库包含 "icu" 子模块,它来自 https://github.com/unicode-org/icu。仓库分支对应于 ICU 仓库的适当分支。例如,"73" 分支对应于 "maint/maint-73" 分支。
先决条件
- 必须安装 Xcode,因为 xcodebuild 用于创建 xcframeworks
xcode-select -p
必须指向 Xcode 应用程序的开发者目录(例如,默认情况下为 /Applications/Xcode.app/Contents/Developer)。如果它指向 CommandLineTools 目录,则应执行:sudo xcode-select --reset
或sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
如何构建?
- 手动
# clone the repo
git clone -b 73 --recursive https://github.com/apotocki/icu4c-iosx
git clone --recursive https://github.com/apotocki/icu4c-iosx
# build libraries
cd icu4c-iosx
scripts/build.sh
# have fun, the result artifacts will be located in 'product' folder.
- 使用 Cocoapods。将以下行添加到您的项目 Podfile 中:
use_frameworks!
pod 'icu4c-iosx', '~> 73.1'
# or optionally more precisely
# pod 'icu4c-iosx', :git => 'https://github.com/apotocki/icu4c-iosx', :tag => '73.1.0', :submodules => 'true'
安装新的依赖项
pod install --verbose
作为一个广告...
此项目构建的 ICU 库用于我的 App Store 上的 iOS 应用
PotoHEX 十六进制文件查看器与编辑器 | |
此应用程序专为以字节或字符级别查看和编辑文件而设计。
您可以尝试 此应用来支持我的开源开发。
欢迎提出反馈!