Xcode project questions

I have just created a new project in xcode.
Now,I would like to get rid of the files proj_Prefix.pch and projPriv.h , because i don't need them. However, it seems i can't just delete them, because otherwise xcode complains about not finding them.
In addition, can i get rid of the files projProj.xcconfig and projlTarget.xcconfig ?
Oh, and one more question: which files of xcode should i put into the SVN repository?
Thanks a lot in advance.
Gabriel.

You have to remove the proj_Prefix.pch and projPriv.h files from the project to delete them safely. In the project window, select the files you want to delete and press the Delete key. An alert opens asking you if you want to delete the references to the files or delete the files and references. Deleting the reference removes the file from the project but keeps it on your hard disk. Deleting the file and reference removes the file from the project and your hard disk. Deleting the reference, then moving the file to the Trash is safer than deleting the file and reference because you can recover the file if you find out you need it.
You can get rid of the xcconfig files. Those are Xcode configuration files that contain build settings. Configuration files are useful if you make a lot of changes to Xcode's default build settings. By putting the changed settings in a configuration file, you don't have to change the settings in Xcode for every project.
The point of a SVN repository is to track the changes you make to files. Put the files you need to track in the repository. At a minimum, you should put your source code files in the repository. What works for me is to put everything but the project's build folder in the repository. When I create a Xcode project I want to place under version control, I temporarily move the project's build folder. After importing the project into the repository and checking out the project's files, I move the build folder back with the project.

