Joshua Isaac
Joshua Isaac

Reputation: 113

Xcode 10 - iPhone has denied request to launch

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?

Upvotes: 10

Views: 7871

Answers (10)

Gobi
Gobi

Reputation: 83

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

Upvotes: 0

Kai
Kai

Reputation: 186

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).

Upvotes: 0

Varun P V
Varun P V

Reputation: 1233

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

Upvotes: 3

Truck Driver
Truck Driver

Reputation: 1

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

Upvotes: 0

mohamed fawzy
mohamed fawzy

Reputation: 1

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

Upvotes: 0

Wings
Wings

Reputation: 31

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

Upvotes: 3

Evan Laksana
Evan Laksana

Reputation: 443

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

Upvotes: 0

emraz
emraz

Reputation: 1613

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

Upvotes: 0

Shailesh Dodia
Shailesh Dodia

Reputation: 141

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

Upvotes: 10

Columbo
Columbo

Reputation: 6776

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.

Upvotes: 1

Related Questions