You just follow these steps to remove this error, which works great on my side, and I hope that these steps will help you and just give it a try.
i)Remove multiple xcode versions. ii)Quit all Xcode and simulators. iii)Only one version you opened. iv)Go to Xcode -> Preferences

v) Go to Location
vi) Install the correct version for command line tools (Xcode version)
vii) click Derived Data 
viii) Then go to Derived data and delete this folder. see image below 
ix) Click on Simulator reset settings and just close xcode and simulator and open clarity and create xcode and run it.
G Rami Reddy May 18 '17 at 10:15 2017-05-18 10:15
source share