Unable to install app in My Devices. A valid provisioning profile for this executable was not found

I am trying to run my app on my iPhone (version 16). And I have the latest Xcode version 14. Also, I have a provision profile and certificate set.

System Information

macOS Version 12.6 (Build 21G115) Xcode 14.0.1 (21336) (Build 14A400)

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

Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : {
  "device_model" = "iPhone13,4";
  "device_osBuild" = "16.0 (20A362)";
  "device_platform" = "com.apple.platform.iphoneos";
  "launchSession_schemeCommand" = Run;
  "launchSession_state" = 1;
  "launchSession_targetArch" = arm64;
  "operation_duration_ms" = 5463;
  "operation_errorCode" = "-402620395";
  "operation_errorDomain" = "com.apple.dt.MobileDeviceErrorDomain";
  "operation_errorWorker" = IDEInstalliPhoneLauncher;
  "operation_name" = IDEiPhoneRunOperationWorkerGroup;
  "param_consoleMode" = 0;
  "param_debugger_attachToExtensions" = 0;
  "param_debugger_attachToXPC" = 1;
  "param_debugger_type" = 5;
  "param_destination_isProxy" = 0;
  "param_destination_platform" = "com.apple.platform.iphoneos";
  "param_diag_MainThreadChecker_stopOnIssue" = 0;
  "param_diag_MallocStackLogging_enableDuringAttach" = 0;
  "param_diag_MallocStackLogging_enableForXPC" = 1;
  "param_diag_allowLocationSimulation" = 1;
  "param_diag_checker_tpc_enable" = 1;
  "param_diag_gpu_frameCapture_enable" = 0;
  "param_diag_gpu_shaderValidation_enable" = 0;
  "param_diag_gpu_validation_enable" = 0;
  "param_diag_memoryGraphOnResourceException" = 0;
  "param_diag_queueDebugging_enable" = 1;
  "param_diag_runtimeProfile_generate" = 0;
  "param_diag_sanitizer_asan_enable" = 0;
  "param_diag_sanitizer_tsan_enable" = 0;
  "param_diag_sanitizer_tsan_stopOnIssue" = 0;
  "param_diag_sanitizer_ubsan_stopOnIssue" = 0;
  "param_diag_showNonLocalizedStrings" = 0;
  "param_diag_viewDebugging_enabled" = 1;
  "param_diag_viewDebugging_insertDylibOnLaunch" = 1;
  "param_install_style" = 0;
  "param_launcher_UID" = 2;
  "param_launcher_allowDeviceSensorReplayData" = 0;
  "param_launcher_kind" = 0;
  "param_launcher_style" = 0;
  "param_launcher_substyle" = 0;
  "param_runnable_appExtensionHostRunMode" = 0;
  "param_runnable_productType" = "com.apple.product-type.application";
  "param_runnable_type" = 2;
  "param_testing_launchedForTesting" = 0;
  "param_testing_suppressSimulatorApp" = 0;
  "param_testing_usingCLI" = 0;
  "sdk_canonicalName" = "iphoneos16.0";
  "sdk_osVersion" = "16.0";
  "sdk_variant" = iphoneos;
}
--

Same issue. I'm trying to find fix second day. I've tried to revoke cert, recreate provisioning profile, reinstall xcode, downgrade xcode, clean all data, reset profiles on device, erase device. Up! Help!

Same issue. I'm trying to find fix second day. I've tried to use automatic and manual signing, revoke cert, recreate provisioning profile, reinstall xcode, downgrade xcode, clean all data, reset profiles on device, erase device. Up! Help

Have you tried signing out of your account inside Xcodes preferences, and signing back in? That should refresh the developer profiles.

After long search I found the reason and solution for me. One of my libraries was embedded without a signature. It used to work as is and I don't know what happened last time (no changes in the project in the last 2 weeks). I changed it to "Embed & Sing". Now it works. Hope it helps you

I cant leave comment so I will try explain more here. I started receive this error after erasing my phone. It was working with xcode14 Looks like earlier when I was using xcode13 I saved provisioning profile to my phone and even after upgrade to 14 all were ok. After erase phone I received this error cos this profile was deleted but xcode14 requires sign for libs. So what I did: Project Setting - Target - General - Frameworks, Libraries, and Embedded Content Right here I have my own library which had "Embedded Without Signing" property. I've changed it to "Embed & Sign". Also try to check your all libs and pods, maybe one of them was updated and it requires a sign.

After 2 days' search and experiment, I found that cleaning build folder solved my issue.

Unable to install app in My Devices. A valid provisioning profile for this executable was not found
 
 
Q