Upgrading Python that ships with Xcode from 3.9.6

Hi. Our IT security team have flagged that on many developer machines they see a deprecated version of Python - 3.9.6. I've done some research on this and the general line is, feel free to upgrade the main version of Python on the Mac, but the version of Python which is internally used by Xcode (3.9.6) must be left unchanged. Our IT security team reached out to Apple and have received conflicting information as to if this Ruby 3.9.6 version can be upgraded. One response for example was "I asked my Solutions Engineer and he has come back with the following: We don’t include Python within macOS anymore, we install 3.9.6 with Xcode to support some of the internal tools - but there’s nothing preventing a customer updating that version: https://mac.install.guide/python/update". Does anyone know if it is possible to upgrade to a supported version? Kind regards, Kai.

Answered by DTS Engineer in 881615022

You have the right information:

  • You cannot update the version of Python included with Xcode yourself. If you have a concern to report with the version Xcode is including for its needs, you can file an Xcode bug report through Feedback Assistant.
  • For recent macOS versions, Python is not included with macOS, so any installation you may find in locations like /usr and /opt were installed through other means.

— Ed Ford,  DTS Engineer

Accepted Answer

You have the right information:

  • You cannot update the version of Python included with Xcode yourself. If you have a concern to report with the version Xcode is including for its needs, you can file an Xcode bug report through Feedback Assistant.
  • For recent macOS versions, Python is not included with macOS, so any installation you may find in locations like /usr and /opt were installed through other means.

— Ed Ford,  DTS Engineer

Ed - Thanks for your response, I'll pass this on to our security team. I will raise a bug report too, as you suggest. Apologies for my little typo where I mentioned 'Ruby 3.9.6' - I was also dealing with a Ruby issue and I guess multi tasking does not work so well for me :-) Kind regards, Kai.

Upgrading Python that ships with Xcode from 3.9.6
 
 
Q