/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?