• 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: Warning: warning weak symbol references not set in output with…
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Warning: warning weak symbol references not set in output with…


  • Subject: Re: Warning: warning weak symbol references not set in output with…
  • From: Chris Espinosa <email@hidden>
  • Date: Wed, 18 Jul 2007 10:36:59 -0700


On Jul 17, 2007, at 9:51 PM, Chris Suter wrote:

/usr/bin/ld: warning weak symbol references not set in output with MACOSX_DEPLOYMENT_TARGET environment variable set to: 10.1

/usr/bin/ld: warning weak referenced symbols:

_NSCocoaErrorDomain

_NSFilePathErrorKey

_NSLocalizedFailureReasonErrorKey

_NSLocalizedRecoveryOptionsErrorKey

_NSLocalizedRecoverySuggestionErrorKey

_NSRecoveryAttempterErrorKey

_NSStringEncodingErrorKey

_NSURLErrorKey

_NSUnderlyingErrorKey


I get the warning when compiling a static library. MACOSX_DEPLOYMENT_TARGET is actually set to 10.3.


It doesn't look like XCode sets the environment variable for a "MasterObjectLink" phase.


If I set the environment variable and run the it from the command line, it works fine.


I've reported it as an XCode bug.


Anyone seen this before or know a workaround?


Well, whatever you think MACOSX_DEPLOYMENT_TARGET is set to, the linker is being told it's 10.1 (which is the default when it's not set at all.)

Being able to see the linker invocation, not just the errors produced, would help clear this up.

Check your Target's Build Settings for the configuration you're building and make sure the Development Target is set to 10.3.  (One of the most common errors in Xcode is setting a build setting on the wrong configuration or on the project instead of the target).

Chris

 _______________________________________________
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

  • Follow-Ups:
    • Re: Warning: warning weak symbol references not set in output with…
      • From: Chris Suter <email@hidden>
References: 
 >Warning: warning weak symbol references not set in output with… (From: Chris Suter <email@hidden>)

  • Prev by Date: Re: Inline functions get debugger confused about source files
  • Next by Date: Re: Odd Console messages after kernel panic
  • Previous by thread: Warning: warning weak symbol references not set in output with…
  • Next by thread: Re: Warning: warning weak symbol references not set in output with…
  • Index(es):
    • Date
    • Thread