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