Phonegap Build and plugins

Can I use the Ionic Framework with Phonegap Build?

If not, I am in deep trouble, since I cannot upgrade my Mac anymore, and it throws some errors when I don’t use the latest version of XCode.

I am sure it has been done before. But the thing is I am using plugins for Ionic too, not just for Cordova.