在真实设备上测试 PhoneGap 应用程序

发布于 2024-12-10 17:20:08 字数 178 浏览 0 评论 0原文

我使用 Phonegap 构建了一个应用程序,并在 iPhone 模拟器上对其进行了测试。 现在我想将它“发送”到iPad,有人可以解释我如何处理吗?

当然,我有一个 apple id 和所有其他要求。 我为 iPad 制作了“配置文件”,但我不明白如何在设备上运行它。如果有人可以解释我或将我重定向到此类“测试开发”的好教程。

I built an application using Phonegap and I tested it on the iPhone Simulator.
Now I want to "send" it to the iPad, can somebody explain me how to handle that ?

Of course I've got an apple id and all other requirements.
I made the "provisioning profile" for the iPad, but I don't understand how I can run it on the device. If somebody can explain me or redirect me to a good tutorial for this kind of "testing development".

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

倚栏听风 2024-12-17 17:20:08

如果您有 Apple ID 并且 ipad 已正确配置,那么您只需在 xcode 中更改构建位置即可。单击 Xcode 中“运行”和“停止”按钮旁边的按钮。该按钮将是您的项目名称,后跟“nameOfProject>iPad 4.3 Simulator”或类似内容。将其更改为“ipad 的 iOS 设备名称”,即您已插入计算机的 ipad。现在重建并运行。

If you have an Apple ID and the ipad is properly provisioned, then you simply need to change where you are building to in xcode. Click on the button next to the "run" and "stop" buttons in xcode. The button will be the name of your project followed by "nameOfProject>iPad 4.3 Simulator" or something similar. Change this to be "iOS device name of ipad", the ipad you have plugged into the computer. Now rebuild and run.

孤云独去闲 2024-12-17 17:20:08

一种分发应用程序的方法,无需要求用户将配置文件和应用程序文件复制到 iTunes,然后将 iPhone 与其同步。现在,他们唯一需要做的就是单击电子邮件中的链接,这将在设备上打开网站,然后他们可以单击在 iPhone 上安装应用程序和配置文件。

http://blog.amarkulo.com/ad-hoc -profiles-and-application-distribution-via-web

其他参考:

http://support.twixlmedia.com/kb/epublisher-builder-application/how-do-i-create-the-distribution-provisioning-profile-for-my-ad-hoc-build< /a>

A way to distribute application without asking user to copy provisioning profile and application file to iTunes and then sync iPhone with it. Now, only thing that they need to do is to click on the link in e-mail, which will open website on device and there they can click to install application and profile on the iPhone.

http://blog.amarkulo.com/ad-hoc-profiles-and-application-distribution-via-web

Other reference :

http://support.twixlmedia.com/kb/epublisher-builder-application/how-do-i-create-the-distribution-provisioning-profile-for-my-ad-hoc-build

我最亲爱的 2024-12-17 17:20:08

使用“运行”而不是“模拟”。

我只使用过 cordova,但 cordova run 会将其安装在您的设备上(如果已插入)。
即:

cordova run ios (我拒绝支付 99 美元,所以没有测试,但应该)

cordova run android (工作精美)

use "run" instead of "emulate".

I've only used cordova but cordova run <osname> will install it on your device if it's plugged in.
ie:

cordova run ios (I refuse to pay 99$ so not tested but it should)

cordova run android (works beautifully)

寂寞笑我太脆弱 2024-12-17 17:20:08

好吧,这有点捷径/作弊。但我所做的是做phonegap服务,然后打开它在我的Iphone上为您提供的IP地址...这与让它作为APK在您的设备上运行几乎相同!

Step One: 

cd 到您的目录并运行 phonegapserve

Step two:

在您的 Iphone/Android/设备上打开您的网络浏览器(例如 safari)并输入phonegap 为您提供的 IP。

Step three:

看到你的应用程序工作很有趣:)

但是,如果你正在使用一些phonegaps 功能(gps 等),那么这些功能将无法工作。此解决方案是一种快速、轻松地查看应用程序的方法,不使用任何硬件控件(例如 jquery 移动应用程序)

Okay this is a bit of a shortcut/cheat. But what i've done was do phonegap serve and then open the IP address that it provides you on my Iphone...It's pretty much the same as having it run on your device as an APK!

Step One: 

cd to your directory and run phonegap serve

Step two:

On your Iphone/Android/Device open your web-browser (e.g safari) and type in the IP phonegap has given you.

Step three:

Have fun seeing your app work :)

However if you're using some of phonegaps features (gps, etc...) then these won't work. This solution is a quick and easy way of viewing your app that doesn't use any hardware controls (e.g a jquery mobile app)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文