I have noticed, several flags to enable "Archive" option in xcode.
Select Product → Destination → Any iOS Device
Product -> Edit scheme -> Open Build option (from left panel) -> click on build sub option. You will see targets, check Archive option from your target.
Close, back to xcode, to check availability of "Archive" option.