I am currently making a plugin for phonegap 3. I have a custom framework to copy using the source-file directive. In the plugin.xml I tried:
You can copy the binary file (who should be in "mylib.framework/Versions/A/") and the headers ( ".h" who should be in "mylib.framwork/Versions/A/Headers")
like this
...
You also have to add the dependencies manually, IE.: this framework needs the iOS AVFoundation.framework
so, you need to add this too.
One more thing you have to know, if you want to submit this plugin to PhoneGap.
Any application that contains binary libraries will be rejected. This is because we need to be able to see exactly what is in a plugin as part of our code review process. So when submitting a plugin make sure that it doesn’t contain binary libraries. (PhoneGap)