Can not create an iPhone xib file with Xcode 6

csciXAV_12 picture csciXAV_12 · Dec 22, 2014 · Viewed 11.7k times · Source

The checkbox to create a .xib file in Xcode 6 seems to be disabled. I can not find any way to enable it again. Does anybody know if this is possible?

Answer

Mike Akers picture Mike Akers · May 29, 2015

Make sure you didn't accidentally select the OS X Cocoa Class file type instead of iOS Cocoa Touch Class.

Incorrect:

Screenshot of creating an OS X Cocoa Class

Correct:

Screenshot of creating an iOS Cocoa Touch Class