xcode 在我的设备中安装 iPhone 应用程序

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19293185/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 04:04:12  来源:igfitidea点击:

Install iPhone application in my device

iosiphoneobjective-cxcode

提问by etab

I was recently developing an iPhone application using Xcode. Now I want to install this app on my iPhone in order to test it.How can I do this? could you tell me please a step by step answer because I am new to this.

我最近正在使用 Xcode 开发 iPhone 应用程序。现在我想在我的 iPhone 上安装这个应用程序以测试它。我该怎么做?你能告诉我一步一步的答案吗,因为我是新手。

I have already created an account on the iPhone Dev Centernow what is the next step?

我已经在iPhone Dev Center上创建了一个帐户, 下一步是什么?

As per Apple guidelines:

根据苹果指南:

To test your app on a variety of devices and iOS versions, create a special distribution provisioning profile, called an ad hoc provisioning profile, and send it, along with the app, to testers. An ad hoc provisioning profile doesn't require that testers be enrolled in an Apple Developer Program, be added to your team, create signing certificates, or use Xcode to run your app. Instead, app testers simply install the app and the ad hoc provisioning profile on their device to launch the app. You can then collect and analyse crash reports or logs from these testers to resolve problems before you ship your app.

要在各种设备和 iOS 版本上测试您的应用程序,请创建一个特殊的分发配置文件,称为临时配置文件,并将其与应用程序一起发送给测试人员。临时配置文件不需要测试人员注册 Apple Developer Program、添加到您的团队、创建签名证书或使用 Xcode 运行您的应用程序。相反,应用测试人员只需在他们的设备上安装应用和临时配置文件即可启动应用。然后,您可以收集和分析来自这些测试人员的崩溃报告或日志,以在发布应用程序之前解决问题。

Can I do what is mentioned here? and if yes how ?

我可以做这里提到的事情吗?如果是,如何?

回答by Tapas Pal

go to memeber login area and login with your credential..

转到会员登录区域并使用您的凭据登录..

enter image description here

在此处输入图片说明

go to certificate , Identifiers & Profile tab

转到证书,标识符和配置文件选项卡

enter image description here

在此处输入图片说明

go to keychain access and create a .csr file and save it, it'll required for creating certificates

转到钥匙串访问并创建一个 .csr 文件并保存它,创建证书需要它

enter image description here

在此处输入图片说明

  1. create a certificate from certificate tab
  2. create App Ids from identifier tab
  3. Register your device UDID from Devices tab
  4. Create distribution profile from Provisioning Profile tab and download & save it.
  5. Install the Provisioning profile to your device and build your project using that profile.
  1. 从证书选项卡创建证书
  2. 从标识符选项卡创建应用程序 ID
  3. 从设备选项卡注册您的设备 UDID
  4. 从 Provisioning Profile 选项卡创建分发配置文件并下载并保存它。
  5. 将 Provisioning 配置文件安装到您的设备并使用该配置文件构建您的项目。

enter image description here

在此处输入图片说明

Archive your project and create .ipa file

归档您的项目并创建 .ipa 文件

enter image description here

在此处输入图片说明

Final step: Install that .ipa file to your device.

最后一步:将该 .ipa 文件安装到您的设备上。

Hope it'll help you. Happy Coding.....

希望它会帮助你。快乐编码.....

回答by iAhmed

With the free account you can nottest/run apps on a device.

使用免费帐户,您can not可以在设备上测试/运行应用程序。