Build-android-in-OS-X-Yosemite-Xcode-7 build whole android (AOSP) in Mac OS X Yosemite + Xcode 7.0.1(v10.5 SDK) My environment: Mac OX X 10.10.5(14F27) Xcode 7.0.1(7A1001) jdk1.7.080 jdk1.8.051 (Default) First of course, download AOSP by official except that i use android-5.1.1r14 branch instead of android-4.0.1r1. Then what i did especically are: 1. To avoid check error of OS X SDK version, run following command first: export buildmacversion=`swvers -productVersion` #for me, result is 10.10.5 export macsdkversion=10.9 #this is the biggest version AOSP build system support export macsdkroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk export gccdarwinversion=11 2.
Installing Command Line Tools on Mac OS X Yosemite 10.10 The Mac Tip Simply Indicate How-to Download and Install Many useful tools are included in the Command Line Tools, such Apple LLVM compiler, linker, and Make. If you use Xcode, these tools are also embedded within the Xcode IDE. OS X Yosemite was announced and released to developers on June 2, 2014 at WWDC 2014 and released to public beta testers on July 24, 2014. Following the California landmark-based naming scheme introduced with OS X Mavericks, Yosemite is named after the national park.
To skip disk case sensitive check and java version check, create a file TOPAOSPDIR/out/versionschecked.mk with contents: VERSIONSCHECKED:= 5 BUILDEMULATOR?= false 3. To avoid error of some header files not found, create a symbol link MacOSX10.11.sdk/.c/v1 = xctoolchain/.c/v1: sudo ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c/v1 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/c/v1 4. AOSP's prebuild compiler for host side can not handle some latest header file of OS X SDK, i have no way, so modify following two files: $macsdkroot/System/Library/Frameworks/CoreGraphics.framework/Versions/A/Headers/CGFont.h: 53c53,54 //static const CGFontIndex kCGGlyphMax = kCGFontIndexMax; static const CGFontIndex kCGGlyphMax = ((1 #if MACOSXVERSIONMINREQUIRED MACOSXVERSION109 495a497 #endif OK, now you can, as a tip, you can add 'showcommands' option to make, and even combine more like following commands to save output with timestamp prefix to log file. Make -j4 -k showcommands 2&1 (while read line; do echo `date +'%Y-%m-%d%H:%M:%S'` $line; done) tee out/make.log Good luck.