I have a problem I don\'t know why did it happen in the first place but most probably because I\'ve pressed move to trash to some system frameworks by mistake.
In my situation, all I needed to do was click Product > Clean, then build the project again. It succeeded. Hope this helps some others who run into the same situation.