5

We're using Travis CI (travis-ci.com) to build an xcode iOS project and our project compile time is quite lengthy (5 minutes locally and 15 minutes on travis CI).

To alleviate the compile time we have attempted to cache the DerivedData contents using xcodebuild argument -derivedDataPath and then use the travis cache (https://docs.travis-ci.com/user/caching/) to copy that data back.

The problem is that xcode seems to ignore this cached data. Does anyone know a way to force xcode to use the cache data inside the -derivedDataPath?

1
  • 2
    did you ever find a solution for this? Sep 17, 2019 at 21:02

1 Answer 1

4

Apple replied with this solution, i have not yet tested it.

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.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.