#import "PGPlugin.h" "file not found" error in phonegap2.0 on xcode4.2

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".

"#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. enter image description here

+5
source share
2 answers

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 (: PGPluginCDVPlugin).

, PG.

, .

+8

Cordova/Phonegap.

0

All Articles