How can I enforce a compiler warning or error for namespace conflicts? How can I enforce a compiler warning or error for namespace conflicts? xcode xcode

How can I enforce a compiler warning or error for namespace conflicts?


I don't think at this point Xcode supports this unfortunately - some less fruitful solutions:

  • Open a radar task, and hope that Apple fixes it.
  • Prefix your classes (as we used to do with Obj-C)

The second option should be viable for most projects; instead of Foo and Foo, you will have LIBAFoo, LIBBFoo, but in practice, with more meaningful prefixes i.e. CACore Animation.