xcode 如何在设备上首次测试 iPhone 应用程序?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5041398/
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 to test an iPhone app on a device for the first time?
提问by Senthilkumar
I am developing an app for iPhone. How can I test this app on my device?
我正在为 iPhone 开发一个应用程序。如何在我的设备上测试这个应用程序?
What are the procedures to follow? Please give information regarding this problem.
要遵循哪些程序?请提供有关此问题的信息。
回答by Robert Harvey
Deploying iPhone Apps to Real Devices
http://mobiforge.com/developing/story/deploying-iphone-apps-real-devices
将 iPhone 应用程序部署到真实设备
http://mobiforge.com/developing/story/deploying-iphone-apps-real-devices
In brief:
简单来说:
- Sign up for the iPhone Developer Program
- Obtain an iPhone Development Certificate
- Generate a Certificate Signing Request
- Generate, download and install your provisioning profile
- Download and install your Development Certificate
- Deploy your iPhone application.
- 注册 iPhone 开发者计划
- 获得iPhone开发证书
- 生成证书签名请求
- 生成、下载和安装您的配置文件
- 下载并安装您的开发证书
- 部署您的 iPhone 应用程序。
回答by Govind
Things you will need are
你需要的东西是
- your private key.
- your provisioning profile (with the UUID of your device added).
- go to project settings and change code signing entity to your distribution profile.
- 你的私钥。
- 您的配置文件(添加了您设备的 UUID)。
- 转到项目设置并将代码签名实体更改为您的分发配置文件。
then you can build and run after connecting your device.
然后您可以在连接设备后构建和运行。
回答by Muhammad Junaid Iqbal
There are some steps you need to follow to test your app on your personal iPhone. Below you can find all the steps:
您需要遵循一些步骤来在您的个人 iPhone 上测试您的应用程序。您可以在下面找到所有步骤:
- Creat MAC certificate at first step.
- Second step is to upload that certificate to developer account.
- Now you should open developer account at http://www.developer.apple.com
- You can now find an option for device id in your developer account on left side.
- Now you should register your iphone device.
- It is time to create your unique identifier on developer account
- Download your certificate and install it on xcode organize
- Now open your project embed your unique identifier in your project.
- 第一步创建MAC证书。
- 第二步是将该证书上传到开发者帐户。
- 现在您应该在http://www.developer.apple.com 上开设开发者帐户
- 您现在可以在左侧的开发者帐户中找到设备 ID 选项。
- 现在您应该注册您的 iPhone 设备。
- 是时候在开发者帐户上创建您的唯一标识符了
- 下载您的证书并将其安装在 xcode 组织上
- 现在打开您的项目,在您的项目中嵌入您的唯一标识符。
These steps can be beneficial for all software testing gusy involved in mobile application testing.
这些步骤对于移动应用程序测试中涉及的所有软件测试都是有益的。
回答by diagonalbatman
1) Open Xcode,
1)打开Xcode,
2) Go to Active SDK, and select the OS version running on your test device (viewable by going to Settings->General->About on the device).
2) 转到 Active SDK,然后选择在您的测试设备上运行的操作系统版本(可通过设备上的 Settings->General->About 查看)。
3) With your project open, click on "Build and Run" (or press Command-R) to run the project, which will prompt you to allow access to your keychain.
3) 打开项目后,单击“构建并运行”(或按 Command-R)以运行项目,这将提示您允许访问您的钥匙串。
4) Once deployed, the app will run automatically. Distribution
4) 一旦部署,应用程序将自动运行。分配
回答by Nicholas Valbusa
First of all, to run the app on your phisical device you must enroll to the apple developer program. Second, generate a developer certificate and download it. Then, import the certificate into Xcode and here you go.
首先,要在您的物理设备上运行该应用程序,您必须注册苹果开发者计划。其次,生成开发者证书并下载。然后,将证书导入 Xcode,然后就可以了。