开发者

Can I run Objective-C programs (not iPhone/Mac projects) in Xcode like executing C programs?

开发者 https://www.devze.com 2023-02-09 21:09 出处:网络
I am working in Mac system. Is it possible to run Objective-C programs in Xcode? I am not talking about running iPhone/Mac projects. I am talking about simple Objective-C programs, like we run C progr

I am working in Mac system. Is it possible to run Objective-C programs in Xcode? I am not talking about running iPhone/Mac projects. I am talking about simple Objective-C programs, like we run C programs in C editors. Does Xcode has the provision for this? Or, I have to use some other editors? Which editors I can use?

Please s开发者_JS百科uggest me.. Thanks everyone..


You don't need Xcode to run a program. You can just execute a program from the command line or by double-clicking. (You also do not need an editor to run a C program.)


Foundation is the one that you want

On xcode 4.4 its under OSX -> Application -> Command Line Tool

And change the option to Foundation


This SO link from David Gelhar's comment on my question has the answer for this question.

0

精彩评论

暂无评论...
验证码 换一张
取 消