简体   繁体   English

如何在不注册Apple开发者计划的情况下使用Xcode 7在iPhone / iPad上运行应用程序?

[英]How to run apps on iPhone/iPad using Xcode 7 without enrolling to Apple's Developer Program?

I have a Macbook with OSX 10.10.3, Xcode 7 beta and an iPhone 4. I haven't enrolled to Apple's Developer Program. 我有一台带有OSX 10.10.3,Xcode 7 beta和iPhone 4的Macbook。我还没有注册Apple的开发者计划。 I think that since the latest WWDC any developer can run apps on their device. 我认为,自最新的WWDC以来,任何开发者都可以在他们的设备上运行应用程序 How can I achieve that on a real device in Xcode 7 Beta? 如何在Xcode 7 Beta中的真实设备上实现这一目标?

Please follow the steps below: 请按照以下步骤操作:

  1. Install Xcode 7. 安装Xcode 7。

  2. Give a unique bundle identifier (any unique identifier): 提供唯一的包标识符(任何唯一标识符):

    在此输入图像描述

  3. Select a valid team from the "Team" option (you can add an account from Xcode preferences, but there is also an option for adding an account): 从“团队”选项中选择一个有效的团队(您可以从Xcode首选项添加帐户,但也可以选择添加帐户):

    在此输入图像描述

  4. Then click on Fix Issue . 然后单击Fix Issue It will take some time and will be resolved. 这需要一些时间才能得到解决。 (If you are getting any error, then there may be some issue with your Apple developer account.) (如果您收到任何错误,那么您的Apple开发者帐户可能会出现问题。)

  5. If you are not getting any kind of error after clicking on Fix Issue , then your set up succeeded: 如果在单击“ 修复问题”后没有收到任何类型的错误,那么您的设置成功:

    在此输入图像描述

  6. Now connect your device. 现在连接您的设备。 Run your code on Xcode 7 by selecting the destination as your connected device name. 通过选择目标作为连接的设备名称,在Xcode 7上运行代码。

I have tried it with the Xcode 7 beta version. 我已经尝试过使用Xcode 7测试版。

The following will work on any iOS/OSX version: 以下内容适用于任何iOS / OSX版本:

  1. Download and install the Xcode 7 beta. 下载并安装Xcode 7 beta。

  2. Open Xcode 7, open preferences->Account and click on add button left side of pop up, choose Add Apple ID and login to your Apple Account. 打开Xcode 7,打开首选项 - >帐户,然后单击弹出窗口左侧的添加按钮,选择添加Apple ID并登录到您的Apple帐户。

  3. Plug in your iPhone and select it as the build destination. 插入iPhone并选择它作为构建目标。

  4. We now need to generate a code signing signature for the app. 我们现在需要为应用程序生成代码签名签名。 Click on the project on the left, fill in a unique “Bundle Identifier” and click on “Fix Issue” (make sure your name is selected as “team”). 单击左侧的项目,填写一个唯一的“捆绑标识符”,然后单击“修复问题”(确保您的名称被选为“团队”)。

  5. Click the play button in the top left. 单击左上角的播放按钮。 If there's no build errors the app should now launch on your phone! 如果没有构建错误,应用程序现在应该在您的手机上启动!

The following article from 9to5mac.com outlines how you are able to run apps on your iPhone without a developer account: 以下来自9to5mac.com的文章概述了如何在没有开发者帐户的情况下在iPhone上运行应用程序:

截图

Apple has changed its policy regarding permissions required to build and run apps on devices. Apple已经更改了有关在设备上构建和运行应用程序所需权限的政策。 Until now, Apple required users to pay $99/year to become a member of Apple's Developer Program in order to run code on physical iPhone and iPads. 到目前为止,Apple要求用户每年支付99美元才能成为Apple开发者计划的成员,以便在物理iPhone和iPad上运行代码。 As part of the new Developer Program, this is no longer required. 作为新开发人员计划的一部分,不再需要这样做。 Apps can be tested on devices, no purchase necessary. 可以在设备上测试应用,无需购买。

However, this technically means that developers will be able to release apps outside of the App Store as long as they are open-sourced. 但是,这在技术上意味着开发人员只要是开源的,就可以在App Store之外发布应用程序。 Interested users could then open the code in Xcode, compile and run it on their own devices — avoiding the App Store completely. 感兴趣的用户可以在Xcode中打开代码,在自己的设备上编译和运行 - 完全避开App Store。

This is somewhat similar to how Android allows users to sideload apps from unknown sources, although its a bit more complicated as sideloading requires a physical connection and a Mac running Xcode to build the apps. 这有点类似于Android允许用户从未知来源侧载应用程序的方式,虽然它有点复杂,因为侧载需要物理连接和运行Xcode的Mac来构建应用程序。 As it's not really meant for this purpose (its main purpose is for developers to test their own software on real hardware), more technical knowledge is needed to actually sideload something than with the Android flow. 因为它并不是真正意图用于此目的(其主要目的是让开发人员在真实硬件上测试他们自己的软件),所以需要更多的技术知识来实际加载某些东西而不是Android流程。

