Xcode 8.3.2
Build version 8E2002
In Terminal,
$ xcrun --show-sdk-path
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
However, build it In Xcode then I got some error.
error: There is no SDK with the name or path '/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk'
Any help ?
So, something in your project is holding on to the wrong path to the SDK. (This shouldn't happen — the project should never have any absolute references that make it depend on a particular Xcode or SDK version.) I would try the following things, in the following order, to try to get rid of the error:
1. Clean your project. Hold down the Option key and choose Clean Build Folder from the Product menu.
2. Go to the build settings for your target, and make sure the SDK setting is set to "Latest macOS" in the Architectures section at the top.
3. Go to the Search Paths section of the build settings, and check that an explicit reference to the SDK hasn't been added to one of the search paths.
4. If your project uses any build config files, check that those files don't have any absolute references to the beta SDK path.
If none of that helps, you can try showing your project file (the first item in the navigator pane on the left) as text, by enabling the Version editor (View->Version Editor-> Show Version Editor). Then you can search for the word "beta". You might be lucky and find a clue to the problem that way.