docs: add workaround for building on mac.

This commit is contained in:
Connor Tumbleson 2023-07-09 21:03:59 -04:00 committed by GitHub
parent 2b81215846
commit abb042772f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -275,6 +275,14 @@ There is probably a more automated way to do this, but for now:
3. `git fetch origin -v`
4. `git checkout origin/master`
#### Mac Patch
Normally you'll be building this on a recent Mac OS that isn't supported. You'll want to follow these steps:
1. `vim build/soong/cc/config/darwin_host.go`
2. Find `darwinSupportedSdkVersions` array.
3. Add number that corresponds to output of: `find /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs -iname "*.sdk"`
### Building the aapt1 (Legacy) binary.
The steps below are different per flavor and operating system.