208

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

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

And archive is checked in scheme.

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

Hasya
  • 9,792
  • 4
  • 31
  • 46
Andy
  • 2,706
  • 3
  • 13
  • 22

1 Answers1

541

Answer valid through Xcode 7, 8, 9, 10, 11 and 12+


You can not archive, because from target you have not selected device or Generic iOS device or Any 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

In Xcode 12 it is named Any iOS Device

Xcode 12

Nimantha
  • 6,405
  • 6
  • 28
  • 69
Hasya
  • 9,792
  • 4
  • 31
  • 46