XCode menu item missing - xcode

I am busy installing OData for Objective-C, and in the instructions it says the following:
On the XCode menu bar, click “Project” / “Edit Project Settings”.
Only problem is that there is no "Project" Menu item in the xcode environment that I have. I am using version 4.2.1
Has anyone else had this problem?
Thanks for any feedback.

The "Project" menu item does not exist in XCode 4. Instead, you select the topmost item in the left-hand drawer (the "Project Navigator"). Make sure you select your project, and not any of the targets. An image of this can be seen here.

Try File | Project Settings instead
Do you see the Help menu item? The first field is a search field. This has the nice ability to search menu items. type settings in there and it will show you the menu item is.

Related

Where is the "add a UI control" option in Xcode 14.1?

There used to be a section on the right side of xib file to select a UI control (e.g. button, checkbox, text area, etc) from menu, and add to xib file. But after upgrading to Xcode 14.1 the option is gone. I can't find it anywhere.
Previously it looked like this:
There's a plus sign in the upper right corner. See screenshot:
Then this should pop up. You can drag and drop what you want onto the storyboard.
Just googled up, the thing is called "Object Library", and the command to open it is:
Command + Shift + L
Thanks Adrian for showing the button in screenshot!

Xcode 6 - Main.storyboard only showing up as source code, Interface Builder missing

Somehow my Xcode settings got messed up as it would only show my Main.storyboard file as XML code. I've been told this can be fixed by selecting the Interface Builder from the "Open As" menu, but there is nothing under the menu (the only "selection" is a greyed-out "<None>"). I've cleared my Xcode caches, but this does not help. Other than that, my project still compiles properly.
How can this be resolved?
As so many people have pointed out, right-click on the file and hover over Open As and select Default - Interface Builder.
However, if this is not an option for you because Open As shows <None>, make sure you are in the standard editor and not the version editor. Go up to View in Xcode menu --> view --> hover over Standard Editor and select Show Standard Editor. Now repeat the steps others have suggested and you should get the results you're looking for.
Hide Code Review helped here (Xcode 12.2).
You might be in code review mode and Xcode thinks you want to compare the XMLs
change to Standard Editor by clicking 'Command + Enter' key . Then Main.storyboard may show as Interface Builder.
I had the same issue, where "Open As" wasn't an option on the main storyboard, and xibs were also showing as XML.
The solution that worked for me was to right click on an xib which did have the "Open as --> Interface Builder" option. Then, I went back to storyboard, and the main storyboard showed up properly.
Tap on the Arrows icon that are left and right, see image below:
If you go over to the project outline and control click on the storyboard file and hold down the cursor, you will see the option to open as, this will let you open the storyboard as a certain type. Click on that and choose open as story board. Good luck!
EDIT#1
Sorry, I think I misread your post. I thought you were doing those steps from the menu bar. Not the outline. I am assuming you have restarted Xcode and your computer.
I had this issue with Xcode 8, no luck with Open As > menu... and the solution was as follow:
Make sure the Type is Default - Interface Builder in the Identity and Type right panel (see screenshot). In my case it was "Swift source code" selected :
Now, in the left pane, right-click on your storyboard, and magically then the option Open As > Interface Builder - Storyboard appeared !
I had "Main.storyboard.xml" in Xcode 9 folder but can not see "Default - Interface Builder" in the list of extensions proposed in "Identity and type".
I simply deleted the .xml extension in the name of "Identity and type" and then I can see again "Default - Interface Builder" in Open as.
This is just a quick fix/ long shot, and depending on the specifics of your situation it might not be helpful at all, but you can import and open storyboard files in other projects.
So, try importing your storyboard file in a new project and see if it displayed correctly there.
Has helped me in the past with misbehaving nib files.
Took some doing but I found how to fix this every time... When you click on the storyboard and it is showing as source, click on the icon that shows the utilities view on the righthand side.. Look for the identity type.. Type should be Default - Interface Builder.. Mine got switch to C Source Code.. Not sure how.. but...
I was stuck at (Hide Code Review helped here . You might be in code review mode and Xcode thinks you want to compare the XMLs)
left and right arrow icons is code review Mode

General tab missing

I have just switched over to using Xcode 5.
I have gone to change the name of my application with some other settings which I need to change, However when I have gone to do this I noticed my "General" tab is missing. Does any one know why this may have happened.
Just a quick update how to do it in Xcode 8:
See up in the left hand corner of your screenshot the blue icon? You have your project file selected and are viewing the project's global settings, which don't have a "General" tab.
Click either the triangle in the box up there or the lower blue icon with "template" and select a build target.
You are seeing your project's settings. You want to see your target's settings.
In the bar containing 'Info' and 'Build Settings' click on the project icon on the left and select your main target from the dropdown.
For me, General tab re-appeared when I did shift-command-Y which closed the debug window on the bottom.
The open debug window caused the tab bar with "General" to disappear.
The name of the application is on the Utilities file inspector for the project. With your project selected, press Cmd-opt-1 (or in the menus, View->Utilities->Show File inspector)

Where is "Edit Active Target" in Xcode 4

I was following setup instructions to add ASIHTTPRequest to my project
and it asks me to "Edit Active Target". Now that I'm using Xcode 4, I don't see that menu item anywhere. Where can I edit my active target?
There's no set active target in XCode 4.
Instead you can select it at left top of the screen at the right of "stop" button.
You can select any target(with devices) you set in the drop down list.
XCode has changed a bit - the step you mention requires you to link your app against some frameworks. To do that in XCode 4,
Project (Apple-1) > Target > Build Phases > Link Binary With Libraries
That last pane has a + button that will bring up a dialog box almost identical to the one in your link.
If anyone else (like me) was looking where the old 'Edit Active Target' menu went, or where the 'Project' option is that Rythmic Fistman mentions in his answer, here's how to find it:
In the toolbar:
View -> Navigators -> Project
Then double-click on your project.
You then get a window where you can change all the settings, just like with 'Edit Active Target' in XCode3.

Where did the "Search in Project" context menu item go in Xcode 4?

When you selected text in the code window and right-clicked on it, you would get a context menu with an option to "Search in Project" for the selected text. (Xcode 3.x)
Anyone knows how I can achieve the same in Xcode 4? Or a keyboard shortcut?
Now I select the text and wrestle my fingers in the following combination CMD-C, CMD-CTRL-F, CMD-V, RETURN. Feels a bit like playing the Playstation...
Cheers,
Niels R.
There doesn't seem to be a single keyboard shortcut, but one you might find useful is "Use Selection for Find" (Command+E). That is, you can select some text, and press Command+E, Command+Shift+F, Return.
It's no longer in a menu option but is accessible by an icon. Look directly beneath the "Schemes" at the sequence of 7 small icons. The 3rd one over is a "search" icon. Click that icon and type in your project search text and press return.
Just think it might be handy to see it at a glance:

Resources