We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17fca67 commit e2f54e5Copy full SHA for e2f54e5
xcode-update.py
@@ -45,6 +45,7 @@ def main():
45
46
args = parse_args()
47
verify_permissions()
48
+ update_xcode_list()
49
if args.interactive:
50
install_latest_xcode(dry_run=True)
51
if args.delete:
@@ -67,6 +68,12 @@ def verify_permissions():
67
68
raise PermissionError(f"The current user doesn't have permissions to install Xcode on {xcode_directory}")
69
70
71
+def update_xcode_list():
72
+ """Updates the list of Xcode versions available."""
73
+
74
+ subprocess.run(['xcodes', 'update'], check=True)
75
76
77
def install_latest_xcode(dry_run: bool):
78
"""Install the latest Xcode version, if it isn't already installed."""
79
0 commit comments