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
aBiu333
V2EX  ›  iDev

如何提高 Xcode8 的编译速度?

  •  
  •   aBiu333 · Sep 25, 2016 · 8025 views
    This topic created in 3549 days ago, the information mentioned may be changed or developed.

    Swift 项目,升级到 Xcode8 后,每次运行都要编译很久。。。

    之前 Xcode7 的时候,只会在第一次运行的时候会费些时间。。。

    你们有遇过这种问题么?有没有好的解决办法。。。还是说 Xcode8.0 就这尿性。。。

    14 replies    2016-10-27 00:16:10 +08:00
    dingtianran
        1
    dingtianran  
       Sep 25, 2016
    买个新电脑吧 233
    high
        2
    high  
       Sep 25, 2016 via iPhone
    一开启点就感觉主线程阻塞了,好几秒才缓过来,各位有类似问题没?
    qiyuey
        3
    qiyuey  
       Sep 25, 2016
    @high 我写 Java , debug 的时候就会这样,感觉是系统的问题
    plqws
        4
    plqws  
       Sep 25, 2016
    高配置黑苹果
    free9fw
        5
    free9fw  
       Sep 25, 2016
    16G 表示速度还好
    lvlingsheng
        6
    lvlingsheng  
       Sep 26, 2016 via iPhone
    等马上要出的新垃圾桶
    kitalphaj
        7
    kitalphaj  
       Sep 26, 2016
    你看看每次编译是不是只编译改过的文件或者至少只编译你自己的项目(第三方工具不用重复编译),如果不是的话那 imcremental compiling 就没有起作用。可以看看 build settings 里面是不是没选对。
    aBiu333
        8
    aBiu333  
    OP
       Sep 26, 2016
    @dingtianran 试了网上的一些优化方法,效果不是很明显。。难道真的要换电脑了
    aBiu333
        9
    aBiu333  
    OP
       Sep 26, 2016
    @kitalphaj 每次所有文件都会编译,第三方库也会 build 。。 build settings 里具体要怎么设置?
    kitalphaj
        10
    kitalphaj  
       Sep 26, 2016
    @aBiu333 刚刚看了一下 build settings 似乎并没有相关选项,你用 shift+option+cmd+k 清空一下 build 目录,然后重启 xcode 试试呢。如果你用 cocoapods ,应该有设置 use_frameworks!吧。或者会不会是你有什么自定义的步骤在 build phases 里面?
    winooxx
        11
    winooxx  
       Sep 27, 2016
    换个垃圾桶
    TomorJM
        12
    TomorJM  
       Sep 28, 2016
    同样遇到
    xlw92
        13
    xlw92  
       Oct 25, 2016
    请问楼主找到解决办法了吗
    aBiu333
        14
    aBiu333  
    OP
       Oct 27, 2016
    @xlw92 在 Build Settings 里调整了一些 Debug 模式下的配置,有点效果。。。机子不给力了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3050 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 49ms · UTC 13:40 · PVG 21:40 · LAX 06:40 · JFK 09:40
    ♥ Do have faith in what you're doing.