How to use .appStoreOverlay while keeping support for macCatalyst?

I'm using this modifier for my AppClip
Code Block
.appStoreOverlay(isPresented: $showAppStoreOverlay) {
SKOverlay.AppClipConfiguration(position: .bottomRaised)
}

When I enable Mac Catalyst support, I get a compile error on SKOverlay with ('SKOverlay' is unavailable in Mac Catalyst) and on .appStoreOverlay with (Value of type 'some View' has no member 'appStoreOverlay')
I tried fixing it by wrapping my ContentView with #if targetEnvironment(macCatalyst).. something like:
Code Block
#if targetEnvironment(macCatalyst)
ContentView()
#else
ContentView()
.appStoreOverlay(isPresented: $showAppStoreOverlay) {
SKOverlay.AppClipConfiguration(position: .bottomRaised)
}
#endif


This gets rid of the SKOverlay error but I still the compile error for .appStoreOverlay
https://developer.apple.com/forums/thread/656574 I found this answer from an Apple engineer but for me the case is the opposite, it compiles fine on the simulator but it doesn't on the real device which I need if I want to archive the app
This should be resolved with Xcode 12.1 GM seed (12A7403) and macOS Big Sur 11 beta 10 (20A5395g). Please file a bug if you are still experiencing issues with these builds.
How to use .appStoreOverlay while keeping support for macCatalyst?
 
 
Q