临时部署 [英] Ad-hoc Deployment
问题描述
我想使用 Apple Ad-Hoc 部署将应用部署到 20 台 iOS 设备(iPhone 和 iPad).我需要从特定计算机推出应用程序.我将使用的某些设备可能已经同步到计算机.
我猜,一旦我将这些设备同步到我将用来部署应用程序的计算机,之前已同步到计算机的每台设备上的内容都将被擦除.那是对的吗?有办法解决吗?
如果您不想使用 testflight,这里是另一种无线解决方案:
在您的 xcode 项目中,转到
Product >存档
在操作完成后出现的xcode管理器窗口中点击
Distribute
点击
Save for Enterprise or Ad Hoc Deployment
并选择下一步选择您的临时配置文件(在 developer.apple.com 的会员中心创建.确保该文件中包含所有 20 个设备 uuid.
点击
导出
保存.确保点击
保存用于企业分发
复选框并填写所需信息.应用程序 URL 将以 http://或 https://开头的 URL 将转到您的文件(请参阅下一步)这将保存两个文件
yourFilename.ipa
和yourFileName.plist
.将这些文件复制到您的网络服务器.现在是魔法.您需要使用 URL
itms-services://?action=download-manifest&url=http://yourwebserver.com/path/to/yourFileName.plist
假设您的所有链接都有效并且您的配置文件正确无误,该应用应该会开始安装在任何点击该链接的已注册设备上.
如果您不想通过无线方式下载,您可以将第 6 步中生成的 .ipa 文件分发给您的 20 个人(他们的设备仍然必须在配置文件中注册).他们可以在 iTunes 中打开该文件,然后将您的应用与他们的设备同步.
通过无线方式或通过与 iTunes 同步安装应用程序不会擦除任何设备的内容.
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?
If you don't want to use testflight, here is another over-the-air solution:
In your xcode project go to
Product > Archive
Click
Distribute
in the xcode organizer window that appears when the operation is completeClick
Save for Enterprise or Ad Hoc Deployment
and choose nextChoose 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.
Click
Export
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)This will save two files
yourFilename.ipa
andyourFileName.plist
. Copy these files to your webserver.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.
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.
Installation of an application over the air or by syncing with iTunes will not wipe the content of any devices.
这篇关于临时部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!