After adding an extension target to Xcode project and trying to run it on iOS 14, I'm getting an error:

`SendProcessControlEvent:toPid: encountered an error: Error Domain=com.apple.dt.deviceprocesscontrolservice Code=8 "Failed to show Widget '***' error: Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=1 "Failed to get descriptors for extensionBundleID (***)" UserInfo={NSLocalizedDescription=Failed to get descriptors for extensionBundleID (***)}." UserInfo={NSLocalizedDescription=Failed to show Widget '***' error: Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=1 "Failed to get descriptors for extensionBundleID (***)" UserInfo={NSLocalizedDescription=Failed to get descriptors for extensionBundleID (***)}., NSUnderlyingError=0x7f9bac015910 {Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=1 "Failed to get descriptors for extensionBundleID (***)" UserInfo={NSLocalizedDescription=Failed to get descriptors for extensionBundleID (***)}}} Domain: DTXMessage Code: 1`

Any idea what is going wrong?
['https://Stackoverflow.com/questions/62625506', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4083045/']
**If the extension target you added was for a Widget...**

I did follow some of the suggestions here and restarted my phone to some success but the error kept happening over and over, and restarting my phone is intrusive and takes kind of a long time. For me, the workaround when I get this popup error is to..

**1. On my iPhone, I find the Widget I'm working on and delete it by pressing and holding the widget until it gives me the option to remove it from my device.**

**2. In Xcode, I build and run the Widget Scheme again, and no more error!**

It's a little faster, and I don't have to restart my phone.

**Note: If for some reason that doesn't work, I switch my build Scheme back to my iPhone Scheme, build and run, then change the Scheme back to my widget Scheme, and that usually does the trick.**
I ran into the exact same issue.

For me it happens when I ran an extension widget from an M1 computer.

Turns out the issue was I was running Xcode with Rosetta, turning that off fixed it for me.

To enable / disable rosetta:

1. Right click on the Xcode app
2. Click on `Get Info`
3. Untick `Open using Rosetta`
4. Clean project => Restart Xcode