简体   繁体   English

phonegap相机可在iPhone上使用,但不适用于iPad

[英]phonegap camera works on iPhone, but not iPad

I am new to PhoneGap, and I am building an app using PhoneGap + JQuery Mobile (cordova-1.7.0rc1). 我是PhoneGap的新手,并且正在使用PhoneGap + JQuery Mobile(cordova-1.7.0rc1)构建应用程序。

trying to use the camera API and I run the app on the iPhone and everything works great. 尝试使用相机API,然后我在iPhone上运行了该应用,一切正常。 trying to connect my iPad and test the app but I see this in the log: 尝试连接我的iPad并测试该应用程序,但我在日志中看到了这一点:

Error: executing module function 'setInfo' in module 'cordova/plugin/ios/device'. 错误:在模块“ cordova / plugin / ios / device”中执行模块功能“ setInfo”。 Have you included the iOS version of the cordova-1.7.0rc1.js file? 您是否已包含iOS版本的cordova-1.7.0rc1.js文件?

looked in PhoneGap site and they have only one JS for all iOS devices.... what am I missing? 在PhoneGap网站上查看时,所有iOS设备上只有一个JS。...我缺少什么?

thanks for your help in advance. 谢谢您的帮助。

From Shaz: 从Shaz:

You probably added the www project as a group, not a folder reference. 您可能将www项目作为一个组而不是文件夹引用添加。 Add as a folder reference. 添加为文件夹参考。 Also, iOS 5 is a bit finicky, try a clean first. 此外,iOS 5有点挑剔,请先尝试清洁。

See this image: http://docs.phonegap.com/en/1.7.0/img/guide/getting-started/ios/create-folder-reference.png From: http://docs.phonegap.com/en/1.7.0/guide_getting-started_ios_index.md.html#Getting%20Started%20with%20iOS 看到这张图片: http : //docs.phonegap.com/en/1.7.0/img/guide/getting-started/ios/create-folder-reference.png来自: http : //docs.phonegap.com/en /1.7.0/guide_getting-started_ios_index.md.html#Getting%20Started%20with%20iOS

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM