Re: Newbie question: Can't get Xcode "Build & Run" to run
Re: Newbie question: Can't get Xcode "Build & Run" to run
- Subject: Re: Newbie question: Can't get Xcode "Build & Run" to run
- From: Paul Denlinger <email@hidden>
- Date: Fri, 22 May 2009 18:53:35 +0800
Hi Mike--
Thank you for your suggestion.
Went to Apple Store and found out the issue. Somehow the var directory permissions got corrupted, and it became read-only (instead of read/write as it should be).
Once that was changed, the project compiled as it should.
Thanks for your help.
Paul Denlinger
On Fri, May 22, 2009 at 6:19 PM, Michael Crawford
<email@hidden> wrote:
On Fri, May 22, 2009 at 12:54 AM, Paul Denlinger
<
email@hidden> wrote:
> fatal error: can't get precompiled header var/folders/Ln/...
> error: couldn't create directory /var/folders/ Ln/...
Paul,
My advice is to avoid using precompiled headers at all until you're
completely certain of what you're doing.
Precompiling the headers can save time in large builds, but if you're
just starting out the savings is very minor.
What precompiling does is to build a symbol table from the headers
that are included from your prefix file, which is then dumped into a
binary format file that can be quickly reloaded, without all the
complex interpretation that takes place when the original headers are
compiled.
They can cause problems though if it happens that a header that
shouldn't be there, gets included in the precompile. If that happens,
it will be as if that header was included in every one of your
sources.
In your project there will be a small blue icon with the name of your
project. Click it once to select it, then click the Info button, the
round blue one with an "i" in it.
Click the "Build" tab in the window that comes up, then select "All
Configurations" from the Configuration menu, and "All Settings" from
the Show menu.
Enter the word "precompile" in the search box. This will limit the
displayed settings to those that include the word "precompile".
Delete everything to the right of "Precompiled Headers Cache Path" and
uncheck "Precompile Prefix Header".
Now enter the word "prefix" in the search box. Delete all the text to
the right of "Prefix Header".
Now try to build and run.
I think what might have happened is that some garbage text got
accidentally pasted into the Precompiled Headers Cache Path setting,
and it either can't find a folder that it needs, or doesn't have
permission to create it.
For some longer term advice... somewhere Apple has a PDF file that
does into detail as to what each and every Xcode configuration setting
actually does. I'm sorry I don't remember where I found it, and can't
find my copy just now.
If you study that document while going through the Build settings, not
only will a lot of important stuff make sense to you that probably
doesn't now, but you will also be able to get more out of Xcode.
Finally, there are actually *two* places that you can adjust the build
settings. The blue icon with the name of your project adjusts the
settings project-wide. You can also have target-specific settings,
that either override or add to the project specific ones.
For very simple projects, you could just as well have all your
settings be project-wide, but more complex projects may have many
different targets.
Mike
--
Michael David Crawford
mdcrawford at gmail dot com
GoingWare's Bag of Programming Tricks
http://www.goingware.com/tips/
--
Paul Denlinger
Mobile China: +86 13552010493
Mobile Hong Kong: +852 96346543
"Risk is about seeing opportunities when others see challenges."
Skype: pdenlingercbs
Profile:
http://www.linkedin.com/in/pauldenlingerVisit my blog at
www.chinavortex.comChina | Business | Economy | Internet|Technology
DISCLAIMER:
The content of this email and any attachment may contain proprietary and confidential information. It is intended to be conveyed only to the designated recipient(s). If you are not an intended recipient of this message, please notify the sender by replying to this message and then deleting it from your system. Use, dissemination, distribution or reproduction of this message by unintended recipients is not authorized and may be unlawful.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden