Updating to Xcode 15 broke my code

after updating Xcode to 15.4, my JUCE project can no longer build. Currently my MacOSX version is 14.5

first problem: Internal inconsistency error: never received target ended message for target ID ‘3’ (in target ‘juce_vst3_helper’ from project ‘GuitarAmpPlugin’). Build again to continue.

second problem: Showing All Messages
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/__memory/unique_ptr.h:66:19: Invalid application of ‘sizeof’ to an incomplete type ‘juce::JUCEApplicationBase::MultipleInstanceHandler’



^ this is related to juce_ApplicationBase.h

Would greatly appreciate some thoughts on how to fix this!

Are you building using the latest version on develop? and what version of C++ are you using? If you’re trying to use C++23 then a fix is being worked on for this, for now I would suggest using an older version of C++.

I’m building using Xcode 15.4 on macOS 14.5 so there shouldn’t be an problems as long as you’re not trying to use C++23.

Failing that, could you check if any of the bundled JUCE examples or the DemoRunner are failing to build for you?

Thanks for the insight. changing C++ version fixed the code

1 Like