I think if you are using the latest XCode you need to use JUCE from the develop branch from GitHub.
That sounds like the problem. Here’s some more detail: