Phonegap 和 ios - 示例在模拟器中不起作用
我开始在 ios 上使用phonegap。我一直在模拟器上构建示例,到目前为止,我尝试过的大多数示例都构建得很好,但通常由于某种原因无法完全发挥作用。 phonegap 在模拟器上会失去其功能吗?我有一台设备要测试,但我还没有收到苹果的回复,所以我可以配置它们来进行开发。由于它们阻止人们在他们的设备上进行开发,难怪 Android 正在扼杀它。
那么还有其他人注意到这一点吗?我使用 xcode 4.1 和最新的 Phonegap 以及所有最新的 jquery/jqtouch 东西。
模拟器上演示的常见问题是,所有内容都会在视觉上加载,但没有一个按钮是可触摸的,或者某些列表视图无法加载。我应该更新我的 xcode 吗?这个mac东西快要死我了哈哈。
编辑:这些是我运行 mapviewkit 插件演示时出现的错误
Undefined symbols for architecture i386:
"_MKCoordinateRegionMakeWithDistance", referenced from:
-[MapKitView setMapData:withDict:] in MapKit.o
"_OBJC_CLASS_$_MKMapView", referenced from:
objc-class-ref in MapKit.o
"_OBJC_CLASS_$_PGAnnotation", referenced from:
objc-class-ref in MapKit.o
"_OBJC_CLASS_$_MKPinAnnotationView", referenced from:
objc-class-ref in MapKit.o
"_OBJC_CLASS_$_AsyncImageView", referenced from:
objc-class-ref in MapKit.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
I started working with phonegap on ios. Ive been building the samples on the simulator and so far most of the samples that Ive tried build fine but usually arent fully functional for one reason or another. Does phonegap lose its functionality on the simulator? I have a devices to test on but I havent heard back from apple so I can provision them to develop on. With the way they keep people from developing on their devices its no wonder that android is killing it.
So has anyone else noticed this? Im using xcode 4.1 and the latest phonegap along with all the latest jquery/jqtouch stuff.
The usual problem with the demos on the simulator is that everything will load visually but none of the buttons will be touchable or some of the listviews wont load. Should I update my xcode? This mac stuff is killing me LOL.
EDIT: these are errors from me running the mapviewkit plugin demo
Undefined symbols for architecture i386:
"_MKCoordinateRegionMakeWithDistance", referenced from:
-[MapKitView setMapData:withDict:] in MapKit.o
"_OBJC_CLASS_$_MKMapView", referenced from:
objc-class-ref in MapKit.o
"_OBJC_CLASS_$_PGAnnotation", referenced from:
objc-class-ref in MapKit.o
"_OBJC_CLASS_$_MKPinAnnotationView", referenced from:
objc-class-ref in MapKit.o
"_OBJC_CLASS_$_AsyncImageView", referenced from:
objc-class-ref in MapKit.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Phonegap 在模拟器中应该运行得很好,唯一你无法访问的是相机,而且位置有点奇怪,但除此之外,其他一切都对你开放。
确保您已将所有文件放在正确的位置...如果可能的话,尝试在浏览器中进行测试,看看是否有问题出现...
Phonegap should run just fine in the simulator, only things you wont have access to are the camera, and locations are a bit funky, but other than that everything else is open to you.
Be sure you've got all the files in the correct places... try testing in a browser if possible to see if something isn't coming through...