Can't compile C program on a Mac after upgrade to Mojave

前端 未结 15 692
陌清茗
陌清茗 2020-11-22 06:58

I have used the gcc command on the terminal to compile C programs but all of a sudden, after an update to my Mac\'s OS (to macOS 10.14 Mojave, and XCode 10.0), I started rec

15条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-22 07:26

    Be sure to check Xcode Preferences -> Locations.

    The Command Line Tools I had selected was for the previous version of Xcode (8.2.1 instead of 10.1)

提交回复
热议问题