XCode is compatible with C, C++ and Objective C as well as Swift.Objective C is based on C.You can execute any C program in XCode as long as it does not have any platform specific dependencies that would prevent it from running on an Apple device / computer.Can you explain what the problem is, show some code and the error you get (screenshot) ?How did you create your project ?Try File > New > Project then OS X > Command Line Tool. Select C as the language. A main.c file will be created for you.
Topic:
Programming Languages
SubTopic:
General
Tags: