Our solution was to isolate all C ++ code for a separate purpose and compile it for Mac (not ios). You can continue to use xCode to write and run code. After your goal is built, you can execute any third-party command line tools, such as valgrind or Google test framework (from the command line, of course).
source share