Getting "Unable to install MyApp" Generated by Xcode Version 13.4.1 on real device iPhone 13 Pro Max

I am new to app development and I am trying to launch my app generated by Xcode 13.4.1 on my real device iPhone 13 Max Pro but I am getting Unable to install "MyApp". It's been days browsing resources I still could not figure this out.

My Xcode project configuration looks like this:

MyApp > Signing & Capabilities > Targets > MyAppName > All

Signing (Debug)

  • Automatically manage signing is checked
  • Team is selected
  • Bundle Identifier is set
  • Provisioning profile is set to Xcode Managed Profile
  • Signing Certificate: Apple Development: MyAccountName

MyApp > Signing & Capabilities > Targets > MyAppNameTests > All

Signing

  • Automatically manage signing is checked
  • Team is selected
  • Platform: iOS
  • Signing Certificate: Apple Development: MyAccountName
  • Bundle Identifier: Use iOS bundle identifier
  • Provisioning profile None Required

Error Details

Unable to install "MyAppName"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620395
User Info: {
  DVTErrorCreationDateKey = "2022-07-23 21:36:34 +0000";
  IDERunOperationFailingWorker = IDEInstalliPhoneLauncher;
}


A valid provisioning profile for this executable was not found.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620395

My app is already accepted on appstore but I am making changes to fix some issues and I want to quickly launch it through Xcode.

Please help me out.

Thank you

Accepted Reply

For those who are struggling with the same thing, I managed to fix the issue by Scheme definition to debug. Previously, it was set to release.

In your case, open up Xcode, Goto Products > Schema > Edit Schema > Change to "Debug"

Replies

For those who are struggling with the same thing, I managed to fix the issue by Scheme definition to debug. Previously, it was set to release.

In your case, open up Xcode, Goto Products > Schema > Edit Schema > Change to "Debug"