You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
## ICU for iOS, watchOS, tvOS, visionOS, macOS, Catalyst, Simulators - Intel(x86_64) / Apple Silicon(arm64)
2
2
3
-
Supported versions: 76.1
3
+
Supported versions: 77.1
4
4
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.
6
6
7
7
# Prerequisites
8
8
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
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.
35
36
36
37
# ICU Data Archive
37
38
The build.sh script builds the following xcframeworks: icudata, icui18n, icuio, and icuuc.
38
39
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 :
39
40
```
40
41
scripts/build.sh -p=ios,iossim-x86_64 -d=archive
41
42
# 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
43
44
```
44
45
In that case, during the ICU initialization procedure you have to specify ICU data directory before u_init() call:
45
46
46
47
```
47
48
#include <unicode/putil.h>
48
49
49
50
... // 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");
Copy file name to clipboardExpand all lines: icu4c-iosx.podspec
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
Pod::Spec.newdo |s|
2
2
s.name="icu4c-iosx"
3
-
s.version="76.1.4"
3
+
s.version="77.1.0"
4
4
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."
0 commit comments