Fix the bug which loses the weak attribute for newly added file when save Xcode project file.