Static universal build of ICU compatible with the simulator, armv7, armv7s, and arm64
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
icu Use the .tgz archive contents. Dec 8, 2014
.gitignore Update .gitignore file. Dec 8, 2014
README.md
build.sh New architecture : x86 64bits Nov 7, 2014
configure_arm64.sh
configure_armv7.sh Replaced minimum iOS version with 7.0; Nov 6, 2014
configure_armv7s.sh
configure_i386.sh
configure_x86_64.sh Changes iphoneos-version-min options from 5.0 to 7.0 in configure_x86… Dec 4, 2014
make_universal.sh New architecture : x86 64bits Nov 7, 2014

README.md

ICU for iOS - armv7 / armv7s / arm64 / i386 / x86 64

This is a static universal build of ICU 54.1 for armv7, armv7s, arm64, x86_64 and i386 suitable for using in iOS apps. The icu directory is taken from here.

Setting it up

I recommend putting this repo under a Vendor directory inside your project folder so it remains portable.

$ git submodule add git@github.com:zhm/icu-ios.git YourAppName/Vendor/icu-ios

Compiling the static library

$ cd YourAppName/Vendor/icu-ios
$ ./build.sh

Adding it to your project

Add all of the .a files from the build-universal directory to your project from the Link Binary With Libraries section under the Build Phases tab in Xcode.

Under the Build Settings tab, add the path to the header files. Here are the header paths if you've placed this project inside a Vendor folder in your project:

$(SRCROOT)/YourAppName/Vendor/icu-ios/icu/source/i18n
$(SRCROOT)/YourAppName/Vendor/icu-ios/icu/source/common