为什么 IB 在打开 xib 文件时更改对象 ID?

发布于 2024-08-04 18:41:49 字数 246 浏览 1 评论 0原文

我在不同 Mac 上的不同项目中的一些 xib 文件也遇到同样的问题。 IB 正在更改我的 xib 文件中某些视图的对象 ID。我只需要双击 Xcode 中的 xib 文件即可在 IB 中打开它,然后尝试再次关闭 xib 文件而不更改任何内容,IB 将 xib 文件标记为脏,以便我必须保存它再次。

这让我发疯,因为它会破坏我所有的本地化,因为它们依赖于对象 ID (ibtool)。

有什么想法或经验吗?

谢谢

I have the same problem with some xib files in different projects on different macs. IB is changing the Object IDs of some views in my xib file. I need only to double click the xib file from Xcode to open it in IB and then try to close the xib file again without changing anything and IB marks the xib file as dirty so that I have to save it again.

This drives me crazy because it will break all my localizations since they are depending on the object IDs (ibtool).

Any ideas or experiences?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

栀子花开つ 2024-08-11 18:41:49

这是旧版本 IB 中的一个错误。他们在 IIRC 3.1 中修复了这个问题。

This was a bug in old versions of IB. They fixed it in, IIRC, 3.1.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文