When using @main in WidgetKit in Xcode beta 4 I get this error:
I do have @available(iOSApplicationExtension 14.0, *) above the @main. Maybe this is a bug? Because it was working in beta 3.'main()' is only available in application extensions for 14.0 or newer