Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/apotocki/icu4c-iosx
Builds ICU static libraries and packages them as XCFrameworks for iOS (simulator and device), visionOS (simulator and device), macOS, and Mac Catalyst (Intel & Apple Silicon M1).
https://github.com/apotocki/icu4c-iosx
icu4c ios ios-simulator mac-catalyst macosx visionos visionos-simulator xcframework
Last synced: 3 months ago
JSON representation
Builds ICU static libraries and packages them as XCFrameworks for iOS (simulator and device), visionOS (simulator and device), macOS, and Mac Catalyst (Intel & Apple Silicon M1).
- Host: GitHub
- URL: https://github.com/apotocki/icu4c-iosx
- Owner: apotocki
- License: other
- Created: 2020-12-25T16:52:41.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-03T21:25:27.000Z (8 months ago)
- Last Synced: 2024-05-03T23:33:53.439Z (8 months ago)
- Topics: icu4c, ios, ios-simulator, mac-catalyst, macosx, visionos, visionos-simulator, xcframework
- Language: Shell
- Homepage:
- Size: 89.8 KB
- Stars: 35
- Watchers: 5
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
## ICU for iOS, visionOS, macOS (Intel & Apple Silicon M1) & Catalyst - arm64 / x86_64
Supported versions: 75.1, 74.2, 74.1, 73.2, 73.1, 72.1, 71.1, 70.1, 69.1, 68.2, 62.2
This repo provides a universal script for building static ICU libraries for use in iOS, visionOS, and macOS applications. The repo contains "icu" submodule that is taken from https://github.com/unicode-org/icu . The repo branches correspond to the suitable branches of ICU repo. E.g. "75" branch corresponds to "maint/maint-75" branch.
## Prerequisites
1) Xcode must be installed because xcodebuild is used to create xcframeworks
2) ```xcode-select -p``` must point to Xcode app developer directory (by default e.g. /Applications/Xcode.app/Contents/Developer). If it points to CommandLineTools directory you should execute:
```sudo xcode-select --reset``` or ```sudo xcode-select -s /Applications/Xcode.app/Contents/Developer```
## How to build?
- Manually
```
# clone the repo
git clone --recursive https://github.com/apotocki/icu4c-iosx
# build libraries
cd icu4c-iosx
scripts/build.sh# have fun, the result artifacts will be located in 'product' folder.
```
- Use cocoapods. Add the following lines into your project's Podfile:
```
use_frameworks!pod 'icu4c-iosx'
# or optionally more precisely
# pod 'icu4c-iosx', :git => 'https://github.com/apotocki/icu4c-iosx', :submodules => 'true'
```
install new dependency:
```
pod install --verbose
```## As advertising...
The ICU libraries that have been built by this project are being used in my iOS application on the App Store:[PotoHEX
HEX File Viewer & Editor]()This application is designed to view and edit files at the byte or character level; calculate different hashes, encode/decode, and compress/decompress desired byte regions.
You can support my open-source development by trying the [App](https://apps.apple.com/us/app/potohex/id1620963302).Feedback is welcome!