• MAC 下编译 ANDROID P 源码 提示 internal error: Could not find a supported mac sdk: ["10.10" "10.11" "10.12" "10.13"]


    MAC 下编译 ANDROID P 源码出现下面的问题:

    ninja: no work to do.
    [21/21] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
    FAILED: out/soong/build.ninja 
    out/soong/.bootstrap/bin/soong_build -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/build.ninja.d -o out/soong/build.ninja Android.bp
    internal error: Could not find a supported mac sdk: ["10.10" "10.11" "10.12" "10.13"]
    ninja: build stopped: subcommand failed.
    15:14:37 soong bootstrap failed with: exit status 1
    
    #### failed to build some targets (13 seconds) ####
    

      

    解决方案:

    cd /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
    ls

    发现 SDK 为10.14,在 源码跟目录下查看 darwinSupportedSdkVersions 的定义,发现没有10.14,添加10.14即可 

    vim build/soong/cc/config/x86_darwin_host.go
     80         darwinSupportedSdkVersions = []string{
     81                 "10.10",
     82                 "10.11",
     83                 "10.12",
     84                 "10.13",
     85                 "10.14",
     86         }

    然后再编译就好。

    如果在/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/中没有SDK,可以在 https://github.com/phracker/MacOSX-SDKs/releases 下载 

    解压后copy 到 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/

  • 相关阅读:
    配置文件
    ajax
    网线颜色排序
    cs程序添加初始化加载
    后台设置gridview不换行
    js 经典正则判断 一个字符串是否包含另一个字符串
    窗体关闭事件
    oracle根据视图删除表
    (字符串)哈希
    (字符串)哈希
  • 原文地址:https://www.cnblogs.com/larack/p/9646860.html
Copyright © 2020-2023  润新知