VST3 hits assert in JUCE 6.0.8 that didn’t hit in 6.0.7: getNumPrograms()

I should mention I am set to JUCE_FORCE_USE_LEGACY_PARAM_IDS=1.

I came across this discussion:

So I downloaded the dev branch.

I am now unable to create my plugin at all. I am now hitting an assert at:

    IPluginFactory* JUCE_CALLTYPE getPluginFactory()
    {
        if (factory == nullptr)
            if (auto* proc = (GetFactoryProc) getFunction (factoryFnName))
                factory = proc();

        // The plugin NEEDS to provide a factory to be able to be called a VST3!
        // Most likely you are trying to load a 32-bit VST3 from a 64-bit host
        // or vice versa.
        jassert (factory != nullptr);	// HITTING THIS ASSERT!
        return factory;
    }

…and continuing past this results in “Couldn’t create plugin. Unable to load VST-3 plugin file.”

Setting JUCE_FORCE_USE_LEGACY_PARAM_IDS=0 does not result in any change.

This is using the devbranch AudioPluginHost, Mac Mojave.

EDIT: this new assert seems to be a different problem, related to the fact that my built VST3 is now 8k in size, instead of many MB. See this: