Xcode can't install on Linux. Xcode support only MacOS because it has need to Apple ID. But you can use vertual Mac on your pc