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
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
(I didnt reinstall cordova or ionic)
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
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.
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.