简体   繁体   English

将开发的应用程序安装到iPhone设备

[英]Installing Developed Application into iphone device

Can anybody help me to install my developed app into an device. 谁能帮助我将开发的应用程序安装到设备中。 what are the steps to execute my application in device. 在设备中执行我的应用程序的步骤是什么? how can i connect the device to run my application in device???? 如何连接设备以在设备中运行我的应用程序?

Please help me out. 请帮帮我。

Thank you.. 谢谢..

Creating ad-hoc distribution profiles 创建临时分发配置文件

The instructions that Apple provides are not very concise or clear. 苹果提供的说明不是很简洁。 This is how I created a general provisioning profile that will work with multiple apps, and added a beta tester. 这就是我创建可与多个应用程序一起使用的常规配置文件的方式,并添加了Beta测试器。

My setup: 我的设置:

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:将设备添加到Provisioning Portal

  1. Send an email to each beta tester with the following message: 发送电子邮件给每个Beta测试人员,并显示以下消息:

    To get my app on onto your iPhone I need some information about your phone. 要将我的应用程序安装到您的iPhone上,我需要有关您手机的一些信息。 Guess what, there is an app for that! 猜猜是什么,为此有一个应用程序!

    Click on the below link and install and then run the app. 单击下面的链接并安装,然后运行该应用程序。

    http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=285691333&mt=8 http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=285691333&mt=8

    This app will create an email. 该应用程序将创建一封电子邮件。 Please send it to me. 请寄给我。

  2. Collect all the UDIDs from your testers. 从测试人员那里收集所有UDID。

  3. Go to the Provisioning Portal . 转到预配门户

  4. Go to the section Devices . 转到设备部分。

  5. Click on the button Add Devices and add the devices previously collected. 单击添加设备按钮,然后添加以前收集的设备。

Step B: Create a new provisioning profile 步骤B:创建新的配置文件

  1. Start the Mac OS utility program Keychain Access . 启动Mac OS实用程序“ 钥匙串访问”

  2. In its main menu, select Keychain Access / Certificate Assistant / Request a Certificate From a Certificate Authority... 在其主菜单中,选择“ 钥匙串访问” /“证书助手” /“从证书颁发机构请求证书...”。

  3. The dialog that pops up should aready have your email and name it it. 弹出的对话框应该包含您的电子邮件并命名。

  4. Select the radio button Saved to disk and Continue. 选择单选按钮“ 保存到磁盘”,然后继续。

  5. Save the file to disk. 将文件保存到磁盘。

  6. Go back to the Provisioning Portal . 返回到Provisioning Portal

  7. Go to the section Certificates . 转到“ 证书 ”部分。

  8. Go to the tab Distribution . 转到选项卡分发

  9. Click the button Request Certificate . 单击请求证书按钮。

  10. Upload the file you created with Keychain Access: CertificateSigningRequest.certSigningRequest . 上载您使用钥匙串访问创建的文件: CertificateSigningRequest.certSigningRequest

  11. Click the button Aprove . 点击按钮批准

  12. Refresh your browser until the status reads Issued . 刷新浏览器,直到状态显示为Issued

  13. Click the Download button and save the file distribution_identify.cer . 单击下载按钮,然后保存文件distribution_identify.cer

  14. Doubleclick the file to add it to the Keychain. 双击文件将其添加到钥匙串。

  15. Backup the certificate by selecting its private key and the File / Export Items... . 通过选择证书的私钥文件/导出项目...来备份证书。

  16. Go back to the Provisioning Portal again. 再次返回到Provisioning Portal

  17. Go to the section Provisioning . 转到“ 供应 ”部分。

  18. Go to the tab Distribution . 转到选项卡分发

  19. Click the button New Profile . 点击按钮New Profile

  20. Select the radio button Ad hoc . 选择单选按钮Ad hoc

  21. Enter a profile name, I named mine Evertsson Common Ad Hoc . 输入个人资料名称,我将其命名为Evertsson Common Ad Hoc

  22. Select the app id. 选择应用程序ID。 I have a common app id to use for multiple apps: Evertsson Common . 我有一个用于多个应用程序的通用应用程序ID: Evertsson Common

  23. Select the devices, in my case my own and my tester's. 选择设备,在我的情况下,选择我自己的设备,然后选择测试仪的设备。

  24. Submit. 提交。

  25. Refresh the browser until the status field reads Active . 刷新浏览器,直到状态字段显示为Active

  26. Click the button Download and save the file to disk. 单击下载按钮,然后将文件保存到磁盘。

  27. Doubleclick the file to add it to Xcode. 双击文件将其添加到Xcode。

