Re: Find In Project hanging on precompiled headers
Re: Find In Project hanging on precompiled headers
- Subject: Re: Find In Project hanging on precompiled headers
- From: Kevin Packard <email@hidden>
- Date: Fri, 5 Jan 2007 23:38:19 -0500
On Jan 5, 2007, at 12:06 PM, Chris Espinosa wrote:
On Jan 5, 2007, at 8:25 AM, Kevin Packard wrote:
On Jan 5, 2007, at 11:15 AM, Chris Espinosa wrote:
On Jan 5, 2007, at 12:34 AM, Kevin Packard wrote:
XCode's Find In Project recently started giving me grief. When I
search in Frameworks, it insists on searching through the
precompiled .p header files as well as .h files. The precompiled
headers are huge, which bogs down XCode so completely that I have
to force-quit.
I tried all the obvious things. I selected Source Files Only in
the search options dialog, and when that failed I chose regex
for .h files only. No luck. I removed XCode prefs and removed
project settings. No luck.
Searching the list archives and Googling did not find anyone else
with this problem - strange.
I'm tempted to simply remove the precompiled headers. Any other
thoughts?
Well, ".p" is not the normal extension for precompiled header
files, it's normally .pch (or .pch.gch), and they're not normally
stored in the project directory (they're in a shared cache in /
Library). So it may be that those .p files are just not used by
your project and you can delete them altogether.
In the Find in Project Options pane there's a list of files to
exclude; you can just add the pattern "*.p" to the list to skip
searching in .p files.
Chris
Hi Chris,
Thanks for the reply. Sorry I wasn't clear last night.
The problem occurs only when I search frameworks. There are 6 .p
files, and they are actually embedded in various frameworks:
/System/Library/Frameworks/AppKit.framework/Versions/C/Headers/
AppKit-gcc3.p
/System/Library/Frameworks/ApplicationServices.framework/Versions/
A/Headers/ApplicationServices-gcc3.p
/System/Library/Frameworks/Carbon.framework/Versions/A/Headers/
Carbon-gcc3.p
/System/Library/Frameworks/Cocoa.framework/Versions/A/Headers/
Cocoa-gcc3.p
/System/Library/Frameworks/CoreServices.framework/Versions/A/
Headers/CoreServices-gcc3.p
/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/
Foundation-gcc3.p
Hm. I bet these files are left over from the old CodeWarrior
days. I'll remove them.
Ah, I see now. Those are old-style gcc-precomp files from gcc3
(not from CodeWarrior). They're not used anymore. What version of
Mac OS X/Xcode is this, by the way? Those files aren't present in
a Tiger/Xcode 2.4 install.
Chris
Sorry for the late reply.
This system is a 17" PB, circa October 2004. I use this system for
PPC testing. It began with 10.3.x and whatever version of XCode was
around at that time. Since then, I've regularly updated XCode and OS
X to present day: 10.4.8 and XCode 2.4.1.
At any rate, I've removed the offending .p files and all is well.
Thanks for the help.
_______________________________________________
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