x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

I can't build a c++ program on my Mac with Xcode

when I want to build a program there has an error

Running Mono...

Setting up Mono /Users/Shared/Epic Games/UE_4.19/Engine /Users/Shared/Epic Games/UE_4.19/Engine/Binaries/Mac Discovering modules, targets and source code for project... Triggered an exception while looking for SDK directory in Xcode.app System.IO.DirectoryNotFoundException: Directory '/Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs' not found. at System.IO.Directory.ValidateDirectoryListing (System.String path, System.String searchPattern, System.Boolean& stop) [0x00000] in :0 at System.IO.Directory.GetFileSystemEntries (System.String path, System.String searchPattern, FileAttributes mask, FileAttributes attrs) [0x00000] in :0 at System.IO.Directory.GetDirectories (System.String path, System.String searchPattern) [0x00000] in :0 at System.IO.Directory.GetDirectories (System.String path) [0x00000] in :0 at UnrealBuildTool.AppleToolChainSettings.SelectSDK (System.String BaseSDKDir, System.String OSPrefix, System.String& PlatformSDKVersion, Boolean bVerbose) [0x00000] in :0  WARNING: Exception while generating include data for UE4Editor: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs Generating data for project indexing... 0%@progress 'Generating data for project indexing...' 50%  WARNING: Exception while generating include data for cppEditor: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs Generating data for project indexing... 50%@progress 'Generating data for project indexing...' 100% ERROR: UnrealBuildTool Exception: Invalid SDK MacOSX.sdk, not found in /Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs

how could I do

Product Version: Not Selected
Tags:
more ▼

asked Apr 07 '18 at 03:09 PM in C++ Programming

avatar image

shizi9
6 1 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

I had a similar problem. Tried to install command line tools, but the path indicated still didn't exist and tried to manually create the path to the SDK's without success.

In Terminal I checked the path to Xcode:

 $ xcode-select -p

/Library/Developer/CommandLineTools (result to existing Xcode path)

then changed it to point to the Xcode application in the applications folder:

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

So far seems to have resolved the issue.

more ▼

answered Apr 18 '18 at 10:02 PM

avatar image

HookusMaximus
16 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Directory '/Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs' not found

The error message clearly states that you don't have the Xcode Command Line Tools installed. You can find them here.

Alternatively you could run the following command in your terminal of choice, which will trigger a pop-up requesting you to install them;

 xcode-select --install
more ▼

answered Apr 16 '18 at 01:57 PM

avatar image

Craimasjien
31 4 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question