How to change compiler in Xcode C++

15,051

Solution 1

Select the project in the browser, then navigate to...

XCode

Solution 2

Screenshot of Build Rules:

enter image description here

You can add a rule for C++, click the "+" to the right of "Custom".

Share:
15,051
user1765804
Author by

user1765804

Updated on July 20, 2022

Comments

  • user1765804
    user1765804 almost 2 years

    I've been searching for quite some time, and I can't seem to find out how to change the compiler on the latest Xcode. I am not sure what it is set at currently, but I'd like to change it to GCC if possible. Right now my homework example will not recognize ptrace.h, so I think it might have to do with the chosen compiler.

  • clankill3r
    clankill3r almost 7 years
    Did they change this? I only see "Copy to target" buttons.