How do you test an app on a real device with xCode?

App Development and Programming

Hello everybody,

I am new to Xcode and learning how to build my first apps. I am using Xcode 12.3.
Instead of in the simulator, I would like to test my app on my iPhone.

I connected my iPhone to my MacBook and selected it from the Scheme List and tried to run the app.
Then I get the following message:
"select a developer team in the signing & capabilities editor".

Does anyone know how I can do this with VoiceOver? I can't find such an editor anywhere.

Thanks in advance.




Submitted by Diogo Melo on Friday, February 12, 2021

Hi :) firstly you have to be registered as a developer, not the same as enrolle in the paid developer program. You just need your Apple ID to register as a free developer and you can run 3 apps per device freely.
Then in Xcode you have to go to preferences and add your Apple ID in the accounts tab.
Then the project has to be as part of your team, which means associated to your account in Xcode basically.
The easiest way is to configure it when you create the project, although it is possible to do it in an existing project.
You just go to the project navigator (sorry if I am mistaking the terms with Eclipse's, currently I'm not on my personal computer where I use Xcode), the one you access with cmd+1, go to the root of your project and then you have to navigate the editor pain until you find the signing & capabilities editor and then you associate it with your team.

I've done a step by step explanation in the blind programmers mailing list, I will try to find it and paste it here to see if it helps more than this hurried explanation during a coffee break

Submitted by Kristof on Friday, February 12, 2021

Hi Diogo and forum members,

For now I guess I'm registered as developer.

I followed the following steps:
* Cmd + Comma to go to the preferences menu (or VO + m; Xcode menu; Preferences ...)
* Navigate to Toolbar and go into it; then VO + Space on Accounts
* Leave the Toolbar and then you can choose Add account

I also clicked on Manage certificates on the Accounts tab and created one.
But I'm still struggling to connect my project to the developer team. I can't find the "signing and capabilities editor" anywhere.
My guess is that the certificate has to be approved before I can use it.

All suggestions are wellcome.


Submitted by Diogo Melo on Saturday, February 13, 2021

I am changing jobs and yesterday was a very busy day, I didn't have time to come back to the topic.

I found today my step by step instructions that I sent before in the Visually impaired programmers mailing list, I think they are still up to date and I hope they can help! But don't worry, from now on when you create a new project and associate it with your team, it will be much easier. Nonetheless it is good to know how to navigate the project properties screens.

Firstly go to the project navigator and choose/focus on the top most element of the project.
Then on the editor view go to the {YourProject}.xcodeproj group.
Then go to the third group, called project editor tab chooser radio group and interact with it. Select the second radio button: Signing & Capabilities.

Then, interact with the element after the project editor tab chooser, called project editor split view split group.
Navigate until the seventh element, a scroll area, and interact with it.
Then interact with the element Signing expanded disclosure group, that reflects the element activated in the project editor tab chooser in the second step.

Then after passing some elements you will find the Team label and then the Team Selection Pop Up Button. Here, if you already added it, you can select your account.

Submitted by Kristof on Saturday, February 13, 2021

Hi Diogo and forum members,

Today I started a new project in Xcode.
In the setup dialog I choosed the development team.
And surprice, surprice: I can now test my app on my iPhone!

Tip: On my iPhone, I first had to go to Settings; General; Device Management to accept myself as thrusted developer.

Thanks for helping figure it out.


Submitted by Diogo Melo on Sunday, February 14, 2021

Great, configuring when starting a new project is the fastest way!
There are lots of configurations to do in the project settings, when you need to use them you already know where to find them.

Have fun developing and testing ;)

Submitted by Oriol Gomez on Monday, February 15, 2021

Just to clear things up, you don't need to be a developer to test on your own device. Only oif you want to distribute the app you need to be registered as an Apple Developer and pay the $99 fee.