[Build] Add a rule to execute the first run of Xcode. Why copy paste a command? (#11180)
* [Build] Add a rule to execute the first run. Why copy paste a command\? * Some info about the targets.
This commit is contained in:
Родитель
6022c63970
Коммит
b483c26db4
3
Makefile
3
Makefile
|
@ -147,6 +147,9 @@ fix-install-permissions:
|
|||
fix-xcode-select:
|
||||
sudo xcode-select -s $(XCODE_DEVELOPER_ROOT)
|
||||
|
||||
fix-xcode-first-run:
|
||||
$(XCODE_DEVELOPER_ROOT)/usr/bin/xcodebuild -runFirstLaunch
|
||||
|
||||
git-clean-all:
|
||||
@echo "$(COLOR_RED)Cleaning and resetting all dependencies. This is a destructive operation.$(COLOR_CLEAR)"
|
||||
@echo "$(COLOR_RED)You have 5 seconds to cancel (Ctrl-C) if you wish.$(COLOR_CLEAR)"
|
||||
|
|
|
@ -330,7 +330,7 @@ function run_xcode_first_launch ()
|
|||
$SUDO "$XCODE_DEVELOPER_ROOT/usr/bin/xcodebuild" -runFirstLaunch
|
||||
log "Executed '$SUDO $XCODE_DEVELOPER_ROOT/usr/bin/xcodebuild -runFirstLaunch'"
|
||||
else
|
||||
fail "Xcode has pending first launch tasks. Execute '$XCODE_DEVELOPER_ROOT/usr/bin/xcodebuild -runFirstLaunch' to execute those tasks."
|
||||
fail "Xcode has pending first launch tasks. Execute 'make fix-xcode-first-run' to execute those tasks."
|
||||
return
|
||||
fi
|
||||
fi
|
||||
|
@ -535,7 +535,7 @@ function check_specific_xcode () {
|
|||
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."
|
||||
fail "'xcode-select -p' does not point to $XCODE_DEVELOPER_ROOT, it points to $XCODE_SELECT. Execute 'make fix-xcode-select' to fix."
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
Загрузка…
Ссылка в новой задаче