You can try with a lower version of Xcode, sometimes it happens in very recent versions that it generates some strange errors. You can download it and try if that solves the problem :)