Mac XCode Memory File Not Found

Obviously it does not make sense that there would need to be any hard coded paths in the JUCE include files. There has to be a way to inform JUCE where to find library files. Does anyone know this? Does anyone here build a plugin for Mac OSX?

I’m still getting: Include path for stdlibc++ headers not found, pass '-
std=libc++ on the command line to use the libc++. 'memory file not found.

In file included from …/…/…/JUCE/modules/juce_core/juce_core.h:182:
…/…/…/JUCE/modules/juce_core/system/juce_StandardHeader.h:55:10: fatal error: ‘memory’ file not found
#include [memory]

I checked the path given above and the file is present where it is expected. So it would seem a mystery that JUCE went into a state where it would no longer know where to find these basic library files.

After a lot of experimentation between the Projucer and XCode I was able to fix this problem by setting the Projucer OSX Deployment Target to 10.12 and then in XCode setting macOS Deployment Target to macOS 10.6.

Setting the Projucer deployment target to 10.12 caused XCode to no longer have difficulty locating the include memory file.

I don’t know why that worked but it did. I’ll leave this post up in case the solution is useful to anyone experiencing the same problem.