I was trying to run my app on my iphone to test it, but got this error:
error: failed to launch '/private/var/containers/Bundle/Application/some numbers/app name.app' -- iPhone name has denied the launch request.
I found some ways to solve this problem but they did't work I tried to:
- reinstall the app
- recreate the Provisioning Profile file
- delete the Developer Certificate from Keys so that it will recreate certificate
- reinstall the Xcode
- Setting 'Apple Worldwide Developer Relations Certification Authority' trust mode from 'Always trust' to 'System defaults'.
The only way to run the app on iPhone is to disable "debug executable" in scheme, but that is not the best solution because I can't use debugger, maybe there is better solution for this problem?