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/']
This happened to me after moving my entitlements file from the root directory into the widget's directory. I tried [this answer](https://stackoverflow.com/a/62669069/467209) but the problem persisted.

I had to manually install the widget on the Home Screen. After that running from Xcode worked again.
As mentioned here <https://developer.apple.com/forums/thread/651611>, setting *New Build System* in *File -> Workspace/Project settings* (for both *Shared* and *Per User* settings) seems to do the trick. You won't get rid of the warning, but the widget **might** (see notes) run.

Note 1 - even after this change, there seems to be about 30 % chance that it wont run. Just hit Run again ‍♂️. (*Debug Navigator* stuck on *Waiting to Attach*)

Note 2 - sometimes this doesn't work altogether. Setting *Build System* to *Legacy* and back to *New* worked for me ‍♂️.

Note 3 - running on device is so far without these problems (iOS 14 beta 7)

Tested on Xcode 12 beta v6.