How do I determine which iOS SDK I have?

前端 未结 5 2078
失恋的感觉
失恋的感觉 2021-01-30 04:38

I\'m sure this is simple, but how do I determine which version of the iOS SDK I currently have installed?

5条回答
  •  失恋的感觉
    2021-01-30 05:22

    The simplest why I found is to run this command line:

    sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
    

    OR, if you have multiple XCode versions:

    sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
    

    fastlane isn't able to successfully execute that command so it sounds like that you don't have an Xcode version selected for xcodebuild to run things with. Running the xcode-select command above should do the trick for you ;)

    Source: https://github.com/fastlane/fastlane/issues/12784

提交回复
热议问题