Xcode 增加了很多 <animations/>在我的故事板和 xib 文件中标记 [英] Xcode adds a lot of <animations/> tag in my storyboard and xib file

查看:26
本文介绍了Xcode 增加了很多 <animations/>在我的故事板和 xib 文件中标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是想知道是否有人和我有同样的问题:Xcode 在我触摸的故事板中添加了很多标签.我尝试删除,但我不能,因为它不断添加这些标签.

Just wanna know if anybody has the same issue as mine: Xcode adds a lot of tags into the storyboard I touch. I try to remove but I can't because it keep adding those tags back.

这是我使用的新 Xcode (7.0.1) 的错误吗?

It this a bug of the new Xcode I'm using (7.0.1)?

推荐答案

自 2015 年 10 月 28 日发布的 Xcode 7.2 Beta (7C46I) 起,就像在 Xcode 7 中打开 Storyboard 或 XIB 文件时自动添加这些标签一样或 El Capitan 上的 7.1,现在只需打开 Storyboard 或 XIB 文件即可自动删除这些标签.(现在看来标签的添加可能是无意的.)

As of Xcode 7.2 Beta (7C46I) released on 10/28/2015, just like these tags were added automatically when opening a Storyboard or XIB file in Xcode 7 or 7.1 on El Capitan, these tags are now being removed automatically by just opening a Storyboard or XIB file. (It now seems that the addition of the tags may have been unintentional.)

由于这在我的一些团队中对 Storyboard 和 XIB 文件的修改造成了一些问题,我建议如果您在一个项目中与多人合作,您 a) 协调所有人使用相同版本的 Xcode 和 b) 协调从 Xcode 7.1 切换到 7.2 的时间,以避免不必要的合并冲突.

As this has caused some issues with modifications to Storyboard and XIB files within some of my teams I recommend that if you're working with multiple people on a project that you a) coordinate to all use the same version of Xcode and b) coordinate a time to switch from Xcode 7.1 to 7.2 to avoid unnecessary merge conflicts.

显示这些标签的 XIB 文件在使用 Xcode 7.2 beta 打开后被删除:

这篇关于Xcode 增加了很多 <animations/>在我的故事板和 xib 文件中标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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