I recently upgraded to Cordova 2.9.0 from 2.3.0. After following all the upgrade instructions, I was able to get the app to launch in the simulator. However, in Xcode I see
Came across this issue myself. Found the only solution was running cordova prepare
after adding the plugins via CLI. prepare
copies the necessary files across to the XCode project within the platforms
folder.
I think this should be done as part of the build
command, or the plugin add
command if the project is present. Maybe it's a bug, maybe it's deliberate, but I couldn't find much documentation on it.
Similar question with answers.
Similar question with answer that worked for me:
remove ./plugins/ios.json to make sure the plugins are rebuilt.
Phonegap 3.0 IOS plugins not found
I went back to using the old <plugin>
format. Although it is deprecated, it's the only way that works for me.
<plugins>
<plugin name="Device" value="CDVDevice" />
<plugin name="Logger" value="CDVLogger" />
...
</plugins>
I also had this problem. I simply created the directory myself (platforms/ios/appname/Plugins/org.apache.cordova.console) and copied the missing files (CDVLLogger.h and CDVLLogger.m) to this directory. Then the compilation went through successfully.
I am using cordova version 3.5
I had the very same problem with the SQLitePlugin. I tried some of the proposed solutions in this post but none of them exactly worked for me. Then I tried to remove the platform/ios dir (I am developing for an iPhone), added the ios platform again (ionic add platform ios) and rebuilt the project. Suddenly, everything worked like a charm. I didn't had to create a new project nor had to remove the plugins.
If you get this error using Ionic then trying running cordova run ios --device
instead of ionic run ios --device
It fixed the issue for me. I think the Ionic cli v2 was messing things up since the project was an Ionic 1 project. I had no issues before updating the Ionic cli.