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