How to decrease build times / speed up compile time in Xcode?

后端 未结 14 1565
悲&欢浪女
悲&欢浪女 2020-12-04 06:40

What strategies can be used in general to decrease build times for any Xcode project? I\'m mostly interested in Xcode specific strategies.

I\'m doi

14条回答
  •  借酒劲吻你
    2020-12-04 07:29

    Quick Note Regarding 'Throw more hardware at it' approach..

    SUMMARY: I experienced a SMALL speed increase from making a SIGNIFICANT hardware upgrade

    Test: Build/Run the exact same project on cloned macbooks (where the only difference should be their hardware)

    Old Macbook Air (1.86GHZ Core 2 Duo ONLY 2GB RAM) vs Brand New Macbook Pro (2.3GHZ Core i7 8GB RAM)

    BUILDING ON IPHONE 3GS
    Macbook Air 1:00 - 1:15
    Macbook Pro ~1:00

    => 0 to 0:15 of speed increase

    BUILDING ON IPHONE 4S
    Macbook Pro ~0:35
    Macbook Air ~0:50

    => ~15 seconds of speed increase

    **Partially tested: There DOES apear to a significant difference between build times for the SIMULATOR between the 2 machines


    In my continued experience.. you WILL get a significant increase when making big changes in PHONE hardware (i.e. build time on a 3GS vs iphone 5 (or 4 for that matter)).. at least in my experience, the limiting factor was the phone hardware (not the computer hardware).

    SO.. to get the fastest build time..
    option1) write code and run in the simulater on a fast computer OR
    option 2) build on the device with the lastest iphone

提交回复
热议问题