Xcode failed with exit code 71

2019-09-09 19:43发布

问题:

I tried to build Qt iOS project but got this issue. Now I try to build this project in the Xcode but get this error:

error: can't exec '/Applications/Xcode' (No such file or directory)

Command /Applications/Xcode failed with exit code 71

How can I resolve it?

回答1:

sudo xcode-select -switch /Applications/Xcode.app/ and recreating the project helped.