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