I've developed an iOS App and want to bring it to macOS with Catalyst. Everything works out fine, I could optimise the layout for the mac by using following code:
extension UIDevice {
var type: DeviceType {
#if targetEnvironment(macCatalyst)
return .mac
#else
switch UIDevice.current.userInterfaceIdiom
{
case .phone:
return .phone
case .pad:
return .pad
default:
return .phone
}
#endif
}
}
I use it primarily to show different slides within a CollectionView.
On my local Macbook 15 (2017, Big Sur 11.0.1) everything works as it should. But when publishing the App to the App Store, it gets rejected because it shows the iPad - layout.
Has/ had anyone a similar problem?
Or is it possible that I mad a mistake when archiving the build? (Destination: Any Mac (Apple Silicon, Intel) -> Product -> Archive)
Thank you very much!
question from:
https://stackoverflow.com/questions/65851703/swift-app-store-connect-version-cant-detect-catalyst-environment 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…