Universal binary macOS, iOS, iOS Simulator, and mac Catalyst xcode framework constructor for the ICU libraries.
This will create an xcframework for the ICU project, containing universal builds for Mac, Catalyst, iOS and the iOS simulator on Intel x86 and ARM64 (ARM / Apple Silicon A and M series) architectures. Apple's version of ICU is not complete and using this framework will allow you to use the ICU tokenizer in sqlite on iOS.
gmake, ginstall, you can install these with homebrew if you don't have them. Apple's make is gmake just an ancient version, so this may build without having to install these tools, but I haven't tried. If you need to, first install homebrew by following the link, then:
brew install make
brew install coreutils
Apple's git doesn't come with git-lfs by default, and if you receive a complaint from git about this, you can install git-lfs via homebrew as well.
brew install git-lfs
And execute the suggested commands on installation.
- clones a copy of ICU into the working directory
- builds ICU for the current machine
- iterates through mac-universal, catalyst-universal, ios, and ios-simulator universal components, configures ICU, and builds libraries for that component
- assembles the components into an xcframework
- Clone this repository.
- Enter your local directory in Terminal and type 'gmake', nothing more is needed.
- When the build is finished, Drag and drop ICU.xcframework into your Target > Frameworks, Libraries and Embedded Content.
- Build your project as normal in Xcode
....
to clean up the build components but leave the icu source and the host build:
gmake clean
-or- to clean up everything except the makefile and the ICU.xcframework
gmake deepclean
ICU project: https://unicode-org.github.io/icu/
Original inspirations for this framework: