Skip to content

ICU universal binary XCode framework generator for Mac, Catalyst, iOS, and iOS SImulator

License

Notifications You must be signed in to change notification settings

dbquarrel/icu4c-xcframework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

icu4c-xcframework

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.

Requirements

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.

What this makefile does

  1. clones a copy of ICU into the working directory
  2. builds ICU for the current machine
  3. iterates through mac-universal, catalyst-universal, ios, and ios-simulator universal components, configures ICU, and builds libraries for that component
  4. assembles the components into an xcframework

Usage

  1. Clone this repository.
  2. Enter your local directory in Terminal and type 'gmake', nothing more is needed.
  3. When the build is finished, Drag and drop ICU.xcframework into your Target > Frameworks, Libraries and Embedded Content.
  4. 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

See also:

ICU project: https://unicode-org.github.io/icu/

Original inspirations for this framework:

https://github.com/zhm/icu-ios

https://github.com/sunkehappy/icu-ios

About

ICU universal binary XCode framework generator for Mac, Catalyst, iOS, and iOS SImulator

Resources

License

Stars

Watchers

Forks

Packages

No packages published