Plugin Host error messages?

I just upgraded to Sierra and now I’m getting this message from Plugin Host:

2017-03-02 10:41:31.424297 Plugin Host[4640:155153] dynamic_cast error 1: Both of the following type_info's should have public visibility. At least one of them is hidden. N4juce8TypefaceE, N4juce11OSXTypefaceE.

???

Hmmm, haven’t seen this on Sierra. I am sure you tried cleaning your project etc. Anyone else seeing this?

Yes, I cleaned the project and even reserved it from Projucer.

It’s pretty annoying…filling up the debug console and making hard to see my print statements.

Seriously, no one else?

Could be caused by a specific plug-in on your computer?

I can’t think of anything. All I did was update to Sierra, nothing else.

Ok…it looks like it might be related to an embedded font in the plugin I’m developing. When I deleted my plugin, the message went away. But still, I didn’t get that message before Sierra.

Actually, there are more errors:

objc[35627]: Class NSDraggingSourceHelper is implemented in both /Users/ray/Dropbox/Programming/JUCE/examples/audio plugin host/Builds/MacOSX/build/Debug/Plugin Host.app/Contents/MacOS/Plugin Host (0x100642b58) and /Users/ray/Library/Audio/Plug-Ins/Components/Blue3.component/Contents/MacOS/Blue3 (0x110220ed0). One of the two will be used. Which one is undefined.

2017-03-03 07:56:26.559842 Plugin Host[35627:2091816] dynamic_cast error 1: Both of the following type_info's should have public visibility.  At least one of them is hidden. N4juce14ImagePixelDataE, N4juce17CoreGraphicsImageE.

2017-03-03 07:56:27.674764 Plugin Host[35627:2091816] dynamic_cast error 2: One or more of the following type_info's  has hidden visibility.  They should all have public visibility.   N4juce14ImagePixelDataE, N4juce19SubsectionPixelDataE, N4juce17CoreGraphicsImageE.

There’s been a whole slew of issues with this line of code in JUCE: juce_mac_Fonts.mm:562. Maybe this is related.

Apparently, Apple has introduced some bugs with CGFontCreateWithDataProvider on iOS (http://stackoverflow.com/questions/40242370/app-hangs-in-simulator). Maybe something similar is needed in macOS?!>

Sorry to bring this one back, I did not see any fix. I am getting the same error as pizzafilms mentioned in the first post. This is a vanilla FX plugin.

JUCE v5.3.2
Creating VST instance: atest
Initialising VST: atest (1.0.0.0)
Attempting to load VST: /Users/me/Library/Audio/Plug-Ins/VST/atest.vst
Creating VST instance: atest
Initialising VST: atest (1.0.0.0)

2018-06-25 19:23:16.647128-0400 AudioPluginHost[2170:288900] dynamic_cast error 1: Both of the following type_info’s should have public visibility. At least one of them is hidden. N4juce8TypefaceE, N4juce11OSXTypefaceE.

Then the error repeats quite a bit.

I am also getting these, repeated as well, after adding in an APVTS. Same happens with VST3.

2018-06-25 19:54:52.670601-0400 AudioPluginHost[2988:433242] dynamic_cast error 2: One or more of the following type_info’s has hidden visibility. They should all have public visibility. N4juce23AudioProcessorParameterE, N4juce28AudioProcessorValueTreeState9ParameterE, N4juce20LegacyAudioParameterE.

2018-06-25 19:57:45.526601-0400 AudioPluginHost[2988:433242] dynamic_cast error 2: One or more of the following type_info’s has hidden visibility. They should all have public visibility. N4juce9ComponentE, N4juce9PopupMenu13HelperClasses13ItemComponentE, N4juce20AudioProcessorEditorE.

Am I missing something obvious?

Other than the errors, are you seeing any other bugs? I think these errors go away in release builds.

With Juce 5.4.1 (as well as 5.3.2), I get:

 AudioPluginHost[1330:7885059] dynamic_cast error 2:
 One or more of the following type_info's has hidden visibility.
 They should all have public visibility.
 N4juce23AudioProcessorParameterE,
 N4juce19AudioParameterFloatE,
 N4juce20LegacyAudioParameterE.

I also get:

AudioPluginHost[1330:7885059] dynamic_cast error 1:
Both of the following type_info's should have public visibility.
At least one of them is hidden.
N4juce8TypefaceE, N4juce11OSXTypefaceE.

Is it possible to get rid of these messages?

Yes, I am still getting both those messages (shown by @ sokobania) flooding the debug console as well.

JUCE 5.4.1 on OS X High Sierra (10.13.6), building a vanilla FX plug-in, no embedded fonts.

Today I’m feeling lucky, so let’s make a shot in the dark! (I don’t have a Mac at hands to try)

Please try adding GCC_INLINES_ARE_PRIVATE_EXTERN = NO to the “Custom Xcode Flags” field in Projucer:

Thanks for the idea, but that didn’t get rid of either of the spammed messages.

Same issue with the blank template for Audio Plugin through Projucer (macOS Sierra, JUCE 5.4.3). Curiously, I downloaded this repo and I started to code a plugin from one of them, the error messages do not appear.

UPDATE:
The plugins I mentioned above were set up in Build Configuration: Debug. On the other hand, I changed to Release according to @fabian and now the only message in the debug console is kNotImplemented.