xcode 将我的 iPhone 应用程序放在我的手机上进行测试?

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

Putting my iPhone app on my phone to test?

iphonexcode

提问by jDOG

How do I take my working iPhone app and put it on my phone to test with? I dont seem to see how and my googleing doesn't turn up what I think I am looking for...

如何将我的工作 iPhone 应用程序放在我的手机上进行测试?我似乎没有看到我的谷歌搜索没有找到我认为我正在寻找的东西......

I am a registered developer and have paid my $99 already.

我是注册开发商,已经支付了我的 99 美元。

Would anyone know?

有人会知道吗?

回答by Muhammad Junaid Iqbal

Note:I have already placed the same answer somewhere else for the same question.

注意:对于同一个问题,我已经在其他地方放置了相同的答案。

There are some steps you need to follow to test your app on your personal iPhone. Below you can find all the steps:

您需要遵循一些步骤来在您的个人 iPhone 上测试您的应用程序。您可以在下面找到所有步骤:

  1. Create a MAC certificate at first step.
  2. Upload that certificate to developer account.
  3. Open developer account at https://developer.apple.com
  4. You can now find an option for device id in your developer account on left side.
  5. Register your iPhone device.
  6. It is time to create your unique identifier on developer account, download your certificate and install it on XCode organize
  7. Now open your project and embed your unique identifier in your project.
  1. 第一步创建 MAC 证书。
  2. 将该证书上传到开发者帐户。
  3. https://developer.apple.com 上打开开发者帐户
  4. 您现在可以在左侧的开发者帐户中找到设备 ID 选项。
  5. 注册您的 iPhone 设备。
  6. 是时候在开发者帐户上创建您的唯一标识符,下载您的证书并将其安装在 XCode 组织上
  7. 现在打开您的项目并将您的唯一标识符嵌入到您的项目中。

These steps can be beneficial for all software testing gusy involved in mobile application testing.

这些步骤对于移动应用程序测试中涉及的所有软件测试都是有益的。

回答by Mitch Dempsey

You need to register as an Apple developer. This will cost you $99/year.

您需要注册为 Apple 开发人员。这将花费您 99 美元/年。

That is the only way that I know of apart from Jailbreaking your phone.

除了越狱你的手机,这是我所知道的唯一方法。

回答by Franci Penov

Open Xcode Organizer window and provision your device for development. This will register the device UID with Apple and install the development provisioning profile on it. If you don't have provisioning profile, Xcode will create one automatically.

打开 Xcode Organizer 窗口并配置您的设备以进行开发。这将向 Apple 注册设备 UID 并在其上安装开发配置文件。如果您没有配置文件,Xcode 会自动创建一个。

Once this is done, you need to set your build to use your DEV cert to aign your app. Then you can switch the build configuration from Simulator to Device and build and run on your phone.

完成此操作后,您需要将构建设置为使用您的 DEV 证书来管理您的应用程序。然后您可以将构建配置从 Simulator 切换到 Device 并在您的手机上构建和运行。

回答by jsan

  • Did you just complie your project or you complied and Run? If you Build your project and you have no errors it means everything it's ok. The next step is to Build and Run your project or just Run your project.

  • If you Run your project and nothing happens it means that you have something worn in your target configuration. Did you change anything there? In the Project Tab in your XCode go to Edit Active Target Settings and check that your Base SDK and Target SDK match your iDevice SDK.

  • IF you don't find out what the problem is, contact me, i could help you in anything you need.

  • 你是刚刚编译你的项目还是编译并运行?如果您构建项目并且没有错误,则意味着一切正常。下一步是构建并运行您的项目或仅运行您的项目。

  • 如果您运行您的项目并且没有任何反应,则意味着您的目标配置中有一些磨损。你在那里改变了什么?在 XCode 的 Project 选项卡中,转到 Edit Active Target Settings 并检查您的 Base SDK 和 Target SDK 是否与您的 iDevice SDK 匹配。

  • 如果您没有找出问题所在,请与我联系,我可以为您提供任何需要的帮助。