gpt4 book ai didi

xcode - 是否可以复制 xcode 派生数据缓存?

转载 作者:行者123 更新时间:2023-12-03 17:03:35 26 4
gpt4 key购买 nike

我们正在使用 Travis CI (travis-ci.com) 构建一个 xcode iOS 项目,我们的项目编译时间相当长(本地 5 分钟,travis CI 15 分钟)。

为了减少编译时间,我们尝试缓存 DerivedData内容使用 xcodebuild参数-derivedDataPath然后使用 travis 缓存( https://docs.travis-ci.com/user/caching/ )将该数据复制回来。

问题是 xcode 似乎忽略了这个缓存数据。有谁知道强制 xcode 使用 -derivedDataPath 中的缓存数据的方法吗? ?

最佳答案

苹果回复了这个解决方案,我还没有测试过。

Apple Developer Relations Dec 20 Engineering has the following feedback for you:

It is expected behavior that file modification times will cause rebuilds. In Travis-CI, however, it may not be the modification times, but rather the device inode changes that are causing the derived data to be considered out of date. Try setting:

defaults write com.apple.dt.XCBuild IgnoreFileSystemDeviceInodeChanges -bool YES

Or pass it on the xcodebuild command-line:

IgnoreFileSystemDeviceInodeChanges=1 xcodebuild …

We are now closing this bug report.

If you have questions or comments about the resolution, please update your bug report with that information so we can respond.

关于xcode - 是否可以复制 xcode 派生数据缓存?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53753511/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com