[TIMOB-17532] Fixed bug when an invalid or no Xcode is selected.
Merge pull request #5999 from cb1kenobi/timob-17532

[TIMOB-17532] Fixed bug when an invalid or no Xcode is selected.