Reply to Xcode 13.3 build "out of memory" Facing the exact same problem on Xcode 13.3.1. Fixed it by using UIDevice.current.userInterfaceIdiom in place of UI_USER_INTERFACE_IDIOM() as mentioned above. Developer Tools & Services Xcode May ’22