Search code examples
cordovaphonegap-pluginscordova-3icenium

How to Add a Third Party Framework to a Cordova 3.0 Custom Plugin?


I'm trying to create a cordova plugin with a third party framework (in this case AdColony.framework) https://github.com/AdColony/AdColony-iOS-SDK. I'm having trouble figuring out how to add this framework using the plugin.xml (Plugin Specification).

I tried to include the file as a framework through

<framework src="src/ios/libs/AdColony.framework" />

OR

<source-file src="src/ios/libs/AdColony.framework" framework="true" />

But both didn't worked. Please help me to figure this out. Any suggestions and response will be greatly appreciated. Thanks.


Solution

  • Custom frameworks work with Cordova 3.4

    <framework src="relative/path/to/my.framework" custom="true" />