临时部署 [英] Ad-hoc Deployment

查看:130
本文介绍了临时部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Apple Ad-Hoc部署将应用程序部署到20个iOS设备(iPhone和iPad).我需要从特定计算机推出应用程序.我将要使用的某些设备可能已同步到计算机.

I would like to deploy an app to 20 iOS devices (iPhones and iPads) using Apple Ad-Hoc Deployment. I need to push out the application from a particular computer. Some of the devices that I will be using might have already been synced to computers.

我猜想,一旦将这些设备同步到计算机上(将用于从中部署应用程序),以前已同步到计算机上的每个设备上的内容都将被擦除.那是对的吗?有办法解决吗?

I'm guessing that once I sync these devices to the computer I'll be using to deploy the app from, the content on each device that has previously been synced to a computer will be wiped. Is that correct? Is there a way around that?

推荐答案

如果您不想使用testflight,这是另一种无线解决方案:

If you don't want to use testflight, here is another over-the-air solution:

  1. 在您的xcode项目中,转到Product > Archive

在操作完成后出现的xcode组织器窗口中单击Distribute

Click Distribute in the xcode organizer window that appears when the operation is complete

单击Save for Enterprise or Ad Hoc Deployment并选择下一步

选择临时设置配置文件(在developer.apple.com的成员中心中创建.确保配置文件中包含所有20个设备uuid.

Choose your ad hoc provisioning profile (created in the member center at developer.apple.com. Make sure it has all 20 device uuids included on the profile.

单击Export

保存.确保单击Save for enterprise distribution复选框并填写所需的信息.应用程序URL将是以http://或https://开头的URL,该URL将进入您的文件(请参阅下一步)

Save it. Make sure to click on the Save for enterprise distribution checkbox and fill out the required info. Application URL will be the URL starting with http:// or https:// that will go to your files (see next step)

这将保存两个文件yourFilename.ipayourFileName.plist.将这些文件复制到您的Web服务器.

This will save two files yourFilename.ipa and yourFileName.plist. Copy these files to your webserver.

现在是魔术.您需要使用itms-services://?action=download-manifest&url=http://yourwebserver.com/path/to/yourFileName.plist

Now for the magic. You need to make a link somewhere with the URL itms-services://?action=download-manifest&url=http://yourwebserver.com/path/to/yourFileName.plist

假设您所有的链接均正常工作,并且配置文件正确无误,则该应用程序应开始安装在单击该链接的任何注册设备上.

Assuming all your links work and your provisioning profiles are correct, the app should start installing on any registered device that clicks on that link.

如果您不希望无线下载,可以将在第6步中生成的.ipa文件分发给您的20个人(他们的设备仍必须在供应配置文件中注册).他们可以在iTunes中打开该文件,然后将您的应用与他们的设备同步.

If you don't want over the air downloads, you can distribute that .ipa file that was generated in step 6 to your 20 people (their devices must be registered on the provisioning profile still). They can open that file in iTunes and then sync your app with their devices.

通过无线或与iTunes同步安装应用程序不会擦除任何设备的内容.

Installation of an application over the air or by syncing with iTunes will not wipe the content of any devices.

这篇关于临时部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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