This is a little weird though since VSTPluginMain is marked VST_EXPORT in vst2wrapper.cpp which expands to attribute ((visibility (“default”))) under XCode so the VST2 entry point should get exported by default.
Did you try placing something like #error “GNUC undefined” under #define VST_EXPORT in line 3059 in vst2wrapper.cpp to see whether this is the actual source of your problem?