Question : phonegap error:request for something not a structure or union

i want to install phonegap inside my virtual mac
but after installed, while compile my phonegap-based application
i was get some error : (the screenshot was attached)
error : request for member 'timestamp' in something not a structure or union
error : request for member 'magneticHeading' in something not a structure or union
error : request for member 'trueHeading' in something not a structure or union
error : request for member 'headingAccuracy' in something not a structure or union
error : 'kCLErrorHeadingFailure' undeclared(first use in this function)

inside my project
got a folder call Plugins in red name , but inside got nothing
and the "libPhoneGapLib.a" was also in red name

am i done something wrong in installation?
i used terminal to download and store the phonegap-iphone file in Document
after make the .pkg file then i install it.
but inside my (xcode)developer folder i did not found any phonegap folder is it my installation problem?
sorry i am a newbie on mac ><

anyone can help me?

my software version:
 xcode3.1.4
 iphone sdk3.0
phonegap (not latest ,because i using iphone sdk3.0)

thank you
 
error screenshot
321640
 

Answer : phonegap error:request for something not a structure or union

Thanks for you reply : )

The problem that i face was solved
I was uograded my XCode3.1.4 and also iPhone SDK3.0 to:

XCode 3.2.2
iPhone SDK 3.2

and i try to reinstall the latest phonegap,so all the problem was solve.

thank you
Random Solutions  
 
programming4us programming4us