iOS 开发实用技术导航
NSHipster 中文版
› http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
› http://www.cocos2d-iphone.org/
CocoaPods
› http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
› http://code.google.com/mobile/analytics/
WWDC
› https://developer.apple.com/wwdc/
Design Guides and Resources
› https://developer.apple.com/design/
Transcripts of WWDC sessions
› http://asciiwwdc.com
Cocoa with Love
› http://cocoawithlove.com/
Cocoa Dev Central
› http://cocoadevcentral.com/
NSHipster
› http://nshipster.com/
Style Guides
› Google Objective-C Style Guide
› NYTimes Objective-C Style Guide
Useful Tools and Services
› Charles Web Debugging Proxy
› Smore
jaylong
V2EX  ›  iDev

Command Line Tools for Xcode有什么用?

  •  
  •   jaylong · Oct 21, 2012 · 44228 views
    This topic created in 5131 days ago, the information mentioned may be changed or developed.
    最近工作需要要学C语言和C++ 看别人用的都是windows下的visualstudio,自己用的mac不想装win7了,所以尝试在mac下用xcode学习C语言编程,但是看很多安装xcode的教程都说装完之后要安装Command Line Tools for Xcode,请问这个有什么用?我没有安装的时候也是可以用xcode创建C语言格式的命令行的project的啊

    顺便问下初学者该选用什么样的教材,目前在跟着《谭浩强 C语言程序设计》这个练习
    14 replies  •  1970-01-01 08:00:00 +08:00
    insraq
    insraq
    Oct 21, 2012
    1
    C complier
    jaylong
    jaylong
    OP
    Oct 21, 2012
    2
    @insraq 可是没安装它的时候编写的c代码也是可以被run的啊?那还安装这个C编译器有什么用?还有就是安装完了之后,我除了看到xcode的preference里它的状态从install变成update之外,没发现别的变化,具体要怎么使用它呢?
    yunwoo
    yunwoo
    Oct 21, 2012
    3
    @jaylong 不安装的话终端里面没有cc命令
    crazytony
    crazytony
    Oct 21, 2012
    4
    里面有git, xcrun, xcodebuild等等。

    它的名字很清楚嘛,“xCode命令行工具”。你学C根本不需要用xCode,杀鸡用牛刀了,有文本编辑器,有gcc,那就够了。

    书么,你选的这本就别看了,看看《C语言程序设计》。
    thcode
    thcode
    Oct 21, 2012❤️1
    5
    Command Line Tools for Xcode 是命令行工具的集合,安装了有好处。提示“update”就点击update吧
    谭浩强的书就算了,推荐 http://book.douban.com/subject/1230004/ ,还可以用 http://c.learncodethehardway.org/book/ 这个当参考和练习
    lyuehh
    lyuehh
    Oct 21, 2012
    6
    千万别用谭浩强的那本书学C
    join
    join
    Oct 22, 2012
    7
    哈哈,这就是看谭浩强的后果,连命令行gcc都不用了。‘这还叫c语言吗?
    要是我当年在学校能拥有一台mac该多幸福啊。
    xatest
    xatest
    Oct 22, 2012
    8
    1. 需要gcc
    2. CodeRunner的必须环境
    iYu
    iYu
    Oct 22, 2012
    9
    最后 换本书。
    iYu
    iYu
    Oct 22, 2012
    10
    chisj
    chisj
    Oct 22, 2012
    11
    让你的Command Line可以运行llvm
    jiangpeng
    jiangpeng
    Oct 22, 2012
    12
    Xcode.app 包里面其实已经有了 complier toolchain,可以通过 xcrun 来调用
    单独装是为了方便在命令行(终端)下进行开发
    jaylong
    jaylong
    OP
    Oct 27, 2012
    13
    @iYu 博客写的不错
    jaylong
    jaylong
    OP
    Oct 27, 2012
    14
    @thcode 第二个链接很赞
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2258 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 13:51 · PVG 21:51 · LAX 05:51 · JFK 08:51
    ♥ Do have faith in what you're doing.