Reputation: 113
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.
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
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
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
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.
Upvotes: 3
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..
Upvotes: 0
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
i found this answer thanks to Tommy Callaway on youtube video link
Upvotes: 0
Reputation: 31
My solution worked: Menu Xcode - Product - Scheme - Edit scheme - Build Configuration -> [Release] (instead of Debug) + Debug executable -> [remove the cross]
Upvotes: 3
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
Reputation: 1613
Select the Project> Target > Build Settings. Search PROVISIONING_PROFILE and remove whatever is there. Then run.
Upvotes: 0
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.
Upvotes: 10
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