在没有苹果开发者程序或越狱的设备上测试 iOS 应用 [英] Test iOS app on device without apple developer program or jailbreak

查看:26
本文介绍了在没有苹果开发者程序或越狱的设备上测试 iOS 应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在不注册 Apple Developer Program 或越狱 iPod 的情况下在 iPod Touch 上测试 iOS 应用程序?

目前这两个选项都不可行.

我想在设备本身而不是屏幕模拟器上进行测试,以了解它在实际 iPod 上的表现.

解决方案

在 App Store 成立七年后(2008 年 7 月 10 日),Apple 终于在 Xcode 7 中引入了一项新功能,允许您部署和运行任何设备上的任意数量的应用程序,只需使用您的 Apple ID 登录即可.您将不再需要付费计划会员资格来在您自己的设备上部署应用(如果您不习惯这样做,您当然不再需要越狱).

好吧,无论如何不适用于大多数用例.出于显而易见的原因,使用此方法部署的应用程序将无法使用某些需要计划会员资格的功能和权利,例如游戏中心和应用程序内购买.来自 Apple 的开发者文档:

<块引用>

使用免费配置(iOS、watchOS)在设备上启动您的应用

如果您不加入 Apple Developer Program,您仍然可以使用免费配置在您的设备上构建和运行您的应用.但是,您的应用程序可用的功能,在 添加功能,当您不属于 Apple Developer Program 时会受到限制.

将您的应用程序安装到您的 iOS 设备或 Apple Watch 上的准确步骤如下(为了便于浏览,省略了屏幕截图):

<块引用>

  1. 在 Xcode 中,将您的 Apple ID 添加到帐户"首选项,如 在 Xcode 中添加您的 Apple ID 帐户.

  2. 在项目导航器中,选择项目和目标以显示项目编辑器.

  3. 单击常规"并从团队"弹出菜单中选择您的姓名.

  4. 将设备连接到 Mac,然后从方案"工具栏菜单中选择您的设备.

  5. 在团队"弹出菜单下方,单击修复问题".

    Xcode 为您创建了一个免费的配置文件,Team 弹出菜单下的警告文本消失了.

  6. 点击运行按钮.

    Xcode 在启动应用程序之前在设备上安装应用程序.

在 Xcode 7 之前,确实需要程序成员身份才能签署将应用程序部署到设备所需的配置证书.唯一的其他选择是越狱.使用 Xcode 7,您不再需要越狱您的设备只是为了运行在 App Store 之外分发的应用程序,或者在您负担不起加入该计划的情况下测试应用程序,或者部署和使用您为自己个人使用而开发的应用程序如果您不打算通过 App Store 分发它们(在这种情况下,您可能根本不需要计划会员提供的权利).

How can I test an iOS application on my iPod Touch without registering for the Apple Developer Program or jailbreaking my iPod?

Neither is a viable option at the moment.

I'd like to test on the device itself instead of the onscreen simulator to see how it performs on an actual iPod.

解决方案

Seven years after the inception of the App Store (July 10, 2008), Apple has finally introduced a new feature in Xcode 7 that allows you to deploy and run any number of apps on any of your devices, simply by logging in with your Apple ID. You will no longer need a paid Program membership to deploy apps on your own device (and you certainly no longer have to jailbreak your device if you're not comfortable doing so).

Well, not for the majority of use cases anyway. For obvious reasons, certain capabilities and entitlements that require Program membership such as Game Center and in-app purchases will not be available to apps deployed using this method. From Apple's developer documentation:

Launch Your App on Devices Using Free Provisioning (iOS, watchOS)

If you don’t join the Apple Developer Program, you can still build and run your app on your devices using free provisioning. However, the capabilities available to your app, described in Adding Capabilities, are restricted when you don’t belong to the Apple Developer Program.

The precise steps to getting your app onto your iOS device or Apple Watch follow immediately thus (screenshots omitted for ease of skimming):

  1. In Xcode, add your Apple ID to Accounts preferences, described in Adding Your Apple ID Account in Xcode.

  2. In the project navigator, select the project and your target to display the project editor.

  3. Click General and choose your name from the Team pop-up menu.

  4. Connect the device to your Mac and choose your device from the Scheme toolbar menu.

  5. Below the Team pop-up menu, click Fix Issue.

    Xcode creates a free provisioning profile for you and the warning text under the Team pop-up menu disappears.

  6. Click the Run button.

    Xcode installs the app on the device before launching the app.

Prior to Xcode 7, a Program membership was indeed required in order to sign the provisioning certificates required to deploy apps to devices. The only other alternative was jailbreaking. With Xcode 7, you no longer need to jailbreak your device just to run apps distributed outside the App Store, or to test apps if you cannot afford to join the Program, or to deploy and use apps that you have developed for your own personal use if you do not intend to distribute them through the App Store (in which case you probably don't need the entitlements offered by Program membership anyway).

这篇关于在没有苹果开发者程序或越狱的设备上测试 iOS 应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