How do I run an app on a device without an Apple developer account

Viewed 6466

I've found several sites with information on how this can be done, but none that seems to apply to Xcode 10.1 or iOS 12.1. The ones I've tried don't seem to work. I've tried this:

  1. Create an empty swift project 'single view app'

  2. Set the Signing Team to my Personal Team (Apple ID)

  3. Set the active scheme to my connected (USB) iPhone 7 plus

  4. Press the Play button

What I get is a 'Failed with exit code 1' and a horrendous log message.

My device turns up with a red frame in the active scheme dropdown list. What does that mean?

I'm running a MacBook Air with High Sierra. Any help is appreciated.

2 Answers

You need to only have a free account then add it to

Xcode->Preferences->Accounts

after that select it in automatic signing process , then you'll get a trust message upon first run to fix go to

Settings->General->Device Managament -> Your profile name -> Trust

then re run

  1. You just need to have apple developer account, which is free. If you don't have that create a using this link:- https://developer.apple.com

  2. Go to Xcode -> Preferences -> Accounts, login with your developer account, and download profiles.

enter image description here

  1. Select your project, Go to general tab, select automatically manage signing and Team as your personal team.

  2. Run your project, After successful build. you will get an error in Xcode stating your app is not from trustworthy source.

  3. Now in your device, Go to Settings, search for "Device Managament", select Your profile name and Trust.

  4. Run your app again.

Related