@main not working in Xcode 12 beta 4

When using @main in WidgetKit in Xcode beta 4 I get this error:

'main()' is only available in application extensions for 14.0 or newer

I do have @available(iOSApplicationExtension 14.0, *) above the @main. Maybe this is a bug? Because it was working in beta 3.