First a remark on posting code snippets:
Second, it is most likely that XCode was updated and ROOT was not recompiled ( I just went through this two days ago):