How do I put an xib file in my project? There is no option for xib in File->New->File.
xib file
It's been removed for iOS with current tools.
After selecting Xcode's menu File->New->File, select View in the User Interface group. View will create a .xib file. (This applies to iOS, MacOS and TVOS but not WatchOS.)