Xcode6 Beta3 : fix writeToFile