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

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

问题描述

如果没有注册苹果开发者程序或越狱我的ipod,我如何测试iOS应用程序?



目前还不是一个可行的选择。



我想在设备本身进行测试,而不是屏幕上的模拟器,以了解它在实际ipod上的运行情况。


<苹果终于在Xcode 7中引入了新的功能,允许您部署和运行任何您的任何设备上的应用数量,只需使用您的Apple ID登录即可。 您不再需要付费计划会员才能在自己的设备上部署应用程序(如果您不舒服,您肯定不再需要越狱)。



嗯,绝对不是大多数用例。由于显而易见的原因,使用此方法部署的应用程序将无法使用某些需要程序会员资格(如Game Center和应用内购买)的功能和权利。来自 Apple的开发人员文档


使用免费配置(iOS,watchOS)在设备上启动应用程序



如果您不加入Apple开发者计划,您仍然可以使用免费配置在设备上构建和运行应用程序。但是,在添加功能在您不属于Apple开发人员计划时受到限制。


将应用程序移动到iOS设备或Apple Watch上的确切步骤立即执行(屏幕截图略为轻松):



  1. 在Xcode中,将您的Apple ID添加到帐户首选项,描述在在Xcode中添加您的Apple ID帐户。 p>


  2. 在项目导航器中,选择项目和您的tar


  3. 点击常规,从团队弹出菜单中选择您的名字。


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


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



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


  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 emulator, 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天全站免登陆