Could not find a supported mac sdk: [“10.10” “10.11” “10.12” “10.13”]

谁说胖子不能爱 提交于 2021-02-07 06:02:14

问题


I see the error when I try to build Android Open Project Source .

ninja: no work to do.
[1/1] 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.
20:17:47 soong bootstrap failed with: exit status 1

#### failed to build some targets (13 seconds) ####

my system version :

macOS High Sierra v10.13.4

my Xcode version:

Version 9.3 (9E145)

Can anyone help me ?

I have tried this , but it's not working for me.


回答1:


/Volumes/android/build/soong/cc/config/x86_darwin_host.go 

please edit this file to include your version of SDK

darwinSupportedSdkVersions = []string{
        "10.10",
        "10.11",
        "10.12",
        "10.13",

or your version of mac sdk




回答2:


Expanding slightly on Krishna Chetan's answer:

# What mac sdk do you have installed?
find /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs -iname "*.sdk"

# edit the configuration file
subl /<your Android build dir>/build/soong/cc/config/x86_darwin_host.go

# add your version to the listed versions in the file
darwinSupportedSdkVersions = []string{
        "10.10",
        "10.11",
        "10.12",
        "10.14", <--- add your version that you turned up in the find command here
    }

This worked for me on:

  • Mac High Sierra Version 10.13.6 (17G3025)
  • XCode Version 10.1 (10B61)



回答3:


  • Download any of the 10.10, 10.11, 10.12, 10.13 freaky Mac SDK sdk 10,1 from https://github.com/phracker/MacOSX-SDKs

    or https://github.com/phracker/MacOSX-SDKs/releases

  • Copy and paste downloaded sdk in Finder--> Go To Folder-->

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



来源:https://stackoverflow.com/questions/50760701/could-not-find-a-supported-mac-sdk-10-10-10-11-10-12-10-13

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!