在真正的iPhone上测试应用程序 [英] Test App on Real iPhone

查看:188
本文介绍了在真正的iPhone上测试应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

将iphone应用程序从xcode部署到iphone

您好我已经使用iOS模拟器测试了我的应用程序。我如何在自己的iPhone上测试?我是Apple开发人员。

Hi I have tested my app using the iOS simulator. How can I test it on my own iphone? I am an Apple developer member.

推荐答案

您需要的第一件事就是开发证书。访问iOS配置门户并按照此处的步骤操作: http://developer.apple.com/ios /manage/certificates/team/howto.action

The first thing you need is a development certificate. Visit the iOS provisioning portal and follow the steps here: http://developer.apple.com/ios/manage/certificates/team/howto.action:

完成后,您可以从Xcode执行其他所有操作。使用Xcode 4:

Once that is done, you can do everything else from Xcode. Using Xcode 4:


  1. 通过USB连接设备。

  2. 打开Xcode组织器(窗口 - >管理器

  3. 选择配置配置文件

  1. Connect your device via USB.
  2. Open the Xcode organizer (Window->Organizer)
  3. Select "Provisioning Profiles"

检查自动设备配置复选框,然后单击刷新

Check the "Automatic Device Provisioning" checkbox and click "Refresh"

系统将提示您输入开发者帐户的用户名和密码。这样做。

You will be prompted to enter your developer account username and password. Do this.

此步骤将自动创建和下载通配符(*)配置文件,您可以使用它来测试设备上的任何应用程序。

This step will automatically create and download a wildcard (*) provisioning profile that you can use for testing any application on your device.

几秒钟后,您会看到此新配置文件显示在列表中,名称为Team Provisioning Profile:*

After a few seconds you should see this new profile appear in the list with the name "Team Provisioning Profile: *"

重新启动Xcode只是为了安全。有时可能会感到困惑。

Restart Xcode just to be safe. Sometimes it can get confused.

打开一个项目并从主方案下拉框中选择您的设备:

Open a project and select your device from the main schemes dropdown box:

构建并运行。

如果不能立即生效,请确保您的目标具有正确的代码签名选项。找到目标的构建设置,对于Debug配置,在下拉列表中的Automatic Profile Selector组下选择iPhone Developer:

If that doesn't work straight away, make sure your target has the correct code signing options. Find your target's build settings and for the Debug configuration choose "iPhone Developer" under the "Automatic Profile Selector" group in the dropdown:

默认情况下应选择此项。

This should be selected by default.

祝你好运!

这篇关于在真正的iPhone上测试应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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