10

I'm running Xcode 10 and iOS 12.1 on my iPhone 6S Plus. The app works when running in simulator, but when running my app in Xcode with my phone connected, i get this error:

iPhone has denied the launch request.

error

My iPhone is a trusted device on my mac, and i have my signing certificate. I've spent hours googling for a solution but none of them are working for me.

Anyone have any ideas?

Sateesh Yemireddi
  • 4,289
  • 1
  • 20
  • 37
Joshua Isaac
  • 113
  • 1
  • 8
  • Is it happening every time? This usually happens when the app is being opened by Xcode, and at the same time your iPhone gets locked. Try removing the passcode in your device and see if it works. – badhanganesh Nov 08 '18 at 17:36
  • Please try to plug out and reconnect the device to Mac and run the project again make sure the device without being locked while the app is installing. – Sateesh Yemireddi Nov 08 '18 at 17:55
  • I have same problem. You find an issue? – Ororuk Mar 15 '19 at 17:58

10 Answers10

9

I was also facing similar issue. What work for me is to change the trust to "Use System Defaults" (Previously it was always ask) in "Apple worldwide developer relation certificate authority" in keychain.

enter image description here

3

My solution worked: Menu Xcode - Product - Scheme - Edit scheme - Build Configuration -> [Release] (instead of Debug) + Debug executable -> [remove the cross]

Wings
  • 31
  • 1
3

I have faced the same issue when I run the build-in ad hoc profile and I have fixed it by unchecking the " Debug executable " option from the Product -> Scheme -> Edit Scheme.

enter image description here

Varun P V
  • 1,092
  • 1
  • 12
  • 30
1

Try upgrading from XCode 10 to XCode 10.1. The SDKs for iOS 12.1 were added in XCode 10.1, so XCode might be having trouble communicating with your device because it's on a higher OS version than it understands.

Columbo
  • 6,648
  • 4
  • 19
  • 30
0

In project , open your project's TARGETS.

1.Check your Provisioning Profile whether is match Signing certificate
2.In debug their are develope profile and certificate,and in release their are distribution profile and certificate
3.[enter link description here][1]if you don't determine, there is a easy way to help you,xcode offer the Automatically manage signing ,just in xocode tick this option.look this here

This will help: iPhone has denied the launch request

Gobi
  • 83
  • 7
0

Select the Project> Target > Build Settings. Search PROVISIONING_PROFILE and remove whatever is there. Then run.

emraz
  • 1,563
  • 20
  • 28
0

Check you certificate in keychain if its double delete one of them > Quit XCODE > Clean > Build again ( This work to me )

Evan Laksana
  • 410
  • 3
  • 7
  • 17
0

edit scheme > uncheck debug executable.....this works but make you lose debug capabilities.

what is really worked for me without losing the debug capabilities is doing the following

  1. open keychain
  2. search for iphone developer certificate
  3. delete it (Xcode will create another one for you)
  4. relaunch the app Xcode will ask for your computer password type it and you are done

i found this answer thanks to Tommy Callaway on youtube video link

0

The solution for me was to delete ALL my apple dev certs locally, then approve them during the next build process.

But def make sure you've set the provisioning profile for your project, that's a classic..

Keychain Access

0

On my device, I went to Settings -> General -> Profiles & Device Management. I then tapped on the 'developer app entry' which displayed my personal development team. On the next screen I chose to trust apps from this developer (me).

Kai
  • 186
  • 2
  • 10