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.
Related
Is it possible to close a Project without closing Xcode? if so, how?
The reason for this is that when I open another project, it leaves the old one open and then opens the new project in a different desktop on El Capitan 10.11
One option described in the comments is not the most convenient.
You have other appropriate options:
1. If you have playground opened in the Xcode you can click "File" from the left top -> select "Close <>". You will see that only you playground was closed but Xcode window not.
You can also close the whole Xcode windows. From "File" select "Close playground".
Last one is to close the Xcode, just select "File" -> "Close window"
The same is for projects: "Close project" should be clicked.
Please fin the information below:
https://developer.apple.com/library/ios/documentation/ToolsLanguages/Conceptual/Xcode_Overview/CreatingProjects.html
Hope this will somehow clarify
Breakpoints are not being triggered during debugging. I discovered it's because of optimised code.
How can you disable optimisation?
I've walked through every toolbar and the closest option that I could find is Product => Perform Action => Generate Optimisation Profile.
This does not work as I am debugging in the simulator, says Xcode.
Is it possible to disable code optimisation in Xcode 6.1 using the simulator and writing in Swift, and if so, how would I go about that?
SOLUTION:
Click your project name in the project navigator in the left pane under the folder icon.
Click 'Build Settings' on the top menu.
Scroll down to 'Apple LLVM 6.0 - Code Generation'
Under 'Optimization Level' Select 'None [-O0]'
My problem was finding the build settings menu in the first place.
In Xcode, look under 'Build Settings' for your target, scroll to 'Swift Compiler - Code Generation' and then 'Optimization Level'. Ensure that 'None' is selected.
Set the optimization level to None for Debug.
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)
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.
For some reason when I build/run my code in Xcode, the terminal pane automatically disappears and I have to use Ctrl+Shift+C to get it back. This can be frustrating when you're compiling often. Does anyone know how to make it stay put?
Link's answer is for Xcode 3, I think.
For Xcode 4, open the Behaviors tab in Preferences.... and under "Build Starts" (make sure that's checked", enable the "Show" debugger with "Console View" section.
'Preferences' -> 'Behaviours' -> Under 'Running' -> 'Completes' -> Change 'If no output, hide debugger' to 'Show debugger'
go to xcode preferences, under building. Build Results Window , Open duing builds. set to Always