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