I'm trying to add a simple new widget target to my existing project.
But before i'm adding even 1 line of code, and i click on the preview button i see the following error:

Cannot preview in this file -- Message send failure for relaunch
MessageSendFailure: Message send failure for relaunch
==================================
| RemoteHumanReadableError |
|---|
| ProcessError: Failed to launch widget extension: The operation couldn’t be completed. (CHSErrorDomain error 1050.) |
As much as i understand, there is an issue with the Apple M1 silicon chip, the same one that i have. but it's not make sense that everyone with M1 are not able to work with widgets. I tried the following steps already:
- clear all xCode cache & derived data.
- restart my computer.
- check/uncheck the "Copy only when installing" checkbox in the "Embed App Extensions".
- check/uncheck "Include Configuration Intent" checkbox in the widgets creation form on xCode.
But nothing works.
Update: i tried to do the same thing with none M1 macbook chip and it works fine. so the issue is related to the M1 chip for sure. any ideas if there is something to do about it?
