element flipping in and out of existence

2020-06-03 03:26发布

问题:

This isn't a big problem but it is annoying. Every time I edit my storyboard in Interface Builder and I want to check it into the revision control system there's a element that is either generated or removed: if it existed it is removed and vice versa.

It adds needless noise to my checkins.

Does someone have an idea of what's going on and how to fix it?

回答1:

Switch to Xcode 5 as soon as this becomes feasible. There they change the XIB format to be mergeable XML.

While you are still on Xcode 4.x you need to ignore changes to XIB files. Don't always commit all, but revert those changes that you don't want as "noise"