Widget Extension not work on simulator on MAC M1

I just created a simple app + simple widget (just from Xcode template, no change any thing) When run the Widget, I got error: Details

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

System Information macOS Version 11.6 (Build 20G165) Xcode 13.0 (19234) (Build 13A233) Timestamp: 2021-11-08T16:30:18+07:00 My MAC M1, 2020

I tried to build on my iPhone, it worked well. Please help!

I have same issue. Someone has good solution?

I added arm64 to Excluded Architecture to run app in the iOS simulator.
Like this. https://stackoverflow.com/questions/63607158/xcode-12-building-for-ios-simulator-but-linking-in-an-object-file-built-for-io

M1, macOS12.0.1, Xcode13.1

Widget Extension not work on simulator on MAC M1
 
 
Q