Skip to content

Commit 563cf22

Browse files
committed
version 77.1.0
1 parent 9c30a58 commit 563cf22

File tree

5 files changed

+16
-15
lines changed

5 files changed

+16
-15
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
types: [published]
55
push:
66
tags:
7-
- 76.**
7+
- 77.**
88
workflow_dispatch:
99
jobs:
1010
Build:

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
## ICU for iOS, watchOS, tvOS, visionOS, macOS, Catalyst, Simulators - Intel(x86_64) / Apple Silicon(arm64)
22

3-
Supported versions: 76.1
3+
Supported versions: 77.1
44

5-
This repo provides a universal script for building static ICU libraries for use in iOS, watchOS, tvOS, visionOS, and macOS applications. The actual ICU library version is taken from https://github.com/unicode-org/icu . The branches of the repository generally correspond to the branches of the ICU repository. E.g. "76" branch corresponds to "maint/maint-76" branch.
5+
This repo provides a universal script for building static ICU libraries for use in iOS, watchOS, tvOS, visionOS, and macOS applications. The actual ICU library version is taken from https://github.com/unicode-org/icu . The branches of the repository generally correspond to the branches of the ICU repository. E.g. "77" branch corresponds to "maint/maint-77" branch.
66

77
# Prerequisites
88
1) Xcode must be installed as xcodebuild is used to create xcframeworks
@@ -12,7 +12,7 @@ This repo provides a universal script for building static ICU libraries for use
1212
# Build Manually
1313
```
1414
# clone the repo
15-
git clone -b 76 https://github.com/apotocki/icu4c-iosx
15+
git clone -b 77 https://github.com/apotocki/icu4c-iosx
1616
1717
# build libraries
1818
cd icu4c-iosx
@@ -32,22 +32,23 @@ Here is a list of all possible values for '-p' option:
3232
macosx,macosx-arm64,macosx-x86_64,macosx-both,ios,iossim,iossim-arm64,iossim-x86_64,iossim-both,catalyst,catalyst-arm64,catalyst-x86_64,catalyst-both,xros,xrossim,xrossim-arm64,xrossim-x86_64,xrossim-both,tvos,tvossim,tvossim-both,tvossim-arm64,tvossim-x86_64,watchos,watchossim,watchossim-both,watchossim-arm64,watchossim-x86_64
3333
```
3434
Suffix '-both' means that xcframeworks will be built for both arm64 and x86_64 architectures.
35+
The platform names for macosx and simulators without an architecture suffix (e.g. macosx, iossim, tvossim) mean that xcframeworks are only built for the current host architecture.
3536

3637
# ICU Data Archive
3738
The build.sh script builds the following xcframeworks: icudata, icui18n, icuio, and icuuc.
3839
By default, 'icudata' is built with the --with-data-packaging=static option (see https://unicode-org.github.io/icu/userguide/icu_data/). So all the metadata (locales, tables, etc) is placed into icudata library making it quite large (~32MB). Since xcframework may contain libraries for multiple platforms and architectures this metadata is duplicated multiple times wasting space. Therefore, ICU allows to move the metadata to a separate platform-independent file that must be loaded during the library initialization. To activate this option you can specify -d=archive :
3940
```
4041
scripts/build.sh -p=ios,iossim-x86_64 -d=archive
4142
# builts xcframeworks for iOS and iOS Simulator with x86_64 architecture
42-
# datafile path is product/share/icu/76.1/icudt76l.dat
43+
# datafile path is product/share/icu/77.1/icudt77l.dat
4344
```
4445
In that case, during the ICU initialization procedure you have to specify ICU data directory before u_init() call:
4546

4647
```
4748
#include <unicode/putil.h>
4849
4950
... // somewhere in ICU initialization procedure before u_init call
50-
u_setDataDirectory("PATH TO THE DIRECTORY WHERE icudt76l.dat is located");
51+
u_setDataDirectory("PATH TO THE DIRECTORY WHERE icudt77l.dat is located");
5152
5253
u_init(code)
5354
...
@@ -72,10 +73,10 @@ scripts/build.sh -p=ios,iossim-x86_64 --rebuild
7273
Add the following lines into your project's Podfile:
7374
```
7475
use_frameworks!
75-
pod 'icu4c-iosx', '~> 76.1'
76+
pod 'icu4c-iosx', '~> 77.1'
7677
7778
# or optionally more precisely
78-
# pod 'icu4c-iosx', :git => 'https://github.com/apotocki/icu4c-iosx', :tag => '76.1.4'
79+
# pod 'icu4c-iosx', :git => 'https://github.com/apotocki/icu4c-iosx', :tag => '77.1.0'
7980
```
8081
install new dependency:
8182
```

demo/Podfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ install! 'cocoapods', :deterministic_uuids => false
66
target 'icu4c-demo (iOS)' do
77
use_frameworks!
88
pod 'icu4c-iosx'
9-
#pod 'icu4c-iosx', :git => 'https://github.com/apotocki/icu4c-iosx', :branch => '76'
9+
#pod 'icu4c-iosx', :git => 'https://github.com/apotocki/icu4c-iosx', :branch => '77'
1010
end
1111

1212
target 'icu4c-demo (macOS)' do
1313
use_frameworks!
1414
pod 'icu4c-iosx'
15-
#pod 'icu4c-iosx', :git => 'https://github.com/apotocki/icu4c-iosx', :branch => '76'
15+
#pod 'icu4c-iosx', :git => 'https://github.com/apotocki/icu4c-iosx', :branch => '77'
1616
end

icu4c-iosx.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "icu4c-iosx"
3-
s.version = "76.1.4"
3+
s.version = "77.1.0"
44
s.summary = "ICU XCFramework for macOS, iOS, watchOS, tvOS, and visionOS, including builds for Mac Catalyst, iOS Simulator, watchOS Simulator, tvOS Simulator, and visionOS Simulator."
55
s.homepage = "https://github.com/apotocki/icu4c-iosx"
66
s.license = "BSD"

scripts/build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44
THREAD_COUNT=$(sysctl hw.ncpu | awk '{print $2}')
55
HOST_ARC=$( uname -m )
66
XCODE_ROOT=$( xcode-select -print-path )
7-
ICU_VER=maint/maint-76
7+
ICU_VER=maint/maint-77
88
MACOSX_VERSION_ARM=12.3
99
MACOSX_VERSION_X86_64=10.13
1010
IOS_VERSION=13.4
@@ -134,10 +134,10 @@ if [[ ! -d icu ]]; then
134134
git clone --depth 1 -b $ICU_VER https://github.com/unicode-org/icu icu
135135
fi
136136

137-
#explicit 76.1
137+
#explicit 77.1
138138
pushd icu
139-
git fetch --depth=1 origin 8eca245c7484ac6cc179e3e5f7c1ea7680810f39
140-
git reset --hard 8eca245c7484ac6cc179e3e5f7c1ea7680810f39
139+
git fetch --depth=1 origin 457157a92aa053e632cc7fcfd0e12f8a943b2d11
140+
git reset --hard 457157a92aa053e632cc7fcfd0e12f8a943b2d11
141141
popd
142142

143143

0 commit comments

Comments
 (0)