how to show a file opened by xcode in finder - xcode

How do I find the location of a file opened by xcode?

Right-click (or Control + left-click) anywhere in the document that you want to find (or on its entry in the project navigator pane on the left), and select the "Show in Finder" option. Works in XCode4, at least.

Related

Xcode rearange Files in Finder

I tried to rearrange my source code files in finder and now xcode shows them as deleted. Is there a way to tell xcode the new location of the file?
Click on the Missing file (turns Red) and go to file inspector. Click on the folder button in file inspector and provide the correct path of the file.
For missing files like this in red.
set correct path as shown below.
Select the file in the left (navigator) panel. In Xcode open the right (Utilities) panel if it's not already open. Now click the "File Inspector" tab. You should see a part that says "Location" with a button that looks like a folder. Click that button and then navigate to the folder where you moved the files to. Bam! Xcode should now see it's there!

How to move all images into one group in xcode

All images and header files are looking very confusing. So i want to separate all images and other files into different groups. Anyone please help me
To organize your files on disk, simply make the folders you want to make in the Finder and drag the files to them. To do this, open the folder containing your .xcodeproj file in the Finder. Use Cmd-Shift-N to create a new folder or choose "New Folder" from the "File" menu. You'll be prompted to give the folder a name. You'll probably want to name it something like "Images" or "Headers". Once the folder is created, you can simply click on an image file and drag it to the "Images" folder (or whatever you named it). Repeat the process for any files you want to move.
Once you've done the above, the files may display as red in Xcode's Project Navigator. If that's the case, you need to select the file in Xcode's Project Navigator and show the "Utilities" pane (the right-most button in the toolbar opens and closes the Utilities pane). There are 2 tabs in the Utilities pane - the File Inspector and Quick Help. Click on the File Inspector. It should display the name of your file, the type, and the location. Next to the "Location" is an icon of a folder. Click on the folder and you'll be presented with a file navigation dialog. Navigate to the new location of the file and select it. Click the "Choose" button and the file will be re-connected in Xcode.
You may need to repeat the process for any files you moved into new folders.
In Xcode you can also use 'groups'. A kind of virtual directory structure.
Iu the left xcode column (the Navigator), right click and select 'group'

Xcode 4 file complete path

If I have any file open in Xcode and I would like to know the complete path to the file, how do I do that in Xcode 4? In Xcode 3 I could hover over the file name and get a tooltip with the complete path. I could also right-click a file name at the very top and get a pop-up window with the complete path. This is all gone in Xcode 4.
The annoyance is that when using the Xcode 4 search, it doesn't even show the complete path of the file in the results?!
The only solution I have currently found is to open the save as dialog and get the path from there! That definitely can't be the solution. What am I missing?
For files that are not part of the project you can use the File menu's Show in Finder option.
Update: Xcode 4.2 restored the ability to right-click or command-click on the file's name in the title bar to get a drop-down with the full path.
Show the file inspector utility (normally at the right hand side of the main window on my setup , to do that click the rightmost button of the "View" buttons menu). Click on your file in the navigator and the inspector will refresh with the information. Full path is disclosed and there is a button to open a new Finder window with the enclosing folder.

How do you completely delete projects in Xcode?

So if I go into my selected save folder for my projects and delete my project it no longer shows up in Xcode. However I can still find some other files if I look under my user name/Library/Developer/Xcode/DerivedData. There are other files Xcode creates and I'm afraid if I make, and delete a bunch of projects, it is just gonna clutter my Mac with a mess of unneeded files. So how do I completely remove a project in Xcode?
Appreciate the help.
Xcode 9
In Finder, delete the project folder. (If you don't know where it is, open the project in Xcode and right click on project name in the Project Navigator. Choose Show in Finder.)
In Xcode, remove the deleted project from the menu. (Go to File > Open Recent > Clear Menu. This will clear all of your recent projects from this menu and the startup menu.)
For Xcode projects in version 11:
Open Xcode
Click on File
Open recent: Clear menu
It will remove all the projects that you have on your Xcode.
For Xcode 4, you can go to the Organizer by clicking the button at the top right, and then you'll see your projects. Right click the one you want to remove, and choose "Remove from Organizer..." This will remove all the associated data. I don't know if this is an option in previous versions of Xcode.
Solution for Xcode 7.3
To delete Xcode project:
Locate the project directory in finder, right-click, and select Move to Trash
To delete Xcode project data:
(From the Xcode welcome screen) Go to Window > Projects, select the project, then click Delete next to the derived data and/or snapshots
Note: deleting project data can free 50+ MB even from simple projects!
The easiest way I found to do this in Xcode 9.1 was to open Xcode (which may "open" only as an icon on the dock if there are no current projects) and select 'Window' from the Xcode application menu.
Select the 'Welcome to Xcode' option, then click on 'Open another project...' in the right pane of the window. This should take you to the root of your projects folder in a Finder window. (Mine end up in /Applications by default.) From there you should be able to select the project name and 'Move to Trash'. Empty your trash to get rid of it entirely.
Physical deletion : Go to where project folder is. Simply delete folder
By default it is Documents/[Project name]
To remove as start-up choice list :
On Terminal: open /Applications/Xcode.app
Then
File -> Open Recent -> Clear Menu
Cheers
/Users/User/Library/Developer/Xcode/DerivedData/ProjectName-UI
this is the build folder for your project. You can delete it in finder or in Xcode by pressing Command-Option-Shift-K before delete the project itself.
For Xcode Version 8.2 (8C38), you can remove the projects completely (project name in Xcode, programs, data, etc.) one by one by doing the following: [Note: the instructions are not for just remove the project names from the Welcome Window]
Launch the Xocde and wait until the Welcome window is displayed. The projects will be shown on the right hand side (see below)
Xcode Welcome Window
Right click the project you want to remove completely and a pop window [Show in Folder] jumps out; selec it to find out where is the project in the [Finder] (see below)
Find the project folder
Right click the project folder in the Finder to find it’s path through [Get Info]; use path in the Info window to go to the parent folder, and go to there[Locate the project folder path][3]
Right click the Project Folder (e.g. DemoProject01) and Porject file (DemoProject01.xcodeproj) and select [Move to Trash] ; you will see that (a) the folder in finder is removed AND (b) the Project in the Xcode Welcome Window’s Project List is removed.
To Delete XCode Projects in Ver.7.3 you must:
Open up the Project you would like to delete
Select the 'Window' option from the Active App Menu for Mac programs. The one where you find - File, Edit, View etc..
Select the Projects option
Then you will see a full list of projects
Highlight the ones you want to remove - Shift + Click >>> Click
Then Right Click and Select Remove projects

How to view a file's property in Xcode 4 (used to be command-I)

In Xcode 3, I used to select a file, and press command-I to view the file's property. I frequently have files missing, and hence this will show me the path to the file to fix.
In Xcode 4, command-I no longer works. What can I do?
The new shortcut is Option-Command-1 to show the file inspector.
If the file is missing, you can click on the icon at Location section to re-reference the file.
The only way I could get to it now is select the file, right click, "Open in Finder", then command-I.
The other option is try to see if "File Inspector" in the Utilities sidebar would give you enough information.

Resources