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.