Similar Messages

  • If I upgrade my iOS from 5.1 to 6.0 then do I have to upgrade my Xcode also? So my question is all my old Xcode project which I have tried with Xcode 4.3.2 will be still there because I do not want to destroy them.

    I have xcode 4.3.2 and  iOS simulator Version 5.1 (272.21). But this course is on iOS 6. If I upgrade my iOS from 5.1 to 6.0 then do I have to upgrade my Xcode also? So my question is all my old Xcode project which I have tried with Xcode 4.3.2 will be still there because I do not want to destroy them.
    I have a MacBook Pro (Software Mac OS X Lion 10.7.5 (11G63b). Please let me know about upgrading iOS version so that I will be able to do the class project.

    To program for iOS 6, you need iOS 6 SDK. You need to download Xcode 4.5.x. But don't worry. All your previous projects are still alive and you are able to open them in the new Xcode.

  • Soft links and xcode projects

    In other unix environments using soft links ("ln -s") is a handy way of "abstracting away" at the file system level what a file or directory actually contains, so that its contents can be easily changed without having to modify the original file or directory. In other words, if I have eg. three versions of the same file, and several projects share the usage of one of those files, I can easily change which version of the file those projects will use by simply making a softlink that points to the file I want, and make those projects depend on that softlink (they see it as a regular file). If I later want to change the file in question, I only need to change the softlink to point to another version of the file.
    This is especially useful when dealing with a third-party library that gets regular updates. I can install the third-party library somewhere, with the version number of the library in the directory name, and have a more generic directory name as a softlink (as a concrete example, I could have a softlink named "cocos2d" pointing to a directory named "cocos2d-iphone-0.99.5"). If I update the library, I can install it in a new directory (eg. "cocos2d-iphone-1.0.1") and simply change the softlink to point to the new directory, and then recompile the projects that depend on it.
    The problem is that Xcode doesn't like softlinks. I don't know if this is a feature of MacOS X in general, or a quirk in Xcode in particular. The problem is that Xcode doesn't want any softlinks in any of its paths, and instead always resolves where the softlink is really pointing to. Thus if I add, for example, the file "libraries/cocos2d/cocos2d-ios.xcodeproj" to the project, what ends up in the project is actually a reference to "libraries/cocos2d-iphone-0.99.5/cocos2d-ios.xcodeproj". Thus the whole softlink is circumvented, making it useless. If I update the library in question, I have to go through all the projects that use it and change the references to point to the new directory. This causes only needless extra work.
    This resolving of softlinks only happens when adding a new file to the xcode project. Xcode doesn't seem to change them afterwards, if they already exist in the project. In the past I could get around this problem by editing the project file directly with a text editor and forcing the path to refer to the softlink. However, all the paths in xcode 4 projects seem to be obfuscated, making this impossible. Another possibility is to rename the directory in question with the name of the softlink, then add it to the project, then restore its original name and then add the soft link.
    Is there any better way of doing this?

    Hello I have probably exact same problem with source files whereas a constant location (my softlink) points to different version of the sources in a repository. For example:
    ../MyProject/DependantProjetXyz could point to
    ../Repository/DependantProjectXyz/V1.0
    ../Repository/DependantProjectXyz/V1.1
    My xcode project is setup with ../MyProject/DependantProjetXyz which is pretty useful as I don't need to update all the include and lib path everytime I update the dependancies.
    The main problem I am facing is that if I have a compilation error in the dependancies, xcode isn't able to automatically bring me to the error. It simply open the file and position at the very first line in the file. No highlight.
    I am forced to use contextual menu on the error then reveal in the log to find the line number and manually navigate to that line. In other words, I am almost back to good old command line compilation with separate text editor...
    BTW, this was all working fine before upgrade to xcode 4.
    Was a bug filed on this issue?

  • Where is best place to save xcode projects?

    Hi,
    I am a newbie on xcode and before I start I have a general question where to save xcode projects the best way?
    Best regards,
    Thomas

    Use whatever is convienient for your skills, resources, budget. Do it now...don't wait and don't use something that you'll just ignore later and stop using.
    At least put up a Time Machine backup...other than that, if you're familiar with SVN/GIT, you can search Xcode Help on: resources ...to see details of putting those into place, etc.

  • Xcode newbee question

    Hi I'm new to xcode programming. But I'm starting to build an application for mac using xcode.
    I can get the application to work, but there are several questions that I cannot resolve by myself.
    First of all, how can I make the application to be "Universal Binary"?
    Also, when I use the Interface Builder, I make my own classes, say "MAfoo." And write it out to xcode. But after I write down the class codes and modify them in xcode, whenever I make changes to Interface Builder, how can I change the previous version of codes without overriding the codes that I have written.
    I'm sorry if my question is vague.

    Brian is correct that universal binary is the default for Xcode 3, but make sure you're using the Release build configuration. The Debug build configuration cannot build universal binaries.
    swingo wrote:
    Also, when I use the Interface Builder, I make my own classes, say "MAfoo." And write it out to xcode. But after I write down the class codes and modify them in xcode, whenever I make changes to Interface Builder, how can I change the previous version of codes without overriding the codes that I have written.
    You have to make the changes in Xcode. When you tell Interface Builder to write class files, it overwrites any existing class files.
    A common situation is adding outlets and actions to your classes. What you have to do is open the header file in Xcode (MAfoo.h in your example) and add the outlets and actions. If you have your Xcode project open, the outlets and actions you added in Xcode will appear in Interface Builder.

  • Put Xcode project to the app store

    Greeting you.Please help me to put my Xcode project to the app store

    If you are an authorized member of Apple's iOS Developer Program, you have access to resources through developer.apple.com and iTunes Connect through which you can get assistance in uploading apps to the iTunes Store. These forums are mainly for users to get help using their iPods and hence not the best place for a developer to ask development-specific questions.
    If you're not a member of the iOS Developer Program, then you need to join before you can put apps into the iTunes Store.
    Regards.

  • How do I use a precompiled dylib in my xcode project?

    Hello all you brainiacs out there!
    I want to use mongoDB as my database for my iPhone projects.
    I have compiled their code, with instructions from http://api.mongodb.org/c/current/building.html... successfully.
    I ran all the tests, successfully.
    I have two files, libmongoc.dylib and libbson.dylib generated.
    I have imported them into a brand-new xcode project, (build phases, link binary with libraries, hit '+' sign, add other and browse to these two files)
    I copied the .h files (bson.h and mongo.h) to my project.
    Can I now use the functions in my project as defined to connect, insert, delete.... etc.
    I am a noob at iPhone development (2 months) but I do know what I am doing... (I passed the 2  IOS 5 tests at brainbench.com scoring just under 4/5)
    Can someone walk thru the steps after loading in the dylibs and including the C headers?
    Regards,
    Dan

    Danny Bertrand wrote:
    Is there a list of specific things that you CAN'T do/have to sell on the Apple store?
    The App Store Review guidelines have such a list.
    But rather than focusing on what you can't do, you should focus instead on what you MUST do. One of those "must do" items is comply with any licensing agreements for code or resources you include with your app. It can be quite enlightening to ignore what people say about "open source" and "free software" and actually read those licenses say and research their history. It isn't Apple that is restricting you here . As a wise person once told me - "Follow the money". That will lead you from the Free Software Foundation to academic think tanks and writers right back to .. .some interesting places.
    Welcome to the world of Apple - everybody's bullseye.

  • How do you add files to a target of an Xcode project from the terminal?

    Hi friends.
    I am building a tool to build projects in an automated way. So far it is working great but I can't find a command to add files to a target from the command line.
    Basically what I want to do is the following:
    I have a directory with the XCode project, something like:
    - Classes
    - Images
    - Configuration
    - Etc
    I want to add some files to the folder Images that will be included in the build output.
    Is this possible?
    Thanks!!

    Is this helpful?
    http://www.askdavetaylor.com/fancymac_os_x_command_linetricks.html

  • Xcode project from makefile rules.

    Dear All,
    I have crashed into an old project but new to me and it was not setup for Xcode. I have successfully compiled it in the command line mode using Intel c++/fortran compilers and using Xcode to debug it.
    The thing is that Xcode complained about some preprocessor definitions not being defined; however, it is defined when I assign the flag during the compile time. Since it is already compiled, there is no way to give additional preprocessor definitions to the code.
    I am wondering if Xcode has anyway to derive the rule for code linking according to the binary it reads in. Apparently it can debug and walk through the code now, why can it not derive the building rules? I am just thinking a quicker way to replace the command line makefiles by a single Xcode project.
    Anyone?
    Thanks in advance.
    Alvyn

    Can't you just recompile with with the additional flags?
    Something that is already built with makefiles should probably be kept that way.

  • Xcode Project Creation deleted Desktop

    I probably know the answer and do not want to hear what about the backup... etc etc
    I have a MacBook Pro running Yosemite and have Xcode installed. I wanted to do a quick check in Xcode and was not paying attention and went with the defaults it had, well...
    Basically the Xcode project was named Desktop saving in my home directory and therefore replaced my Desktop... I don't really do anything on the machine I wouldn't mind losing as I copy off to other drives and servers etc but would quite like to know why there was perhaps no alert and what it has actually done to my desktop and would quite like to know what was on the desktop.
    I am thinking Data Recovery is the only option but have tried Data Rescue and it recovers files as numerically numbered so will take a while to filter through all the results.
    Any suggestions anyone?

    When I try that here I get
    So no idea why you did not get that alert, perhaps you did and missed it?
    Apart from Data Recovery (or the backup) there isn;t much else you can do at this point.
    regards

  • Xcode project: List of files?

    Is there a way to get a simple list of files out of an xcode project? I just want a plaintext list of the files in a given target so that I can use that in a script that I'm writing. I'd rather not have to parse my way through the XML of the .xcodeproj file...

    The problem with this is that I have 3 projects with 6 targets between them that all use overlapping code-sets.
    So, no one target will use all of the files in a given folder...
    Or did you mean copy and paste the .xcodeproj files? that involves (manually) parsing the XML, which I would rather not do if not necessary..
    Message was edited by: Brian Postow
    Message was edited by: Brian Postow

  • Xcode Project to Makefile

    Does Apple's Developer Tool package include a tool for converting an Xcode project to a Makefile, for building from a shell prompt or script?

    Thanks, that's the command I forgot - though it would be nice to see the dependencies listed in familiar Makefile format.

  • I am in the middle of an xcode project. Can I get back to summary?

    I am in the middle of an xcode project. Can I get back to summary?

    I need to go back and change the default orientation held in summary.  I also need to add icons in. I do this all in summary I believe but cannot see how I get back to it.

  • What can i do when my Xcode project shows me That UIKit/UIKit.h file not found.

    When i going to run my Xcode project on my iPad i got an issue,it was UIKit/UIKit.h file not found. what can i do?

    Unfortunately, this sort of trouble has gotten more complicated to deal with ever since Microsoft pulled the Windows Installer CleanUp utility from their Download Center on June 25. First we have to find a copy of the utility.
    Let's try Googling. (Best not to use Bing, I think.) Look for a working download site for at least version 3.0 of the Windows Installer CleanUp utility. After downloading the utility installer file (msicuu2.exe), scan the file for malware, just in case. (I use the free version of Malwarebytes AntiMalware to do single-file scans for that.)
    If the file is clean, to install the utility, doubleclick the msicuu2.exe file you've downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any Bonjour entries and click "Remove".
    Quit out of CleanUp, restart the PC and try installing iTunes again. Does the install go through properly now?
    (If you do find a clean download site for the correct version of CleanUp, please don't tell me where it is. Without wishing to sound paranoid (although I grant it does sound paranoid), there is a non-zero chance that posting links to download locations for the utility here at Discussions leads to that download location being shut down.)

  • How to undelete xcode project without snapshot and time machine.

    Hi all,
    I really need help on this issue because i accidentally deleted my xcode project.
    Could it be undelete if no time machine snapshot back up?

    Hi Mike.
    Although with the solution described I'd have to unlock everyday but if there are no other ways I'll try that.
    Thanks a lot.

Maybe you are looking for

  • IFS 9i configuration problem: "intermedia seems to be misconfigured"

    I installed Oracle 9iAs with corresponding database. So, I want to use IFS. I launched ./ifsconfig from $Oracle_Home/ifs1.1/bin. I want to use Intermedia Option. I verified that ctxsys user can connect to the database. When the "IFS Configuration Ass

  • Phone Adapter for Sony Clock Radio

    I recently purchased a Sony model ICF-C8WM clock radio along with a walkman player. Since both docking connectors are exposed when I am using the Walkman device, I would also like to take advantage of the phone dock. I would switch my phone to a Sony

  • Ver 4 EA1 ghost tabs after restart bug

    I noticed that when I had a few new (unsaved) editor tabs open (with code in them) and I closed SQL Developer without saving (deselecting the unsaved tabs), next time I opened SQL Developer, the start tab would be open by default and the previously u

  • Load CS5 or Updates first?

    I notice there are two updates available for PS CS5: 1) Bridge 4.0.2  and  2) Camera Raw 6.1. Is there a preference to loading updates or CS5 first, if there is a choice? I'm ready to load CS5 Ext. and thought it would be good to immediately load any

  • Bb Traffic not able to connect to server

    Has anyone else had problems using Traffic over the last week or so? I keep getting the message Unable to reach server. At first I thought it might be weather related, but it is also happening when the weather is clear and visibility high, so now I a