首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >PhoneGap生成错误

PhoneGap生成错误
EN

Stack Overflow用户
提问于 2010-01-01 02:05:54
回答 1查看 681关注 0票数 0

我是PhoneGap新手,当我使用OSX10.6.2和Xcode3.1.3编译捆绑的PhoneGap.xcodeproject时,我遇到了这些错误

我错过了什么?

非常感谢唐

代码语言:javascript
复制
Building target “PhoneGap” of project “PhoneGap” with configuration “Debug” — (5 errors, 3 warnings)
gap-phonegap-80458a0/iphone/build/Debug-iphonesimulator/include -I/Users/lydonchandra/Documents/phonegap-phonegap-80458a0/iphone/build/PhoneGap.build/Debug-iphonesimulator/PhoneGap.build/DerivedSources/i386 -I/Users/lydonchandra/Documents/phonegap-phonegap-80458a0/iphone/build/PhoneGap.build/Debug-iphonesimulator/PhoneGap.build/DerivedSources -include /var/folders/o+/o+iwoDblFHa23jj9u8xkm++++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/PhoneGap_Prefix-hacookbrellaoddmixprvtxegbot/PhoneGap_Prefix.pch -c Location.m -o /Users/lydonchandra/Documents/phonegap-phonegap-80458a0/iphone/build/PhoneGap.build/Debug-iphonesimulator/PhoneGap.build/Objects-normal/i386/Location.o
Location.m: In function '-[Location hasHeadingSupport]':
Location.m:33: warning: 'CLLocationManager' may not respond to '-headingAvailable'
Location.m:33: warning: (Messages without a matching method signature
Location.m:33: warning: will be assumed to return 'id' and accept
Location.m:33: warning: '...' as arguments.)
Location.m: In function '-[Location startHeading:withDict:]':
Location.m:123: warning: 'CLLocationManager' may not respond to '-startUpdatingHeading'
Location.m: In function '-[Location stopHeading:withDict:]':
Location.m:136: warning: 'CLLocationManager' may not respond to '-stopUpdatingHeading'
Location.m: In function '-[Location locationManager:didUpdateHeading:]':
Location.m:151: error: request for member 'timestamp' in something not a structure or union
Location.m:154: error: request for member 'magneticHeading' in something not a structure or union
Location.m:154: error: request for member 'trueHeading' in something not a structure or union
Location.m:154: error: request for member 'headingAccuracy' in something not a structure or union
Build failed (5 errors, 3 warnings)
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2010-01-01 03:11:36

您是否安装了最新的iPhone开发工具包?如果您使用的是Xcode3.1,我不相信您会这样做;3.2和更高版本是当前版本。

代码语言:javascript
复制
Location.m:33: warning: 'CLLocationManager' may not respond to '-headingAvailable'

具体地说,这表明CLLocationManager的声明没有-headingAvailable方法。该方法是在iPhone OS 3.0中添加的。因此,我敢打赌您已经安装了2.x系列的开发工具包?

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/1986464

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档