https://github.com/networm/unityxcodecache
Simply setup cache for Unity generated Xcode project to speed up build times.
https://github.com/networm/unityxcodecache
Last synced: about 1 year ago
JSON representation
Simply setup cache for Unity generated Xcode project to speed up build times.
- Host: GitHub
- URL: https://github.com/networm/unityxcodecache
- Owner: networm
- License: mit
- Created: 2018-09-13T00:57:50.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-13T00:58:13.000Z (almost 8 years ago)
- Last Synced: 2025-04-12T06:13:15.717Z (about 1 year ago)
- Language: C#
- Homepage: https://networm.me/2018/09/16/unity-xcode-cache/
- Size: 4.88 KB
- Stars: 37
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UnityXcodeCache
Simply setup cache for Unity generated Xcode project to speed up build times.
## Usage
1. Clone repository into Unity `Editor` folder.
2. Execute `Tools/Xcode/WriteCache` before build Xcode project.
3. Build Xcode project.
4. Execute `Tools/Xcode/ReadCache` after build Xcode project.
5. Open Xcode and build, build will use previous build cache to speed up
## Introduction
The principle is simple:
1. Copy whole Xcode project to `Cache` folder and preserve all timestamps. Cause Xcode use file and directory timestamp to decide whether to use cache.
2. Use Unity to generate Xcode project
3. Depth-first traverse Xcode project and compare file with cached, set timestamp to cached if they are equal.
## Environment
- Unity 2017.4.2f2
- Xcode 9.4.1
- macOS 10.13.6
It didn't use any special trick, so it should compatible with all Unity, macOS and Xcode versions.