如何对iPhone应用进行测试?我可以在自己的设备上运行游戏,任何人给我设备,我都可以在他们的设备上运行游戏,但有没有办法通过应用商店进行beta测试?

相关:另外,在不使用app Store的情况下将应用程序安装到手机上。


当前回答

(因为官方指南在这个帖子中仍然缺失..)

TestFlight已被苹果收购,现在(iOS8+)可用于beta测试,这使得你可以轻松地将应用交给测试人员,而无需事先收集设备uuid(你只需要测试人员的电子邮件地址)。在iTunes Connect开发者指南中可以找到解释所有必要步骤的广泛指南。

其他回答

请注意,传统的“beta测试”是由专业QA工程师完成的,而“公开beta测试”是在产品准备好之前向公众发布的。

你可以进行“beta测试”——将内容加载到测试者将要使用的特定iphone / ipod上。你不能进行“公测测试”,即提前向公众发布。

创建临时分发配置文件

苹果提供的说明在这里,但这里是我如何创建一个通用配置文件,可以与多个应用程序一起工作,并添加了一个测试版测试器。

我的设置:

Xcode 3.2.1之上 iPhone SDK 3.1.3

在你开始之前,请确保…

你可以通过Xcode在自己的iPhone上运行这款应用。

步骤A:将设备添加到Provisioning Portal

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 Devices and add the devices previously collected.

步骤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 disk and 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 button and save the file distribution_identify.cer. Doubleclick the file to add it to the Keychain. Backup the certificate by selecting its private key and the File / Export Items.... Go back to the Provisioning Portal again. 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 Download and save the file to disk. Doubleclick the file to add it to Xcode.

步骤C:构建用于发行的应用

Open your project in Xcode. Open the Project Info pane: In Groups & Files select the topmost item and press Cmd+I. Go to the tab Configuration. Select the configuration Release. Click the button Duplicate and name it Distribution. Close the Project Info pane. Open the Target Info pane: In Groups & Files expand Targets, select your target and press Cmd+I. Go to the tab Build. Select the Configuration named Distribution. Find the section Code Signing. Set the value of Code Signing Identity / Any iPhone OS Device to iPhone Distribution. Close the Target Info pane. In the main window select the Active Configuration to 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 Info pane, and find the section Code Signing again. After Code Signing Entitlements enter the file name Entitlements.plist. Save, clean, and build the project. In Groups & Files find the folder MyApp / Products and 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.

完成了!唷。这对我很管用。到目前为止,我只添加了一个测试人员。

Diawi Alternatives

因为diawi.com增加了一些免费帐户的限制。

接下来最好的和容易使用的替代是

微软

https://appcenter.ms

谷歌

https://firebase.google.com/docs/app-distribution/ios/distribute-console

其他人

https://hockeyapp.net/

http://buildtry.com

快乐构建分享!

在iOS 8、Xcode 6、iTunes Connect和TestFlight中,你不再需要udid和Ad Hocs了。你只需要一个测试版测试者的Apple ID。现在你只能通过25个内部测试员测试你的应用,但很快就会有1000个外部测试员可用。这篇博文将向您展示如何使用内部测试人员设置beta测试。

使用testflight:

1)通过开发证书创建ipa文件

2) testflight上传ipa文件

3)现在,为了识别要测试的设备,在apple帐户上添加设备id并刷新您的开发证书。下载更新后的证书并上传至试飞网站。检查您正在获取的设备id。

4)现在将ipa文件通过电子邮件发送给测试人员。

5)当下载ipa文件时,如果测试人员没有得到任何警告,这意味着设备令牌+供应配置文件已经被验证。所以,测试人员现在可以在设备上下载ipa文件并进行测试工作……