It's not really an optimal solution for most developers but some apps could foreseeably be distributed this way. 对于大多数开发人员来说,它并不是一个真正的最佳解决方案,但有些应用程序可以预见到这种方式。 For instance, GBA4iOS is an open-source Game Boy Advance emulator for iPhone and iPad. 例如,GBA4iOS是一款适用于iPhone和iPad的开源Game Boy Advance模拟器。

With the new policy change, customers can theoretically download the application code from the open-source tree and build it locally. 随着新的策略更改,客户理论上可以从开源树下载应用程序代码并在本地构建它。 Then, they can use Xcode to run it on their device. 然后,他们可以使用Xcode在他们的设备上运行它。 Emulators are a good example of something that Apple will not allow in the store but are commonly open-sourced and could be installed through this method. 仿真器是Apple在商店中不允许但通常是开源的并且可以通过这种方法安装的一个很好的例子。 Bouke van der Bijl has written up some good instructions on how to achieve this, if you are interested. 如果你感兴趣的话,Bouke van der Bijl已经写了一些关于如何实现这个目标的好的指示。

With this change, you really only need to pay for the Developer Program if you want to actually submit to the App Store. 通过此更改,如果您想要实际提交到App Store,您只需要为开发者计划付费。 To submit apps through iTunes Connect to Apple for review, a paid active membership is still required. 要通过iTunes Connect向Apple提交应用以供审核,仍需要付费的有效会员资格。 Apple says it dropped the fee to allow even more budding developers to join in the iOS world as many people (such as younger candidates and people from less-privileged backgrounds) who were deterred by the $99 subscription fee. 苹果表示,它已经放弃了让更多新手开发者加入iOS世界的费用,因为许多人(例如年轻的候选人和来自不太优秀的背景的人)被99美元的订阅费吓倒了。

If you are like me and have had a play around with xCode 8 and want to run your app on your phone/ipad but don't want to pay $99 for the privilege then here is what helped me. 如果你像我一样并且玩过xCode 8并且希望在你的手机/ ipad上运行你的应用程序,但又不想支付99美元的特权,那么这就是帮助我的。

go to developer.apple.com and click on account on top right and sign in with your apple id. 转到developer.apple.com并点击右上角的帐户,然后使用您的苹果ID登录。 You will be asked to sign an agreement. 您将被要求签署协议。

go to Xcode and open preferences->Accounts and click on add (+) button left bottom side of pop up, choose Add Apple ID and login to your Apple Account. 转到Xcode并打开首选项 - >帐户,然后单击弹出的左下方添加(+)按钮,选择添加Apple ID并登录到您的Apple帐户。

back in the Accounts screen select your apple ID and on the bottom right click "view details". 返回“帐户”屏幕,选择您的苹果ID,然后在右下角单击“查看详细信息”。 In the popup under signing identities click on the button create next to iOS Development and then Done 在签名身份下的弹出窗口中,单击iOS Development旁边的按钮创建,然后单击Done

exit out of preferences and plug in your phone to the computer. 退出首选项并将手机插入计算机。 From the dropdown menus at the top of Xcode go Product->Destination and then select your phone. 从Xcode顶部的下拉菜单中选择Product-> Destination,然后选择您的手机。

Now when you run your project it should load to your phone. 现在,当您运行项目时,它应该加载到您的手机。 You may need to go the the settings app on your phone -> General -> Device Management -> approve you as a developer 您可能需要使用手机上的设置应用程序 - >常规 - >设备管理 - >批准您作为开发人员

暂无
暂无

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

相关问题 如何在不注册Apple开发人员计划的情况下使用Xcode 8在Real设备上运行应用程序? - How to run apps on Real devices using Xcode 8 without enrolling to Apple's Developer Program? 是否可以在不注册Apple开发人员计划的情况下使用Xcode 8在真实设备上运行项目? - Is it possible to run projects on real devices using Xcode 8 without enrolling to Apple's Developer Program? 我可以在不注册开发人员程序的情况下在iPhone上测试我的应用程序吗? - Can I test my app on IPhone without enrolling in developer program? 在没有成为Apple开发人员的情况下开发iPhone应用程序 - Developing iphone apps without being a apple developer 如何在Xcode7中创建没有Apple Developer Program的ipa - How to create ipa without Apple Developer Program in Xcode7 如何在不使用USB线将设备连接到Macbook的情况下,将Apple设备(iPad或iPhone)无线连接到Xcode? - How to wirelessly connect Apple devices (iPad or iPhone) to Xcode without connecting the device to the Macbook using USB cable? 没有苹果开发人员计划,是否可以分发应用程序? - Is it possible to distribute apps without the Apple Developer Program? 我是否必须加入苹果的开发人员计划才能在Xcode 5.1上运行任意代码? - Do i have to join apple's developer program in order to run anypic code on Xcode 5.1? Xcode 7.2中如何在没有Apple开发人员程序且没有连接设备的情况下生成IPA文件? - How to generate IPA file without apple developer program and without a connected device in Xcode 7.2? 没有苹果开发者帐户,如何降级Xcode? - How to downgrade Xcode without apple developer account?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM