IPlug2 and AUv3 problem

Hello!! I am using IPlug2 for my project, I have managed to compile in XCode for Au, and for Auv3_App correctly but when I compile AUv3 as a component (apex) auval does not see it, and neither does Logic. (Logic only sees the Au plugin) Reaper sees the VST3, the problem is that I tried everything and it does not work, I need the AUv3 because my plugin is an audio fx that can emit midi messages, and Au can not do that.