PhoneGap 示例应用程序不执行任何操作
我构建了 PhoneGap 0.8.0 示例项目,然后将其部署在我越狱的 iPhone 上。 我使用的是 Xcode 3.2.1,目标设置为“Device - 3.0 | Release”
但是 PhoneGap 应用程序没有执行任何操作,它无法获取我的 iPhone 信息,并单击“手表加速度计”、“获取位置”等,什么也没做。 如果我在 iPhone 模拟器上运行它,也会发生同样的事情。
我错过了什么?
谢谢
I built the PhoneGap 0.8.0 example project and then deployed it on my jailbroken iPhone.
I am using Xcode 3.2.1, and target set to "Device - 3.0 | Release"
However the PhoneGap app did not do anything, it could not get my iPhone information, and clicking the "watch accelerometer", "Get Location", etc, did not do anything.
The same thing happened if I run it on the iPhone simulator.
What have I missed?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不确定,但您可能想用“真正的”iPhone 来尝试一下。
我知道一些移动 API 和服务声明它们不适用于越狱手机。
根据您的应用程序的复杂程度,您可能想尝试使用他们的“构建”服务。这对我来说创造了奇迹!
编写代码,在浏览器中测试...
当您准备好在手机上测试时,将其打包 (.zip) 并上传到构建服务。
在几秒钟(有时更长)内,您就可以下载已编译的应用程序。
我们一直在使用它 - 比设置您的开发计算机容易得多。
看看:PhoneGap Build
Not sure but you may want to try it with a "real" iPhone.
I've known some mobile api's and services to state that they will NOT work for jail-broken phones.
Depending on how complex your application, you may want to try using their "Build" service. It's worked wonders for me!
Write your code, test in a browser...
When you're ready to test on a phone, package it up (.zip) and upload to the build service.
Within seconds (sometimes longer) you'll have compiled applications available to download.
We use it all the time - much easier than setting up your development computer.
Check it out: PhoneGap Build