Archive button grayed out in Xcode

Andy picture Andy · Apr 22, 2016 · Viewed 41.2k times · Source

Would you be able to help me understand the reason why Archive button is grayed out in Xcode?

screenshot

I have all developers profiles downloaded

screenshot

Device type set to iPhone 6

http://i.stack.imgur.com/fMkmN.png

And archive is checked in scheme.

http://i.stack.imgur.com/66pRt.png

Answer

Hasya picture Hasya · Apr 22, 2016

Answer valid through XCode 7, 8, 9, 10 and 11 + .


You can not archive, because from target you have not selected device or Generic iOS device , still there is a simulator.

Nothing generic or wrong with Xcode 7. This happens with all XCode versions.


  • Problem - Why archived button is grayed out?

enter image description here


  • Solution - Why archived button is not grayed out?

enter image description here

Have a happy coding.