2

我正在尝试在 Codemagic 上设置我的颤振应用程序,但是为 IOS 构建大约需要 40~50 分钟,日志显示是compiling文件.c,并且.cc有很多这些文件正在编译。有没有办法让构建更快?我错过了一些配置吗?

4

1 回答 1

3

There are some steps you can take in order to shorten your build time:

  1. As Mikhail said, make sure you don't have -v in your build arguments. Verbose mode can affect build time;
  2. Look over your dependencies and make sure all that you have there is all that you need. Too many useless dependencies can also have a toll on your build time;
  3. Separate testing and building. We have noticed that with tests Build step sometimes tends to also take longer time. Therefore create a separate workflow with testing and use 'run tests only'

Other reasons why building iOS can take such a long time are unfortunately out of our hands, hence Apple making building iOS apps much more complicated than Android and other type of restrictions.

Heres also a nice article about how companies battle the iOS build time: https://medium.com/@SkyscannerEng/hate-to-wait-how-skyscanner-used-module-caching-to-cut-app-build-speed-in-half-e906da1c077e

于 2020-02-13T07:29:36.227 回答