ios 您如何对 iPhone 应用进行 Beta 测试?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/40154/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do you beta test an iphone app?
提问by Michael Pryor
How can you beta test an iPhone app? I can get it on my own device, and anyone that gives me a device, I can run it on theirs, but is there a way to do a limited release via the app store for beta testing?
如何对 iPhone 应用进行 Beta 测试?我可以在我自己的设备上获得它,任何给我设备的人,我都可以在他们的设备上运行它,但是有没有办法通过应用商店进行有限发布以进行 beta 测试?
Related: Also, see this questionon getting your app onto phones without using the App Store.
采纳答案by Jason
In year 2011, there's a new service out called "Test Flight", and it addresses this issue directly.
2011年,有一个新的服务叫“试飞”,它直接解决了这个问题。
Apple has since bought TestFlight in 2014 and has integrated it into iTunes Connect and App Store Connect.
Apple 于 2014 年收购了 TestFlight,并将其集成到 iTunes Connect 和 App Store Connect 中。
回答by Arne Evertsson
Creating ad-hoc distribution profiles
创建临时分发配置文件
The instructions that Apple provides are here, but here is how I created a general provisioning profile that will work with multiple apps, and added a beta tester.
Apple 提供的说明在这里,但这里是我如何创建一个适用于多个应用程序的通用配置文件,并添加了一个 beta 测试人员。
My setup:
我的设置:
- Xcode 3.2.1
- iPhone SDK 3.1.3
- Xcode 3.2.1
- iPhone SDK 3.1.3
Before you get started, make sure that..
在开始之前,请确保..
- You can run the app on your own iPhone through Xcode.
- 您可以通过 Xcode 在您自己的 iPhone 上运行该应用程序。
Step A: Add devices to the Provisioning Portal
步骤 A:将设备添加到配置门户
Send an email to each beta tester with the following message:
To get my app on onto your iPhone I need some information about your phone. Guess what, there is an app for that!
Click on the below link and install and then run the app.
http://itunes.apple.com/app/ad-hoc-helper/id285691333?mt=8
This app will create an email. Please send it to me.
Collect all the UDIDs from your testers.
Go to the Provisioning Portal.
Go to the section Devices.
Click on the button Add Devicesand add the devices previously collected.
向每个 Beta 测试人员发送一封电子邮件,其中包含以下消息:
要将我的应用程序安装到您的 iPhone,我需要一些有关您手机的信息。你猜怎么着,有一个应用程序!
单击下面的链接并安装并运行该应用程序。
http://itunes.apple.com/app/ad-hoc-helper/id285691333?mt=8
此应用程序将创建电子邮件。请发给我。
从测试人员那里收集所有 UDID。
转至供应门户。
转至设备部分。
单击“添加设备”按钮并添加之前收集的设备。
Step B: Create a new provisioning profile
步骤 B:创建新的配置文件
Start the Mac OS utility program Keychain Access.
In its main menu, select Keychain Access / Certificate Assistant / Request a Certificate From a Certificate Authority...
The dialog that pops up should aready have your email and name it it.
Select the radio button Saved to diskand Continue.
Save the file to disk.
Go back to the Provisioning Portal.
Go to the section Certificates.
Go to the tab Distribution.
Click the button Request Certificate.
Upload the file you created with Keychain Access: CertificateSigningRequest.certSigningRequest.
Click the button Aprove.
Refresh your browser until the status reads Issued.
Click the Download buttonand save the file distribution_identify.cer.
Doubleclick the file to add it to the Keychain.
Backup the certificate by selecting its private keyand the File / Export Items....
Go back to the Provisioning Portalagain.
Go to the section Provisioning.
Go to the tab Distribution.
Click the button New Profile.
Select the radio button Ad hoc.
Enter a profile name, I named mine Evertsson Common Ad Hoc.
Select the app id. I have a common app id to use for multiple apps: Evertsson Common.
Select the devices, in my case my own and my tester's.
Submit.
Refresh the browser until the status field reads Active.
Click the button Downloadand save the file to disk.
Doubleclick the file to add it to Xcode.
启动 Mac OS 实用程序Keychain Access。
在其主菜单中,选择Keychain Access / Certificate Assistant / Request a Certificate From a Certificate Authority...
弹出的对话框应该有您的电子邮件并为其命名。
选择单选按钮保存到磁盘并继续。
将文件保存到磁盘。
返回到供应门户。
转到证书部分。
转到选项卡分发。
单击按钮请求证书。
上传您使用钥匙串访问创建的文件:CertificateSigningRequest.certSigningRequest。
单击按钮批准。
刷新浏览器,直到状态显示为已发布。
单击下载按钮并保存文件distribution_identify.cer。
双击文件以将其添加到钥匙串。
通过选择其私钥和File / Export Items...来备书。
再次返回到Provisioning Portal。
转至部分供应。
转到选项卡分发。
单击按钮新建配置文件。
选择单选按钮Ad hoc。
输入配置文件名称,我将我的名称命名为Evertsson Common Ad Hoc。
选择应用程序 ID。我有一个用于多个应用程序的通用应用程序 ID:Evertsson Common。
选择设备,在我的情况下是我自己的和我的测试者的。
提交。
刷新浏览器,直到状态字段显示为Active。
单击“下载”按钮并将文件保存到磁盘。
双击该文件以将其添加到 Xcode。
Step C: Build the app for distribution
步骤 C:构建用于分发的应用程序
Open your project in Xcode.
Open the Project Infopane: In Groups & Filesselect the topmost item and press Cmd+I.
Go to the tab Configuration.
Select the configuration Release.
Click the button Duplicateand name it Distribution.
Close the Project Info pane.
Open the Target Infopane: In Groups & Filesexpand Targets, select your target and press Cmd+I.
Go to the tab Build.
Select the Configurationnamed Distribution.
Find the section Code Signing.
Set the value of Code Signing Identity / Any iPhone OS Deviceto iPhone Distribution.
Close the Target Info pane.
In the main window select the Active Configurationto Distribution.
Create a new file from the file template Code Signing / Entitlements.
Name it Entitlements.plist.
In this file, uncheck the checkbox get-task-allow.
Bring up the Target Infopane, and find the section Code Signingagain.
After Code Signing Entitlementsenter the file name Entitlements.plist.
Save, clean, and build the project.
In Groups & Filesfind the folder MyApp / Productsand expand it.
Right click the app and select Reveal in Finder.
Zip the .app file and the .mobileprovision file and send the archive to your tester.
Here is my app. To install it onto your phone:
Unzip the archive file.
Open iTunes.
Drag both files into iTunes and drop them on the Library group.
Sync your phone to install the app.
在 Xcode 中打开您的项目。
打开Project Info窗格:在Groups & Files 中选择最上面的项目,然后按Cmd+I。
转到选项卡Configuration。
选择配置Release。
单击按钮Duplicate并将其命名为Distribution。
关闭项目信息窗格。
打开Target Info窗格:在Groups & Files 中展开Targets,选择您的目标并按Cmd+I。
转到选项卡Build。
选择名为Distribution的配置。
找到代码签名部分。
将Code Signing Identity / Any iPhone OS Device的值设置为iPhone Distribution。
关闭目标信息窗格。
在主窗口中选择Active Configurationto Distribution。
从文件模板代码签名/权利创建一个新文件。
将其命名为Entitlements.plist。
在此文件中,取消选中复选框get-task-allow。
调出Target Info窗格,再次找到Code Signing部分。
在代码签名权利之后输入文件名Entitlements.plist。
保存、清理和构建项目。
在Groups & Files 中找到文件夹MyApp / Products并展开它。
右键单击该应用程序并选择在 Finder 中显示。
压缩 .app 文件和 .mobileprovision 文件并将存档发送给您的测试人员。
这是我的应用程序。要将其安装到您的手机上:
解压缩存档文件。
打开 iTunes。
将这两个文件拖到 iTunes 中,然后将它们放到“库”组中。
同步您的手机以安装该应用程序。
Done! Phew. This worked for me. So far I've only added one tester.
完毕!呼。这对我有用。到目前为止,我只添加了一名测试人员。
回答by abg
Note that there is a distinction between traditional "beta testing" which is done by professional QA engineers, and "public beta testing" which is releasing your product to the public before it's ready : )
请注意,由专业 QA 工程师完成的传统“beta 测试”与在您的产品准备就绪之前向公众发布的“公共 beta 测试”之间存在区别:)
You can do "beta testing" -- loading to specific iPhones/iPods your testers will be using. You can't do "public beta testing" -- pre-releasing to the public.
您可以进行“beta 测试”——加载到您的测试人员将使用的特定 iPhone/iPod。您不能进行“公开 Beta 测试”——预先向公众发布。
回答by Midhun MP
In 2014 along with iOS 8 and XCode 6 apple introduced Beta Testing of iOS Appusing iTunes Connect.
2014 年,与 iOS 8 和 XCode 6 一起,苹果推出了使用 iTunes Connect的 iOS App Beta 测试。
You can upload your build to iTunes connect and invite testers using their mail id's. You can invite up to 2000external testers using just their email address. And they can install the beta app through TestFlight
您可以将您的构建上传到 iTunes 连接并使用他们的邮件 ID 邀请测试人员。您可以仅使用他们的电子邮件地址邀请多达2000 名外部测试人员。他们可以通过TestFlight安装测试版应用程序
回答by Saranjith
Diawi Alternatives
迪亚维替代品
Since diawi.com have added some limitations for free accounds.
由于 diawi.com 对免费帐户添加了一些限制。
Next best available and easy to use alternative is
下一个可用且易于使用的最佳替代方案是
Microsoft
微软
谷歌
https://firebase.google.com/docs/app-distribution/ios/distribute-console
https://firebase.google.com/docs/app-distribution/ios/distribute-console
Others
其他
Happy build sharing!
快乐构建分享!
回答by Hari Ganesan
There's a relatively new service called HockeyApp, which seems to rival TestFlight, however they claim to give you access to unlimited users, but it does cost some $$ unlike TestFlight which has now been integrated directly into iTunes Connect.
有一个名为HockeyApp的相对较新的服务,它似乎可以与 TestFlight 竞争,但是他们声称可以让您访问无限的用户,但与 TestFlight 现在已直接集成到 iTunes Connect 不同,它确实花费了一些美元。
回答by brixtar
With iOS 8, Xcode 6, iTunes Connect and TestFlight you don't need UDIDs and Ad Hocs anymore. You will just need an Apple ID from your beta tester. Right now you can only beta test your app with 25 internal testers, but soon 1000 external testers will be available too. This blog postshows you how to setup a beta test with internal testers.
使用 iOS 8、Xcode 6、iTunes Connect 和 TestFlight,您不再需要 UDID 和 Ad Hoc。您只需要 Beta 版测试人员提供的 Apple ID。目前,您只能使用 25 名内部测试人员对您的应用进行 Beta 测试,但很快就会有 1000 名外部测试人员可用。这篇博文向您展示了如何与内部测试人员一起设置 Beta 测试。
回答by Vineet Choudhary
You can use AppBox, A mac application that uses your dropbox account to distribute you ad-hoc and enterprise apps, if you want to install form any other browser.
如果您想从任何其他浏览器安装,您可以使用AppBox,这是一个使用您的 Dropbox 帐户向您分发临时和企业应用程序的 mac 应用程序。
https://github.com/vineetchoudhary/AppBox-iOSAppsWirelessInstallation/releases
https://github.com/vineetchoudhary/AppBox-iOSAppsWirelessInstallation/releases
Options
选项
Archive and Upload IPA
存档和上传 IPA
- Just Select Project/Workspace to archive-> make ipa-> upload ipa-> send mail-> and shutdown mac
- 只需选择要存档的项目/工作区->制作 ipa->上传 ipa->发送邮件-> 并关闭 mac
Upload IPA Only
仅上传 IPA
- Just select IPA file to upload ipa-> send mail-> and shutdown mac
- 只需选择 IPA 文件上传 ipa->发送邮件-> 并关闭 mac
Feature
特征
- Keep Same Link
- This feature will keep same short url for all future ipa uploaded with same bundle identifier.
- If this option is enabled, you can also download the previous build with same url.
- Auto E-MailApp Distribution Link
- Auto Shutdown Macafter Distribution
- Maximum Upload Size=> Equal to your Dropbox account storage
- Uploaded App Expiration=> Until you delete from your Dropbox
- Installations Per App=> Unlimited
Dashboard
*
*
Will be available in future version
- 保持相同链接
- 此功能将为以后使用相同捆绑标识符上传的所有 ipa 保留相同的短网址。
- 如果启用此选项,您还可以使用相同的 url 下载以前的版本。
- 自动电子邮件应用程序分发链接
- 分发后自动关闭 Mac
- 最大上传大小=> 等于您的 Dropbox 帐户存储空间
- 上传的应用程序过期=> 直到您从 Dropbox 中删除
- 每个应用程序的安装=> 无限制
仪表盘
*
*
将在未来版本中可用
AppBox vs Diawi
AppBox vs Diawi
Screenshot
截屏
Upload IPA
上传 IPA
Archive and Upload IPA
存档和上传 IPA
Uploading IPA
上传 IPA
Give it a try here https://github.com/vineetchoudhary/AppBox-iOSAppsWirelessInstallation/releases
在这里尝试一下https://github.com/vineetchoudhary/AppBox-iOSAppsWirelessInstallation/releases
回答by Saurabh
Using testflight :
使用测试飞行:
1) create the ipa file by development certificate
1)通过开发证书创建ipa文件
2) upload the ipa file on testflight
2)在testflight上上传ipa文件
3) Now, to identify the device to be tested on , add the device id on apple account and refresh your development certificate. Download the updated certificate and upload it on testflight website. Check the device id you are getting.
3)现在,要识别要测试的设备,在苹果帐户上添加设备ID并刷新您的开发证书。下载更新的证书并将其上传到 testflight 网站。检查您获得的设备 ID。
4) Now email the ipa file to the testers.
4) 现在将 ipa 文件通过电子邮件发送给测试人员。
5) While downloading the ipa file, if the testers are not getting any warnings, this means the device token + provisioning profile has been verified. So, the testers can now download the ipa file on device and do the testing job...
5) 在下载 ipa 文件时,如果测试人员没有收到任何警告,则表示设备令牌 + 配置文件已通过验证。因此,测试人员现在可以在设备上下载 ipa 文件并进行测试工作...
回答by tilo
(As the official guide is still missing in this thread..)
(由于该线程中仍然缺少官方指南..)
TestFlight, acquired by Apple and now (iOS8+) available for beta testing makes it easy to hand your app to beta testers without the need to collect device UUIDs beforehand (you only need email addresses of your testers). An extensive guide explaining all necessary steps may be found in the iTunes Connect Developer Guide.
TestFlight被 Apple 收购,现在 (iOS8+) 可用于 Beta 测试,让您可以轻松地将您的应用交给 Beta 测试人员,而无需事先收集设备 UUID(您只需要测试人员的电子邮件地址)。可在iTunes Connect 开发人员指南 中找到解释所有必要步骤的详尽指南。