close

[Solved] Big Sur clang “invalid version” error due to MACOSX_DEPLOYMENT_TARGET

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Big Sur clang “invalid version” error due to MACOSX_DEPLOYMENT_TARGET in Python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Big Sur clang “invalid version” error due to MACOSX_DEPLOYMENT_TARGET Error Occurs?

Today I get the following error Big Sur clang “invalid version” error due to MACOSX_DEPLOYMENT_TARGET in Python.

How To Solve Big Sur clang “invalid version” error due to MACOSX_DEPLOYMENT_TARGET Error ?

  1. How To Solve Big Sur clang “invalid version” error due to MACOSX_DEPLOYMENT_TARGET Error ?

    To Solve Big Sur clang “invalid version” error due to MACOSX_DEPLOYMENT_TARGET Error I had already removed and reinstalled xtools CLI, but the error persisted.. All I needed to do was export SYSTEM_VERSION_COMPAT=1 then the error went away

Solution 1

I would like to extend excellent answer; if it doesn’t work even with running

>>> softwareupdate --all --install --force
Software Update Tool

Finding available software
No updates are available.

…following the wisdom of the “homebrew doctor” solves it, i.e. remove and reinstall:

sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install

Solution 2


I had already removed and reinstalled xtools CLI, but the error persisted..

All I needed to do was

export SYSTEM_VERSION_COMPAT=1

then the error went away

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also Read

Leave a Comment