Cannot find window-based application on XCode

19,645

Solution 1

There is no longer a Window-based Application template starting from Xcode 4.2.

You have two other choices of "bare-bones" templates:

  • View-based Application template, which gives you a view on a storyboard to start with. It is similar to the one found in previous versions, except the view now resides on a storyboard which Xcode 4.2 makes use of.

  • Empty Application template, but you'll have to manually create and wire up a window nib file if you want to design your application in Interface Builder. It's nothing more than a trivial extra step, though.

If you can't make use of storyboards (e.g. to deploy to iOS 4 and earlier), you most likely need to go with the empty template. For the main window, just make a new Interface Builder file and assign it as your project target's Main Window.

Solution 2

Here are two very useful links:

  1. The first one is a discussion on the Big Nerd Ranch forum where they discuss this issue - that the XCode 4.2 has done away with the Windows-template. They have a Template that you can use to add the "Windows-template" to your XCode installation. I have NOT tried this approach but you can try.

    http://forums.bignerdranch.com/viewtopic.php?f=73&t=3336

  2. As you dig through this thread - you will come on another site. This a blog post by Jeroen Trappers - on how to "manually" add the missing elements to an "Empty-application" template to make it "Window-template". I have followed these steps and they worked very well for me. In the process of going through these steps it does help you understand what is going on behind the scenes.Here is the URL to the post:

    http://www.trappers.tk/site/2011/06/16/mainwindow-xib/

Solution 3

Window-based Application is now Empty Application. Just gives you an app delegate and a window. You build the rest.

Share:
19,645

Related videos on Youtube

denniss
Author by

denniss

Code

Updated on June 04, 2022

Comments

  • denniss
    denniss almost 2 years

    I am using XCode 4.2 and for some reason I cannot find the template for window-based application. Is there an extra step that I need to take here?

  • djblue2009
    djblue2009 over 12 years
    thanks, Ashu - I'm going through the 2nd edition for iOS Programming: The Big Nerd Ranch Guide and was confused why Window-Based Application wasn't available
  • Rutvij Kotecha
    Rutvij Kotecha over 11 years
    Thanks for sharing! I took a look at both the methods. The first one is ridiculously simple!