Is it possible to remove DerivedData on bitrise?

ios
#1

Is the directory /Users/vagrant/Library/Developer/Xcode/DerivedData cached on bitrise’s docker image? If so, is there a way to delete this directory?

I’m getting the following error:

The repository at /Users/vagrant/Library/Developer/Xcode/DerivedData/TrackerMobile-gzsaxqngmbiqrzabmtvftrhsopwm/SourcePackages/repositories/SqliteNStuff-3d596b57 is invalid; try resetting package caches

It appears to be referencing an invalid Swift Package.

Regards,

Mike

0 Likes

#2

Hi Mike,

Thanks for reaching out.

I don’t believe that Bitrise automatically caches the DerivedData directory between builds but I have posted a question internally to clarify that.

In any case, you can delete the contents of the DerivedData directory by running the following earlier in the build using a script step:

rm -rf ~/Library/Developer/Xcode/DerivedData

Please don’t hesitate to follow-up if you have any other questions.

0 Likes

#3

Hi Mike,

I’ve confirmed with my colleagues that we do not cache the DerivedData directory between builds by default.

Please don’t hesitate to follow-up if you have any other questions.

0 Likes

closed #4

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

0 Likes