[system-dependencies] Clear xcrun cache after switching system Xcode. (#2281)

It seems the xcrun cache can become corrupted when switching between betas, so
make sure to clear it when we change the system Xcode.
This commit is contained in:
Rolf Bjarne Kvinge 2017-07-03 07:16:02 +02:00 коммит произвёл GitHub
Родитель 433a77f441
Коммит 5e98e96fef
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -269,6 +269,8 @@ function install_specific_xcode () {
log "Executing 'sudo xcode-select -s $XCODE_DEVELOPER_ROOT'"
sudo xcode-select -s $XCODE_DEVELOPER_ROOT
log "Clearing xcrun cache..."
xcrun -k
ok "Xcode $XCODE_VERSION provisioned"
}
@ -316,6 +318,8 @@ function check_specific_xcode () {
if ! test -z $PROVISION_XCODE; then
log "Executing 'sudo xcode-select -s $XCODE_DEVELOPER_ROOT'"
sudo xcode-select -s $XCODE_DEVELOPER_ROOT
log "Clearing xcrun cache..."
xcrun -k
else
fail "'xcode-select -p' does not point to $XCODE_DEVELOPER_ROOT, it points to $XCODE_SELECT. Execute 'sudo xcode-select -s $XCODE_DEVELOPER_ROOT' to fix."
fi