Phone build "Unable to install APPNAME" ERROR

I have an app I'm building in iPhone.
But i have a problem. Please somebody help me~~~~ :(

  • Xcode: 13.2.1
  • Mac: 12.2.1
  • iPhone: 15.3.1

Details:

Unable to install "SwiftSampleLY_embed" Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402620375 User Info: {   DVTErrorCreationDateKey = "2022-02-24 07:57:04 +0000";   IDERunOperationFailingWorker = IDEInstalliPhoneLauncher; }

The code signature version is no longer supported. Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402620375 User Info: {

This happens to me quite often. Here's what I do:

  1. Shut down Xcode.
  2. Unplug iOS device from computer.
  3. Reboot.
  4. Plug iOS device back in.
  5. Start Xcode.
  6. Clean project.
  7. Try again.

If it still doesn't work, do the above again, BUT also reboot the iOS device.

For me, it's due to Dynamic Frameworks which I have added in the application. Initially, I have selected (Embed & Sign) option for the dynamic frameworks. Changing it to (Do not Embed & Sign) for such frameworks resolved the issue for me.

Phone build "Unable to install APPNAME" ERROR
 
 
Q