简体   繁体   English

纠正捆绑包ID的最佳方法

[英]Best way to correct bundle ID

I just realized that something is not working because the case doesn't match in my bundle IDs between iTunes connect and my app in Xcode. 我只是意识到有些事情不起作用,因为iTunes Connect和我在Xcode中的应用之间的包ID大小写不匹配。

I've run into problems before with case mismatch, so I want to get a consensus on how to fix this problem before I try anything. 我在遇到大小写不匹配之前遇到了问题,因此我想在尝试任何操作之前就如何解决此问题达成共识。

The iTunes connect version has an all lower case bundle ID. iTunes Connect版本具有所有小写的捆绑包ID。 My project in Xcode has lower case for the revers domain name part but a capital letter for the first letter of the last word. 我在Xcode中的项目的反向域名部分为小写字母,但最后一个单词的首字母为大写字母。

What's the best way to fix this without creating more problems? 解决此问题而不产生更多问题的最佳方法是什么?

You should simply hardcode the bundle ID to a string that matches the Bundle ID in iTunes Connect, rather than using the ${PRODUCT_NAME} variable. 您应该简单地将捆绑软件ID硬编码为与iTunes Connect中的捆绑软件ID匹配的字符串,而不是使用${PRODUCT_NAME}变量。 That way, even if you were to change the app name, the bundle ID will always match. 这样,即使您要更改应用程序名称,捆绑包ID也将始终匹配。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM