Suddenly, cannot install app on device

Hi,

I am using Xcode 16.4, and my test device is Iphone 16 pro max. Everything was working fine until today when I get an error that I cannot install the app on the device. The error I get is: Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.cRjyg7/extracted/[myapp].app : 0xe8008015 (A valid provisioning profile for this executable was not found.)

Please ensure sure that your app is signed by a valid provisioning profile.

Creating a new project and installing it to the mobile works fine.

Please can someone from Apple or the community respond? there are many posts with this error but none were solved.

Troubleshooting attempts included:

  1. Resetting all certificates.
  2. delete the app from the device
  3. unpairing device
  4. codesigning via cli
  5. reloading older git code commit

Nothing is working.

thanks

Suddenly, cannot install app on device
 
 
Q