Step C: Build the app for distribution 步骤C:构建用于分发的应用

  1. Open your project in Xcode. 在Xcode中打开您的项目。

  2. Open the Project Info pane: In Groups & Files select the topmost item and press Cmd+I . 打开“ 项目信息”窗格:在“ 组和文件”中,选择最上面的项目,然后按Cmd + I。

  3. Go to the tab Configuration . 转到选项卡配置

  4. Select the configuration Release . 选择配置Release

  5. Click the button Duplicate and name it Distribution . 单击复制按钮,并将其命名为Distribution

  6. Close the Project Info pane. 关闭项目信息窗格。

  7. Open the Target Info pane: In Groups & Files expand Targets , select your target and press Cmd+I . 打开“ 目标信息”窗格:在“ 组和文件”中,展开“ 目标” ,选择目标,然后按Cmd + I。

  8. Go to the tab Build . 转到选项卡Build

  9. Select the Configuration named Distribution . 选择名为Distribution配置

  10. Find the section Code Signing . 找到“ 代码签名 ”部分。

  11. Set the value of Code Signing Identity / Any iPhone OS Device to iPhone Distribution . 将“ 代码签名身份/任何iPhone OS设备”的值设置为 iPhone分发”

  12. Close the Target Info pane. 关闭“目标信息”窗格。

  13. In the main window select the Active Configuration to Distribution . 在主窗口中,选择“要分发活动配置”

  14. Create a new file from the file template Code Signing / Entitlements . 从文件模板代码签名/权利创建一个新文件。

  15. Name it Entitlements.plist . 将其命名为Entitlements.plist

  16. In this file, uncheck the checkbox get-task-allow . 在此文件中,取消选中get-task-allow复选框。

  17. Bring up the Target Info pane, and find the section Code Signing again. 调出“ 目标信息”窗格,然后再次找到“ 代码签名 ”部分。

  18. After Code Signing Entitlements enter the file name Entitlements.plist . 代码签名权利之后,输入文件名Entitlements.plist

  19. Save, clean, and build the project. 保存,清理和构建项目。

  20. In Groups & Files find the folder MyApp / Products and expand it. 在“ 组和文件”中,找到文件夹MyApp / Products并将其展开。

  21. Right click the app and select Reveal in Finder . 右键单击该应用,然后选择“ 在Finder中显示”

  22. Zip the .app file and the .mobileprovision file and send the archive to your tester. 压缩.app文件和.mobileprovision文件,然后将存档发送到测试人员。

    Here is my app. 这是我的应用程序。 To install it onto your phone: 要将其安装到手机上:

    1. Unzip the archive file. 解压缩存档文件。

    2. Open iTunes. 打开iTunes。

    3. Drag both files into iTunes and drop them on the Library group. 将两个文件都拖放到iTunes中,然后将它们放在“库”组中。

    4. Sync your phone to install the app. 同步手机以安装应用程序。

Done! 做完了! Phew. ew This worked for me. 这对我有用。 So far I've only added one tester. 到目前为止,我只添加了一个测试器。

See Installing developed application into iPhone device 请参阅将开发的应用程序安装到iPhone设备

You will need a developers account, iTunes, a Mac computer, and the iPhone. 您将需要一个开发人员帐户,iTunes,Mac计算机和iPhone。

Follow this tutorial: 遵循本教程:

http://mobiforge.mobi/developing/story/deploying-iphone-apps-real-devices http://mobiforge.mobi/developing/story/deploying-iphone-apps-real-devices

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM