After downloading phonegap 2.0, follow the official documentation step by step. You cannot create a complete project at a time.
The error is as follows:
By default, the phonegap installer installs cordovalib under the current user's documents/and checks whether the folder named cordovalib exists. If not, run the installation program again.
Close xcode and use the command line to create a project:
./Phonegap-phonegap-2dbbdab/lib/IOS/bin/create hellpphonegap com. XXX. hellophonegap
After xcode is restarted, it can be automatically linked to cordovalib, And the created Project will not have this problem again.
After searching, many people have encountered this problem and have been troubled by it. I have recorded that if you have encountered another problem and failed to solve it, I hope you can save your time.
In addition, phonegap IOS plug-in resource address: https://github.com/purplecabbage/phonegap-plugins
And, blog reference recommendations, (phonegap iOS development information is really few): http://nathancampos.me/post/23831039066/how-to-setup-and-use-nativecontrols-in-phonegap