OGeek|极客世界-中国程序员成长平台

标题: ios - 有什么方法可以防止对 Storyboard 进行愚蠢的 Xcode 更新? [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 15:59
标题: ios - 有什么方法可以防止对 Storyboard 进行愚蠢的 Xcode 更新?

Xcode 多年来一直因为这样的更新而困扰我

+++ b/Project/Base.lproj/Main.storyboard
@@ -890,8 +890,6 @@ some existing one.</string>
     <resources>
         <image name="TabBarButton" width="65" height="15"/>
         <image name="TabBarHome" width="25" height="25"/>
-        <image name="TabBarHome" width="25" height="25"/>
-        <image name="TabBarSettings" width="25" height="25"/>
         <image name="TabBarSettings" width="25" height="25"/>
         <image name="TrashCan" width="13" height="15"/>
     </resources>

你可能认为我确实有重复的行。好的,但是下次 Xcode 会这样做:

+++ b/Project/Base.lproj/Main.storyboard
@@ -890,8 +890,6 @@ some existing one.</string>
     <resources>
         <image name="AddBrick" width="65" height="15"/>
         <image name="TabBarHome" width="25" height="25"/>
+        <image name="TabBarHome" width="25" height="25"/>
+        <image name="TabBarSettings" width="25" height="25"/>
         <image name="TabBarSettings" width="25" height="25"/>
         <image name="TrashCan" width="13" height="15"/>
     </resources>

有什么办法可以预防吗?



Best Answer-推荐答案


答案是“不”。 Storyboard是包含序列化对象图的复杂文档,以及这些对象的父级,以及 Storyboard GUI 的图形图。每当您触摸 Storyboard 中的对象或更改 Storyboard 中实例化的任何内容的类定义时,Xcode 都会进行大量更改。把它想象成一个黑盒子。

关于ios - 有什么方法可以防止对 Storyboard 进行愚蠢的 Xcode 更新?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19544157/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4