<类>元素在故事板文件中翻转和不存在 [英] <classes> element flipping in and out of existence in storyboard file

查看:78
本文介绍了<类>元素在故事板文件中翻转和不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这不是一个大问题,但很烦人。每次我在Interface Builder中编辑故事板并且我想将其检入修订控制系统时,就会生成或删除一个元素:如果它存在则将其删除,反之亦然。

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?

推荐答案

一旦可行,立即切换到Xcode 5。在那里,他们将XIB格式更改为可合并的XML。

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

当您仍在使用Xcode 4.x时,您需要忽略对XIB文件的更改。不要总是全部提交,而是将那些你不想要的更改还原为噪音

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"

这篇关于<类>元素在故事板文件中翻转和不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