在Mac 10.12上构建AOSP [英] Build aosp on mac 10.12
问题描述
我曾经在Mac上构建aosp.最近,我升级了Mac OS Mac Sierra(10.12).我在构建项目时收到此错误消息:
I used to build aosp on my mac. Recently I upgraded the mac os Mac Sierra (10.12). The I received this error message while building the project:
找不到支持的mac sdk:["10.8""10.9""10.10""10.11"]
Could not find a supported mac sdk: ["10.8" "10.9" "10.10" "10.11"]
mac sdk版本已升级到10.12,但不在受支持的mac sdk列表中.有什么办法可以解决这个问题?
The mac sdk version has been upgraded to 10.12 however it is not within the supported mac sdk list. What could be a solution to this problem?
推荐答案
我已经在使用Xcode 8.2的macOS Sierra(10.12.2)上解决了此问题.该解决方案可能会有所帮助:
I have solved this problem on macOS Sierra (10.12.2) with Xcode 8.2. The solution may be helpful:
- 在 phracker/MacOSX-SDKs 上下载MacOSX10.11.sdk.
- 解压缩到文件夹:/Applications/XCode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
- Download MacOSX10.11.sdk on phracker/MacOSX-SDKs
- Unzip to folder: /Applications/XCode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
如果升级Xcode,该文件夹将被删除.因此,您将重复上述操作,或将其放置在您自己的目录中,然后创建一个链接.
If you upgrade Xcode, the folder will be removed. So You will repeat the above action, or place it in your own directory then make a link.
这篇关于在Mac 10.12上构建AOSP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!