title: Xcode 5.0 XCTest: ambiguous expansion of macro 'NULL'
body: <p>I'm using Xcode 5. I have a OS X Framework / iOS static library project with mixed ObjC/C++ code and language dialects set to C11/C++11.</p>
  
  <p>I added a <em>Cocoa Unit Testing Bundle</em> target which uses XCTest, I created one for both the iOS static library and the OS X framework.</p>
  
  <p>This is the code I have and the error I get in both:</p>
  
  <pre><code>-(void) testExample
  {
      NSObject* world = [NSObject new];
  
      world = nil;  &lt;--- Ambiguous expansion of macro 'NULL'
  }
  </code></pre>
  
  <p>Running the iOS test the compiler tells me it is using the definition of NULL from stddef.h (line 74, <code>((void*)0)</code>) and the other definition being in usr/include/stdlib.h (line 115, <code>__DARWIN_NULL</code>). </p>
  
  <p>The OS X test fails points to usr/include/MacTypes.h (line 90, <code>__DARWIN_NULL</code>) with this time the alternative being in stddef.h (line 74, <code>((void*)0)</code>).</p>
  
  <p>Google has nothing on this issue. I'm just like "Well, I guess it's just one of these days...".</p>
  
  <p>Any clues as to what may be going on here, and how to fix it?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>The iOS tests not running were due to creating the iOS unit test bundle with the OS X "Cocoa Unit Testing Bundle". /me slap</p>
  
  <p>The OS X testing issue persists though. But I have a hunch that being on OS X 10.9 (Mavericks) this may be related to a missing 10.9 SDK (Base SDK is set to 10.8).</p>