Whenever I open my project I only see what is shown in this picture:
I can neither see the toolbar nor the compile button (play). The following picture is how it suppose to look like.
I have just started programming so I hope someone can help me with this problem.
What you are seeing in the first picture is Xcode opening a file. In the second picture, you have a project.
Open the .xcodeproj file to get the second view. If you just open a file you won't get any compile buttons or anything because there are no project settings to tell Xcode how to compile.
On the top bar, Go to View->Show Toolbar
Related
I find that the assistant view editor doesn't work properly at all. When I drag a connection from a label or button to the code file, it does not show up in the code until I close the assistant editor and open the code file by itself. If I'm hooking up multiple items, this gets frustrating because sometimes the second button will connect inside the brackets of the previous one and give me an error.
Am I the only one this is happening to? Am I doing something wrong? Also in the assistant editor view, I'm getting "error type" which doesn't show up in the standard editor. Ideas?
First check if there is a mismatch between your class name and the name registered in the ID tab of the View Controller. Then try:
Clean your proect
Delete Derived Data
Force Quit Xcode.
Re-Open Xcode, Clean project. Run project.
Please tell me if this works or does not so I can help you further!
Even after deleting derived data many times, and trying other things, I am still facing this problem. Can you help me?
You can try using the shortcut key instead, to open up the assistant editor.
Shortcut key: -
option + click on the file which you want to open up in the assistant editor
Guys I just stop dealing with this problem by changing the settings in xcode 9.2. And now i use Navigation Pane.
Here is how it works :
Ok now if you go to xcode -> preferences -> navigation
and Choose the "Uses Focused Editor" as in the picture below.
Now you can manually select inside the Navigation Pane.
Just click whichever page you would like to change and select in the Navigation Pane.
Here is a few screenshots :
Pictures shows code files but it works with everything you can click in the Navigation Pane.
Try to drag and drop file from the Project Navigator into the path of the Assistant Editor as temporary fix.
You also can click on this icon to bring recent files.
Try to clean your project, clean Build Folder, restart Xcode.
Make sure the view controller in your Storyboard has correct custom class name.
I think I know the problem you're having. I experience it too, but it's intermittent. Sometimes clicking Manual shows me the entire project folder and I can select the editable classes, but other times it only shows the interface versions of them, which aren't editable and cannot have IBOutlets dragged to them (you can tell b/c it'll say internal class and has less code). I have noticed that if I toggle back and forth between Automatic and Manual, I can usually get the editable class to appear. I also will toggle the assistant editor off, select a different View Controller or two on the storyboard, then go back to my original one, turn the Assistant Editor back on, and it starts working again.
There are other discussions of it here, here, and here. This suggestion of turning off indexing sounds intriguing and worth a try if the problem keeps reappearing. UPDATE: This trick with hitting the + and opening a 2nd file, then closing the interface file, worked great when I tried it just now.
Here are pics of how the Automatic side shows the actual file when the Manual side only shows the interface, which says internal next to class:
This has been answered many times, but I couldn't seem to find an answer that worked.
I'm building a cordova app. I added GCM and when I build in Xcode, it doesn't give me any errors. When I build from the command line for cordova, I get library not found for -lPods-App. In my project, it shows libPods-App.a in red (the name is different as well). When I select it and view the source control on the right, the location is not correct. If I search my computer, none of those libraries in red are found either.
Here is a screen shot:
How could I fix this? Thanks!
I'm currently working in the .xcworkspace, so that isn't the issue. I al
I don't know why this worked. Here's what I did: but I clicked on the buggy file on the left, and it brought up the window on the right that you see. There is a little folder icon next to the name of the file, right above the full path. I clicked that. It brought up a finder window where I double-clicked libCordova.a to select it. Then I rebuilt and it worked!
I am an iOS noob and I've gotten stuck while trying to do a tutorial from O'Reilly's headfirst iphone development 2e. The tutorial wants me to drag the picker to the placeholder menu as shown in the picture below--but I can't seem to make this menu visible in xcode.
What do I do to show the placeholder menu?
If I need to click the "Disclosure button" as suggested in an answer to this question, where do I find it in the interface? In the navigators? The utilities?
Here is my screen in xcode:
This guy seems to be having a similar problem How to add the Placeholder Window in Xcode (unanswered)
Your problem is that you have created your project with a storyboard. Storyboards do not have a File's Owner placeholder. Since you're a self-described noob, you should just start a new project and make sure you turn off the “Use Storyboard” checkbox when you are going through the new project wizard.
Right click or control click over the picker and that window should pop up. Then drag (not control drag) from the open circle up to file's owner.
In an Xcode project, I see XML when clicking on MainStoryBoard.storyboard instead of the graphical design, why and how to restore the right view ?
Update: I think it's a bug of XCode 4.2 because on another project, when I click on version editor I have XML but when I click on standard editor it shows visual design.
Is there a way to fix this and not to force me to recreate my visual design by hand once again ?
To fix the issue, right-click MainStoryboard.storyboard, then choose "Open as >" and then "Interface Builder - iOS Storyboard".
Make sure you are not using the source control editor, which shows you the changes for a given file. You can change this in the Toolbar at the top right.
Check this link in the section "Editor"
This worked for me using xcode 6
I've run into this issue, but it was a bit different. I had a merge issue with Git on my storyboard, so I had to manually edit the XML to resolve the conflict. After this, there was no 'Interface Builder-iOS Storyboard' option available in the "Open as" menu so I couldn't change it back to the visual editor. To fix this I simply restarted XCode and everything went back to normal.
After using SeanK's solution (restart XCode) I still manually needed to right-click the storyboard and choose Open as > Interface Builder - iOS Storyboard.
If you have more than just one storyboard go back and forth - click different one, go back to the one you want to display as an iOS storyboard. It's not XML any longer.
Change the extension like this "your_storyboard.storyboard" then right-click MainStoryboard.storyboard, then choose "Open as >" and then "Interface Builder - iOS Storyboard".