XCode:编译并不总是取代plist?

发布于 2024-09-02 16:25:37 字数 183 浏览 5 评论 0原文

我有一个应用程序,有时我会更改 plist,比如更改版本号。有时我实际上会对代码和版本号进行更改......在后一种情况下,有时生成的应用程序的版本号会改变,在前者中它永远不会改变。我发现确实正确的唯一方法是在编译之前删除 .app 。

如果重要的话,生成的应用程序将被放入不在构建文件夹中的文件夹中,但我怀疑这是否相关。有什么想法吗?

I have an application and I will sometimes just change the plist, say to change the version number. Sometimes I'll actually make a change to the code, AND the version number....in the latter case, SOMETIMES the version number of the resulting app will change, in the former it will never change. The only way I've found that surely does it right is when I delete the .app before compiling.

In case it matters, the resulting app is being put in a folder that isn't in the build folder, but I doubt that that's relevant. any thoughts?

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

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

发布评论

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

评论(2

因为看清所以看轻 2024-09-09 16:25:37

您不必删除整个应用程序,只需打开它并删除 Info.plist 即可。我知道这仍然不太令人满意。

You don't have to delete the whole app, just open it up and delete the Info.plist. I know that's still not very satisfactory.

东京女 2024-09-09 16:25:37

如果我在每次构建之前进行清理,这似乎也有效,但是在一个大项目中这真的很慢...

看来如果我在目标中包含plist,它会更新它...但这给了我一个警告。幸运的是,这只是一个警告,我可以忽略它......

if I make clean before each build, that seems to work as well, but that's REALLY slow in a big project...

It appears that if I include the plist in the target, it WILL update it... however that gives me a warning. fortunately, it's only one warning and I can ignore it...

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