Plugins does not exist

Hello!
I tried to install the file-transfer-plugin with cordova plugin add org.apache.cordova.file-transfer. I didnt get any errors, but when trying to build for iOS I get these errors in xcode console. This causes all links to not work (like sidemenu navigation).
Everything worked before I tried to install the plugin and navigation works on localhost in chrome ex (I guess because it doesnt load cordova).

Any ideas what is wrong or how I could fix this?

2014-04-14 14:03:56.134 Norima AB maskinapp[7870:70b] Cannot find executable for CFBundle 0xa484350 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/AccessibilityBundles/GeoServices.axbundle> (not loaded)
2014-04-14 14:03:56.157 Norima AB maskinapp[7870:70b] Cannot find executable for CFBundle 0xa4c28e0 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/AccessibilityBundles/CertUIFramework.axbundle> (not loaded)
2014-04-14 14:03:56.458 Norima AB maskinapp[7870:70b] Multi-tasking -> Device: YES, App: YES
2014-04-14 14:03:56.469 Norima AB maskinapp[7870:70b] Unlimited access to network resources
2014-04-14 14:03:56.503 Norima AB maskinapp[7870:70b] CDVPlugin class CDVFile (pluginName: file) does not exist.
2014-04-14 14:03:56.504 Norima AB maskinapp[7870:70b] [CDVTimer][file] 0.688016ms
2014-04-14 14:03:56.505 Norima AB maskinapp[7870:70b] CDVPlugin class CDVStatusBar (pluginName: statusbar) does not exist.
2014-04-14 14:03:56.505 Norima AB maskinapp[7870:70b] [CDVTimer][statusbar] 0.616014ms
2014-04-14 14:03:56.506 Norima AB maskinapp[7870:70b] [CDVTimer][TotalPluginStartup] 2.452970ms
2014-04-14 14:03:57.127 Norima AB maskinapp[7870:70b] Resetting plugins due to page load.
2014-04-14 14:03:57.629 Norima AB maskinapp[7870:70b] CDVPlugin class CDVStatusBar (pluginName: StatusBar) does not exist.
2014-04-14 14:03:57.629 Norima AB maskinapp[7870:70b] ERROR: Plugin 'StatusBar' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2014-04-14 14:03:57.630 Norima AB maskinapp[7870:70b] -[CDVCommandQueue executePending] [Line 158] FAILED pluginJSON = [
  "INVALID",
  "StatusBar",
  "_ready",
  [

  ]
]
2014-04-14 14:03:57.630 Norima AB maskinapp[7870:70b] CDVPlugin class CDVDevice (pluginName: Device) does not exist.
2014-04-14 14:03:57.630 Norima AB maskinapp[7870:70b] ERROR: Plugin 'Device' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2014-04-14 14:03:57.631 Norima AB maskinapp[7870:70b] -[CDVCommandQueue executePending] [Line 158] FAILED pluginJSON = [
  "Device1198777981",
  "Device",
  "getDeviceInfo",
  [

  ]
]
2014-04-14 14:03:57.642 Norima AB maskinapp[7870:70b] Finished load of: file:///Users/Tobbe/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/21CF6742-A0BE-45A4-94B1-FADCD3FB7D13/Norima%20AB%20maskinapp.app/www/index.html#/app/start

I had this issue some time ago. What version of cordova do you have installed?

$ cordova -v

I have 3.4.0-0.1.3 installed with ionic cli last week. How did you solve it?

Ah, well in my case it was an issue with cordova 3.3. It was fixed when I upgraded to 3.4 so I’m not sure what the issue was. Best thing I can suggest right now is it

uninstall both cordova and the ionic cli
install them again
make a new project
try to add the plugin again

If that works then great! If not we may have a bigger issue. Let me know how it goes

I think I solved it! I removed the ios.json in the plugins folder and then also removed the ios platform. Then ran ionic add platform and ionic build again. Now it works :slight_smile:
(I didnt reinstall cordova or ionic)

7 Likes

Glad to hear you got it resolved. If you have any other issue with the CLI, lets up know. We want to make sure its as stable as possible

okok, thanks for your help! Maybe you could make the build command remove the json-files in the plugin folder automagiclly?

I’m having the same problem too, I did what @tobbe suggested and worked fine, but every time I build the project I get the same error!

@zelphir Had this too a while back. This is due to an issue with Xcode 5.1 and Cordova 3.4.0. Upgrading to Cordova 3.4.1 fixes it.

Upgrade Cordova to 3.4.1 by using:

sudo npm update -g cordova

Then upgrade your project by going to your project directory and using:

cordova platform update ios

More info here:

1 Like

@coen_warmer Thanks, but I’m already with the latest versions.

but sometimes I get this error!

1 Like

When you upgraded to 3.4.1, did you upgrade your projects as well? This error is due to two files in your /platforms/ios/ folder that changed from Cordova 3.4 to 3.4.1. You can copy them by hand or let Cordova do it when you do cordova platform update ios. More information in the link in my previous post.

It seems like you have to delete your platforms + ios.json every time you add a new plugin via ‘cordova add plugin_name’. I’m on the latest version of Cordova + Ionic

1 Like

This is happening to me on cordova 3.5.0-0.2.4 and the only related change I made recently was changing this preference from false to true on config.xml:

<preference name="fullscreen" value="false" />

I’ve deleted platforms/ios and the ios.json file, re-added the platform and it still happens.

Any clue why? Thanks in advance.

When I switched up to XCode 6 and updated Cordova + Ionic, I was able to avoid the bulldozing of my project by changing the name of the directory from ddg-app to Ddg-app, and then renaming/removing my ios.json file. It saved having to redo some of the stuff within the project.

That worked for me too - thank you for posting your solution, I was beginning to think I would have to uninstall then re-install everything.

This works for me, too. I am using Cordova 4.2.0.

It looks like the problem is still not solved.

1 Like

Thank you so much, you solved my problem!

Thank you it still works with Xcode (Version 8.0 (8A218a)), and ionic 2.rc-1, with cordova 6.3.1.

agree at of ionic 2.rc1 not solved yet.

I have created an issue over here https://github.com/driftyco/ionic-app-scripts/issues/245. Also included the detailed comparing both success project, and failed project.

In short, ionic build command which is necessary to take changes into effect won’t anymore copy plugins’ source file into target project.

If there’s any workaround to reduce time wasted on starting over every time to test things on iOS would be great.