[S:1] Error received: Connection invalidated on empty project

Hello everyone,

I'm encountering a persistent issue with my newly created widget project, even though it’s a clean, minimal setup. Every time I try to run the widget on the simulator or a device, I get the following error message:

[S:1] Error received: Connection invalidated.

I get this error even in a new project (I just created a new one) when I add a widget extension to it. The app itself works fine—no errors—but when I try to install the widget extension, it always shows me this error.

Initially, I thought the issue was caused by an incorrect URLSession, but even after creating a clean (default) widget extension, the issue persists. I don’t know what to think anymore.

Has anyone encountered this before? It’s completely blocking my progress.

Conditions - new project from iOS App template

WidgetExtension from template with no changes

Iphone 14 pro

IOS - 18.3.2

i'm having the same issue, MacOS sequoia 15.4.1, xcode's version 16.3, and iPhone 15 pro device running on ios 18.4.1.

[S:1] Error received: Connection invalidated.

  • cleared cache.
  • both devices on same wifi connection.
  • connected with apple's original cable.
  • no vpn used.
  • tried with xcode's simulators
  • tried with an old iphone 12
[S:1] Error received: Connection invalidated on empty project
 
 
Q