I have got this warning when upgrade my project:
directory not found for option \'-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.p
I had the same error with Xcode 9.2 and here is my solution:
This is what the screen looked like before deleting