I am new to phonegap2.0. Now I want to create an iphone application using phonegap. I am using xcode4.2 on a snow leopard mac. I installed the handset on my mac. But now I am following Embedding Cordova Webview on iOS using the following link:
"http://docs.phonegap.com/en/2.0.0/guide_cordova-webview_index.md.html#Embedding%20WebView"
But when I run the encoding in xcode4.2 Iphone 5.0 Simulator. I got an error #import"PGPlugin.h" "file not found".
Iphone 5.0 Simulator
#import"PGPlugin.h" "file not found"
"#ifdef PHONEGAP_FRAMEWORK #import <PhoneGap/PGPlugin.h> #else![enter image description here][1] #import "PGPlugin.h" #endif".
I have attached a help screen page for reference.
Change this part:
#ifdef PHONEGAP_FRAMEWORK #import <PhoneGap/PGPlugin.h> #else #import "PGPlugin.h" #endif
with the following:
#import <Cordova/CDVPlugin.h>
, 2.0.0, , PG (: PGPlugin) CDV (: PGPlugin → CDVPlugin).
PG
PGPlugin
CDV
CDVPlugin
, PG.
, .
Cordova/Phonegap.