• 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: Errors and Warnings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Errors and Warnings


  • Subject: Re: Errors and Warnings
  • From: Chris Espinosa <email@hidden>
  • Date: Mon, 23 Aug 2004 16:15:13 -0700

On Aug 20, 2004, at 4:07 PM, Markian Hlynka wrote:

Ok, my project window's "errors and warnings" section is filled with the last 3 days worth of compiles; every error or warning I've had is in there. How do I clear this? It's driving my crazy!

Heiko Wichmann narrowed this down last week:

Since version 1.5 Xcode has problems with projects where the source files are referenced by "Relative Path" and the path goes up (e.g. ../sources/main.cpp).

If you build "../sources/main.cpp" with compilation errors, the errors are marked with a red circle.

If you correct the error, the compilation will succeed - but the Error Marks do not disappear!


I filed a bug report with a description at bugreport.apple.com (Problem ID: 3767854)

I've confirmed that this is indeed the case: if a source file is Relative to Project but not "below" the project's directory in the file system hierarchy, errors and warnings will not be cleared in the Error and Warnings smartgroup or detail view. The Build Settings window will, however, have the correct build results.


Here are two workarounds:

1) Move the project to the top level of the source, so that all source files are peer to it or below its peers (i.e. no ".." in relative paths)
2) Use the Source Trees feature of Xcode:


a) In Xcode Preferences, choose Source Trees
b) Click Add and add the name of the top level of the project (in Setting Name) and the absolute path to it (in Path)
c) Open your project and select all affected source files, and choose Get Info
d) In the Inspector, choose "Relative to <your Source Tree Setting Name>" for the Path Style


All developers sharing this Xcode project file need to set the Source Trees setting appropriate to their system.

Chris
_______________________________________________
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.


References: 
 >Errors and Warnings (From: Markian Hlynka <email@hidden>)

  • Prev by Date: Re: Relative Paths?
  • Next by Date: Re: Installation path
  • Previous by thread: Errors and Warnings
  • Next by thread: errors and warnings
  • Index(es):
    • Date
    • Thread