Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 10 - iPhone has denied request to launch

Tags:

xcode

ios

iphone

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?

like image 358
Joshua Isaac Avatar asked Nov 08 '18 17:11

Joshua Isaac


Video Answer


3 Answers

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

like image 192
Varun P V Avatar answered Oct 02 '22 08:10

Varun P V


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

like image 24
Shailesh Dodia Avatar answered Oct 02 '22 06:10

Shailesh Dodia


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

like image 36
Wings Avatar answered Oct 02 '22 06:10

Wings