My macos update automatically and the new macos SDK are not fit for my program, so how to use a lower version macos SDK? And I have another problem, once I installed Xcode, the SDK will be set path to Xcode path, also I have a command line path which is /Library/Developer/CommandlineTools. In this path, there is also a SDKs directory which contains some different versions of macos SDK? How to set a default SDK path?
Why do you want to use an older version of the macOS SDK?
If you want your app to run on older versions of macOS, you can set the deployment target of the app to a lower version. The deployment target is the earliest version of macOS that can run your app. You can change the deployment target by taking the following steps:
- Select your project from the left side of the project window to open the project editor.
- Select your app target from the target list on the left side of the project editor.
- Click the General button at the top of the project editor.
- Use the menu in the Minimum Deployments section to choose the minimum macOS version for the app.