archive is disabled in xcode 12.5 code example Example: xcode archive disabled Change the active scheme Device from Simulator to Generic IOS Device