• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Why can't xcode find my .h files?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why can't xcode find my .h files?


  • Subject: Re: Why can't xcode find my .h files?
  • From: Lance Drake <email@hidden>
  • Date: Wed, 3 Mar 2004 09:38:46 -0700

A bug was submitted on the problem of Xcode not being able to find ".h" files:

(problem 3519754)
* STEPS TO REPRODUCE
1. Create a project, create a directory in the same folder as the project and name it "DirA".
2. Create a file into another directory such that it's path is relative to the project as in
"../DirOne/DirTwo/TargetFile.h"
3. Import this second file into the initial project in a file at the path "DirA/FileA.c".
4. Request the project to be built.
5. The compiler should complain to the build window, "No such file or directory" and refer to "TargetFile.h"
which, in my case, was a problem with files that were 'up and over' in a related directory.


If your problem is similar to mine, here's a thought. The fix, for me (and not suggested as a general remedy) was to edit the project.pbxproj component in the project so that the XML file defined its location to look like:

7EAA9FCC05EB0AD00042D4D9 =
{
fileEncoding = 30;
isa = PBXFileReference;
lastKnownFileType = sourcecode.c.h;
name = Coolness.h;
path = ../Coolness_Project/Cool/Coolness.h;
refType = 4;
sourceTree = SOURCE_ROOT;
};

Evidently, the IDE was not saving the file reference in the manner which was indicated (expected?) on the popup in the Info dialog. Anyway - when I changed the reference, all was forgiven.

Caveat: If you submit a project that has obviously been edited in this way to the folks who might investigate something like this for you, they will be very unhappy. Better you should practice on a spare copy of that file - keeping line-endings and filetype as they were - and substitute if and when you like the results. Still have a problem, send your original to the DTS.apple.com folks who may have a clue for you that's better'n mine.

HTH,

Lance Drake
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: legacy library build can't find 'Preprocessor Macros'
  • Next by Date: Hunting memory related bugs
  • Previous by thread: Re: Why can't xcode find my .h files?
  • Next by thread: Odd build issue
  • Index(es):
    • Date
    • Thread