Reputation: 1408
I have a project using phonegap 3.1 which was working fine.
I added the cordova file plugin like so:
cordova plugin add org.apache.cordova.file
then
phonegap build ios
which runs fine.
I open the project in xcode and it fails to compile with the error:
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
It's quite meaningless so I poke around further and fine that CDVFile.h and CDVFile.m are highlighted in Red inside my plugins directory in my xcode project and clicking on them won't show their code. My other plugins are working fine.
I tried product -> clean but it didn't help.
Anybody know what else I can try?
Upvotes: 1
Views: 698
Reputation: 5647
I believe you need to run phonegap local plugin add org.apache.cordova.file
if you want the plugins available locally.
Upvotes: 1