Then don't use xcode as your C++ IDE. Xcode is for developing in the Apple ecosystem, but there are plenty of other options on OSX if that's not your target. Nearly every C++ toolchain and editor available to you in linux is available in OSX as well through brew/macports(/fink).
Also windows can be installed from USB nearly as easily as ubuntu.