When I build plugins in XCode, it seems to ignore the DESTDIR in the .pro .

I cannot seem to find out how to get the compiler to copy the .a file to the DESTDIR (although it does create the path). This is annoying because the plugin must be copied to the app folder that reads the plugin every time I make a change.

I think it's because every time I compile the target, it creates the .a file in build/Release or build/Debug, so it's not in the same dir as the .pro which causes it to not exist when the compiler tries to copy to DESTDIR.

Any ideas?