为我的应用准备Ad Hoc Distribution [英] Preparing Ad Hoc Distribution for my app

查看:200
本文介绍了为我的应用准备Ad Hoc Distribution的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在阅读几个教程并观看一些iTube视频,看看我如何最好地准备我的应用程序进行Ad Hoc发布。然而,我得到的信息并不是真的一致,它从Apple开发人员中心的5步解释到近3分钟的视频,我必须在XCode中设置一些代码签名选项,创建和压缩存档等。
我的问题:

I have been reading several tutorials and watching some iTube videos to see how I best prepare my app for Ad Hoc distribution. However the information I got is not really consistent, it goes from the 5 step explanation from the Developer Center of Apple to a almost 3 minutes video, where I would have to set some Code Signing options in XCode, create and zip the Archive etc. My questions:

1。
是否有可用的教程,它解释了所需的一切,但不是太多?例如,我不知道是不是真的需要代码签名。

1. Is there a tutorial available, which explains everything required, but not too much? I somehow feel, for instance, that code signing is not really required.

2。
我尝试使用iTunes安装应用程序后,同步声称它无法安装它。 iTunes中是否有一些日志,所以我可以查看更多错误详情?

2. After I tried to install the app using iTunes, the synch claimed that it was not able to install it. Is there some log available in iTunes, so I can check for further error details?

3。
如何从Ad Hoc分配模式切换到普通开发者模式?在我按照视频中的步骤准备我的应用程序进行Ad Hoc分发后,我无法再在我的设备上安装它,我收到了错误

3. How about switching from Ad Hoc distribution mode to normal developer mode? After I followed the steps from the video and prepared my app for Ad Hoc distribution, I was not able to install it on my device anymore, I got the error

构建目标Abiliator
检查依赖关系
[BEROR] CodeSign错误:SDK'iOS 5.0'中产品类型'Application'需要代码签名

Build target Abiliator Check dependencies [BEROR]CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 5.0'

这是iTube上的视频教程我遵循: iPhone应用程序Ad Hoc发布演示

This is the video tutorial on iTube I followed: Demo of iPhone app Ad Hoc distribution

感谢您的反馈,周末愉快。

Thanks for your feedback and have a great weekend.

推荐答案

好的,查了一下Error
下面的工作试图劫持服务......并且看见了重新启动iPhone可以解决这个问题...猜猜是什么,我整天都在追逐一个幻影.....
它完美无缺。
所以,在第一次通过Ad Hoc安装应用程序后,有类似问题的任何人的最后提示:重启iPhone,否则应用程序可能会崩溃。

OK, looked up the Error " the following job tried to hijack the service..." and saw that a reboot of the iPhone may solve the issue... and guess what, I was chasing a phantom all day long..... It works perfectly. So last hint for anyone, having a similar issue, after installing an app via Ad Hoc the first time: Reboot iPhone, otherwise the app may crash.

干杯和现在的好消息: - )

Cheers and now good nite :-)

PS:只是为了将这个线程放在这里我最后做的步骤(如上所述,我正在使用XCode 4.2.1) ):

PS: Just to round this thread up here the steps I did at the end (as mentioned, I am using XCode 4.2.1) :


  1. 在Provisioning Portal上添加了我的设备(这是很久以前完成的,但是这是一个重要的步骤,因为beta在重新创建和下载分发配置文件之前,还需要在此处注册测试人员设备ID。

  2. 在供应门户中创建并下载iOS分发证书

  3. 在我的钥匙串中导入证书

  4. 在供应门户中创建了一个临时供应文件

  5. 下载该配置文件

  6. 双击配置文件,将其添加到XCode Organizer配置文件部分)

  7. 添加选项Any SDK和在项目的代码签名部分和我的目标中使用Ad Hoc分发代码签名身份的任何iOS SDK,并使用我刚创建和导入的Ad Hoc Provisioning File设置值

  8. 确保我的应用程序.plist文件中的选项应用程序需要iPhone环境设置为true

  9. 干净(产品/清洁)然后仅构建(产品构建)

  10. 确保我的iPhone上没有安装该应用程序(因为我之前通过XCode进行了测试)

  11. 将目标(通过Show in Show中的产品组)复制到iTunes通过拖放(我将其放入媒体部分)

  12. 通过拖放将特别配置文件复制到iTunes中(也转到媒体部分)

  13. 确保应用程序已检查同步,iTunes与iPhone同步

  14. 最后重新启动了我的iPhone!但是,我很确定,这可能只发生在开发人员设备上。我认为这是一个过程,仍然留在iPhone上,从我上次测试到XCode。

  1. Added my device on the Provisioning Portal (this had been done long time ago, however it is an important step, as the beta testers device IDs also need to be registered here before you re-create and download the distribution profile)
  2. Created and downloaded an iOS Distribution Certificate in the Provisioning Portal
  3. Imported the certificate in my Keychain
  4. Created a Ad Hoc Provisioning File in the Provisioning Portal
  5. Downloaded that profile
  6. Double clicked the profile, which added it to the XCode Organizer Provisioning Profile Section)
  7. Added the options Any SDK and Any iOS SDK in for Ad Hoc Distribution Code Signing Identity in the Code Signing section of my project AND my target and set the values with my Ad Hoc Provisioning File I just created and imported
  8. Made sure the option in my app .plist file "Application requires iPhone environment" was set to true
  9. Ran a clean (Product / Clean) and then a build only (Product Build)
  10. Made sure the app was not installed on my iPhone (as I was testing before via XCode)
  11. Copied the target (group Products via Show in Finder) to iTunes via Drag and Drop (I dropped it into the Media section)
  12. Copied the Ad Hoc Provisioning File into iTunes via Drag and Drop (also to the Media section)
  13. Made sure the app was checked for the synch, synched iTunes with the iPhone
  14. Lastly rebooted my iPhone! However, I am pretty sure, that this might occur on the Developers device only. I assume that the reason for that was a process, still remaining on the iPhone, from my last test via XCode.

我没有使用权利文件。我实际上已经找到了,该文件的真正含义,我已经读过,如果使用iCloud,它可能只是需要的。和XCode 4.2开发人员一样,XCode中没有像File / New / Entitlement Template那样的东西。检查选项权利后,将立即创建该文件,并在目标的摘要选项卡中为文件指定所需名称。

I did not use an entitlements file. I have actually to find out, what that file is really for, I have read that it might be required only, if using iCloud. And XCode 4.2 developers, there is nothing like File / New / Entitlement Template anymore in XCode. The file is created as soon as you check the option Entitlements and give the file your desired name in the Summary tab of your target.

您可能还想从Apple下载 iPhone配置实用程序

You may also want to download the iPhone Configuration Utility from apple

我也会向我的beta测试人员推荐这个,因为它可以让你看到iPhone的控制台日志,当然这可能会在出现错误时非常有帮助。

I will also recommend this to my beta testers, as it allows you to see the console log of the iPhone, which of course might be very helpful in case of errors.

希望这个摘要能帮助其他人,为第一个Ad Hoc发行版设置他们的应用。

Hope this summary helps others, setting up their app for the first Ad Hoc distribution.

干杯, René

这篇关于为我的应用准备Ad Hoc Distribution的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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