How to run apps on Real devices using Xcode 8 without enrolling to Apple's Developer Program?

放肆的年华 提交于 2019-11-30 08:35:44

You need to connect a device to Xcode and allow it to register it on your personal team. This will allow Xcode to create profiles for you (profiles cannot be created unless there is at least one device registered).

kalyan

You need to register a device.

To do so:

  1. From the project navigator, next to the Run/Play button, click on your project name and find the Devices menu. You will see "No devices connected to Mac".
  2. Click on that and connect your device to your MacBook via USB cable. The device will show up on the MacBook.
  3. On the device, accept to trust the device. Xcode will register the device and do the necessary tasks.
  4. Select the device. This should automatically resolve the signing error/provisioning profile issue.
  5. Click Run/Play to run the project on the selected device. This will run the app on the device.

Later you can remove the USB cable to test your app on the device. If you would like to copy the changes to your device, connect the device again and run.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!