如何在 Xcode 中恢复应用程序 info.plist 的格式?

发布于 2024-08-21 18:12:11 字数 247 浏览 8 评论 0原文

我复制了默认构建目标。 一些代码文件也被重复。 问题是,重复的 info.plist 文件未由 Xcode 格式化。

我认为这不正常。有什么解决办法吗? 或者有什么方法可以指定 plist 的格式吗? (可以通过我的自定义格式规则格式化其他类型的 .plist)

alt text

I duplicated default build target.
Some code files are duplicated also.
Problem is, duplicated info.plist file is not formatted by Xcode.

I don't think this is normal. Any workaround?
Or any way to specify formatting of plist? (which may format other type of .plist by my custom formatting rules)

alt text

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

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

发布评论

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

评论(2

甜点 2024-08-28 18:12:11

重新启动 Xcode 应该可以解决该问题。

Restarting Xcode should fix the problem.

稀香 2024-08-28 18:12:11

根据上下文(右键或 Control-)单击两个文件并选择“打开为”-> “源文件”选项以文本形式查看它们。然后,您可以(直观地)比较它们以确定发生了什么变化(并修复它)。

Contextually (right- or control-) click both files and select the "Open as" -> "source file" option to view them as text. You can then (visually) diff them to determine what changed (and fix it).

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