• 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: Xcode - An Apple Embarrassment NOT
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode - An Apple Embarrassment NOT


  • Subject: Re: Xcode - An Apple Embarrassment NOT
  • From: Warren Dodge <email@hidden>
  • Date: Tue, 06 Mar 2012 08:23:41 -0800

On Mar 6, 2012, at 1:42 AM, Andreas Grosam wrote:
>
> On Mar 6, 2012, at 7:54 AM, Joar Wingfors wrote:
>
>>
>>> Could this explain why Issue Navigator is no longer taking me to the source line of code for issues?
>>
>>
>> Not sure, but I wouldn't think so. If Xcode has found an issue in your project, it should per definition have enough information to take you to that issue. If you can reproduce a problem of that nature, please file a bug report.
>
>
> I have been able to reproduce such an issue. It's caused by a build setting which is a relative path definition containing a "..", e.g.:
> MY_INCLUDE_PATH= ../Source/include
> used for a header search path.
>
> Xcode incorrectly prepends the path with a "/" when inserting the issue in the list, e.g.
>
> /../Source/include/offending_file.h
>
>
> it should be:
> ../Source/include/offending_file.h
>
> or, respectively, with an absolute path, e.g.:
> /Users/me/MyDevelop/MyProject/Source/include/offending_file.h
>
> You can find this out when copying & pasting the issue into a text editor.
>
> Note: clang's transcripts are correct.
>
>
> Regards
> Andreas

You can usually work around this issue by starting the relative path with an Xcode build variable such as $SRCROOT.
So, MY_INCLUDE_PATH= ../Source/include
might become
MY_INCLUDE_PATH= $SRCROOT/../Source/include


Warren
 _______________________________________________
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


References: 
 >Re: Xcode - An Apple Embarrassment NOT (From: lbland <email@hidden>)
 >Re: Xcode - An Apple Embarrassment NOT (From: Lee Ann Rucker <email@hidden>)
 >Re: Xcode - An Apple Embarrassment NOT (From: Brian Lambert <email@hidden>)
 >Re: Xcode - An Apple Embarrassment NOT (From: Joar Wingfors <email@hidden>)
 >Re: Xcode - An Apple Embarrassment NOT (From: Andreas Grosam <email@hidden>)

  • Prev by Date: Re: Xcode - An Apple Embarrassment NOT
  • Next by Date: When did forward method references become legal?
  • Previous by thread: Re: Xcode - An Apple Embarrassment NOT
  • Next by thread: Re: Xcode - An Apple Embarrassment
  • Index(es):
    • Date
    • Thread