我正在使用Bitrise,并且我已经将我的开发机器和bitrise堆栈都更新到了Xcode11。
在运行构建时,需要重新生成迦太基依赖项,因为我使用的是AWS依赖项,即使在我的Mac book pro中,它们也需要很长时间才能构建,它们会使Bitrise构建超时。
这里有一个关于如何配置我的bitrise.yml的示例:
...
workflows:
test:
steps:
- gitlab-status:
run_if: not (enveq "BITRISE_GIT_COMMIT" "")
inputs:
- private_token: "$GITLAB_STATUS_TOKEN"
- preset_status: running
- api_base_url: https://gitlab.company.cloud/api/v4
- activate-ssh-key:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone: {}
- cache-pull:
inputs:
- is_debug_mode: 'true'
- certificate-and-profile-installer: {}
- carthage:
inputs:
- verbose_log: 'yes'
- carthage_options: "--platform ios --no-use-binaries --cache-builds"
- cocoapods-install: {}
- xcode-test:
inputs:
- scheme: CompanyApp
- project_path: CompanyApp.xcworkspace
- simulator_device: iPhone 8
- xcode-test:
inputs:
- project_path: CompanyApp.xcworkspace
- simulator_device: iPhone 8
- scheme: CompanyAppUITests
- gitlab-status:
run_if: not (enveq "BITRISE_GIT_COMMIT" "")
inputs:
- private_token: "$GITLAB_STATUS_TOKEN"
- api_base_url: https://gitlab.company.cloud/api/v4
- cache-push:
is_always_run: true
inputs:
- is_debug_mode: 'true'
- deploy-to-bitrise-io: {}
...以防万一,它们是构建日志中的最后两行
*** Building scheme "AWSLogs" in AWSiOSSDKv2.xcodeproj
*** Building scheme "AWSMachineLearning" in AWSiOSSDKv2.xcodeproj有什么想法吗?
发布于 2019-10-31 17:04:42
解决方案是不在CI中重新构建库,在将它们添加到存储库并跳过CI中的构建部分后,您将看到构建时间的大幅减少。
发布于 2020-06-03 15:37:56
尝试删除--no-use-binaries。
通过选择不使用二进制文件,大型依赖项不能为您提供预编译的二进制文件,从而大大减少编译时间。如果您删除了该标志,您应该注意到编译速度会加快。
https://stackoverflow.com/questions/58500034
复制相似问题