MobileChromeApps / cordova-plugin-zip

Zip plugin for Cordova apps
Other
168 stars 207 forks source link

Plug In Not Found #28

Open chrismpalmer opened 10 years ago

chrismpalmer commented 10 years ago

Gday!

I added the plugin and attempted to use it in one of my source.js files and am getting:

2014-05-27 15:39:55.691 Flows-Test[7064:60b] CDVPlugin class Zip (pluginName: Zip) does not exist. 2014-05-27 15:39:55.692 Flows-Test[7064:60b] ERROR: Plugin 'Zip' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml. 2014-05-27 15:39:55.692 Flows-Test[7064:60b] -[CDVCommandQueue executePending] [Line 158] FAILED pluginJSON = [ "Zip612661074", "Zip", "unzip", [ "reports.zip", "cdvfile:\/\/localhost\/persistent\/" ] ]

I looked high and low and the plug in looks like it installed no problem at all. However I haven't found anything else with this message. Sorry to ask more a support question but could there be a problem with cordova 3.4?

chrismpalmer commented 10 years ago

Interestingly it works if I create a new project....tried removing and adding again....

chrismpalmer commented 10 years ago

I figured out my problem. I have multiple targets and it doesn't add the target membership to the various targets. I needed to add them manually, as well as making sure libz.dylib was linked in.