All the .h and .m files are in the folder for a particular app I'm working on, but the xcodeproj file is missing, even though I worked on it less than a week ago. Looking in the Finder doesn't bring it up (though it brings up lots of OTHER xcodeproj files).
I've looked for answers to this question but I'm not understanding what I've found so I can't tell whether it helps.
I'm sure it's something completely obvious, especially as I'm very new to source control and git. Can anybody help me out?
It is possible that you are looking in the wrong folder for the xcodeproj, or that it is not currently on your system and you have to retrieve it from the repository.
Perhaps you are viewing a folder that's one level down from where the xcodeproj file is. Move up the filesystem hierarchy and see if you find the file. If you're not concerned where the file is on your system and you just want to open it in Xcode, use Xcode's File > Open Recent menu item.
If those attempts fail, you may have to check out the missing file:
How do I pull a missing file back into my branch?
Related
I'm trying to wrap my head around why the .pbxproj file changes as soon as I open Xcode.
project.pbxproj is an important file in the Xcode configuration bundle. It is responsible for maintaining references to all of the linked files and their groupings, linked frameworks, and most importantly, the project’s build settings.
You should track the pbxproj file changes in your version control, if you found something wierd changes that happen when you open the project everytime, you'd better show the changes, eg. git diff <path-to-pbxproj>.
References: Xcode and git: bridging the gap
So I'm trying to adapt a file maker plugin to work on a Mac with xcode. There is code already written and compiled for the plugin but we need to update because a lot of internal changes have been made. I open the project in xcode and hit build and I'm given something like 135 errors saying that these files don't exist (e.g. "error: FMWrapper/FMXExtern.h: No such file or directory"). The issue is I'm looking at these files right now, they certainly exist, it's just that they aren't getting read. I've moved them through the project to nearly every file and I still get the same error. The lines that are causing the errors are as such:
#include "FMWrapper/FMXExtern.h"
And so on...
Any suggestions?
The compiler won't scan your whole hard disk for included files recursively (unless you ask it to -- but don't! :). You need to help it out. Otherwise, your builds would take ages.
One way is to specify the path to these sources using the Xcode build setting HEADER_SEARCH_PATHS or USER_HEADER_SEARCH_PATHS.
So you tell Xcode to add the directory that contains FMWrapper/ to the search paths.
Xcode Build Setting Reference
OK, here's my issue :
I'm using Xcode 4.6 under Lion
In my current project I've added several "real" folders (either with sources or with resources) which Xcode represents as "Groups"
However, whenever I add another file in one of my already-imported folders, the file doesn't show up (but instead I have to manually drag each new file to its appropriate location).
Well, given that my project is comprised of hundreds of different files, and that files are being added constantly, this seems like an overkill.
I realize this may have to do with Xcode's Group-centric approach, but it still bothers me.
So, is there any workaround? Any ideas?
As for many IDE, it won't scan changes of new files in included folder, to prevent accidental add of extra codes that will break the compile process. If you really want to do so, write a script to add all files in the folder and run it at pre-compile stage, i.e. in Xcode, "External Target"
See: https://stackoverflow.com/a/976459/188331
I'm trying to learn Obj-C but when I download sample projects, the .xcodeproj file seems to be missing on all the examples I download. Not quite sure why, but I'm stuck. A few questions (which overlap):
How do I open these projects to run them if the .xcodeproj file is missing?
How do I turn these downloaded examples into projects I can use?
Is there some fundamental reason why it seems to be standard practice NOT to include the .xcodeproj file?
It's not possible to open a project without an .xcodeproj. This directory contains several compulsory infos like :
list of files, resources of the project,
compilation options,
etc.
Where are you getting these samples from? Is it possible that xcodeproj files are hidden on your filesystem? If there really isn't an .xcodeproj file, then it's not too hard to make your own and drag in the source files.
I had the same issue when using git command lines to clone repositories.
However, if you use XCode's integrated source control features to work with existing projects you can open the project and you will find the xcodeproj in your source code directory.
To do this, launch XCode, choose "Connect to repository", specify the location (for example: https://github.com/insurgentgames/Alphabet-Blocks.git), hit 'Clone', then Open Project.
I seem to have some files in my Xcode project that I can't erase. I've tried right-clicking->deleting, dragging out, Build->Clean, anything I can possibly think of.
Any ideas how to get rid of these renegade files?
I'm sure in an older version of Xcode you could dig around (AT YOUR OWN GREAT PERIL!) inside the .xcodeproj file (show package contents and look in there) and somewhere was an xml file which held everything like that. However, I have just had a quick look and didn't see anything that looked likely. Try grepping the files in there for your rogue filenames and see if anything shows up.
If you don't get anywhere in that route you might be able to trick it by creating those files (or at least files with those names) again, then re-importing / re-deleting them.