Xcode Product -> Archive disabled

You've changed your scheme destination to a simulator instead of "iOS Device". That's why it is greyed out.

原文地址:https://www.cnblogs.com/killiancheung/p/4610771.html