Xcode 错误 ITMS-90783:“缺少包显示名称”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/56807112/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode ERROR ITMS-90783: "Missing bundle display name"
提问by Nik Kov
Today I started to receive this error with fastlane and Xcode:
今天我开始在 fastlane 和 Xcode 中收到这个错误:
ERROR ITMS-90783: "Missing bundle display name. The Info.plist key CFBundleDisplayName is missing or has an empty value in the bundle with bundle identifier 'com.id'."
错误 ITMS-90783:“缺少包显示名称。Info.plist 键 CFBundleDisplayName 丢失或在包标识符为“com.id”的包中具有空值。”
It was ok and I didn't remove this property. I think this is a bug on Apple's side.
没关系,我没有删除这个属性。我认为这是苹果方面的一个错误。
Does anyone have the same issue and how did you fix it?
有没有人有同样的问题,你是如何解决的?
回答by Alexey Shikov
回答by Michiko Oi Fukao
Open "info.plist" from your project folder.
从您的项目文件夹中打开“info.plist”。
And add key:"Bundle display name" or CFBundleName
并添加键:“捆绑显示名称”或CFBundleName
and write value:"your app name". or add product name like this $(PRODUCT_NAME)
并写入 value: "your app name"。或像这样添加产品名称$(PRODUCT_NAME)
Key value example
键值示例
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
Then your problem will be solved!
那么你的问题就迎刃而解了!
回答by Lai Lee
回答by Tom Condon
I am having the problem too. Although a newly project has this in its info.plist:
我也有这个问题。虽然一个新项目在它的 info.plist 中有这个:
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
That broke in the last few days for me. Now I hard code CFBundleName to the application name and that seems to work.
对我来说,这在过去几天里打破了。现在我将 CFBundleName 硬编码为应用程序名称,这似乎有效。
回答by Ankit Kumar Gupta
Just go to the Info.plist and check if there is an entry for CFBundleDisplayName
If it is not there then : Open source code of your Info.plist and add this
只需转到 Info.plist 并检查是否有条目CFBundleDisplayName
If it is not there then : Open source code of your Info.plist 并添加这个
<key>CFBundleDisplayName</key>
<string>$(PRODUCT_NAME)</string>
Now try archiving, you will succeed this time. This is a new requirement introduced 5-7 days back.
现在尝试归档,这次你会成功。这是 5-7 天前引入的新要求。
Cheers!!
干杯!!
回答by Castro Zwelithini
I was going through the answers here and when I checked my file it looked to be what it supposed to be, I had not touched the info.plist file in days. Then I noticed something, instead of $(PRODUCT_NAME)
I had ${PRODUCT_NAME)
. Weirdly there was a curly bracket. Since I'm using 2 info.plist files for different targets, I decided to check if the other one also contains the curly bracket and it did.
我正在浏览这里的答案,当我检查我的文件时,它看起来是它应该的样子,我已经好几天没有碰过 info.plist 文件了。然后我注意到了一些东西,而不是$(PRODUCT_NAME)
我有${PRODUCT_NAME)
。奇怪的是有一个大括号。由于我为不同的目标使用了 2 个 info.plist 文件,因此我决定检查另一个文件是否也包含大括号,并且确实如此。
回答by Will Buffington
I'm getting this error, too. Wasn't happening a week ago. I tried entering in a bundle name in the Bundle Identifier but that didn't work. Had to actually paste in $(PROJECT.ROOT) in the Bundle Identifier item of the info.plist, re-archive and then upload to the app store.
我也收到这个错误 一周前没有发生。我尝试在捆绑标识符中输入捆绑名称,但这不起作用。必须在 info.plist 的 Bundle Identifier 项中实际粘贴 $(PROJECT.ROOT),重新存档,然后上传到应用商店。
If that doesn't work, there's another possible solution. It appears that Apple may be requiring the plist entry "Bundle name" to be added with a value of $(PRODUCT_NAME). If you don't have that in your info.plist, you will need to add it, then try again.
如果这不起作用,还有另一种可能的解决方案。看来 Apple 可能要求 plist 条目“Bundle name”添加 $(PRODUCT_NAME) 的值。如果您的 info.plist 中没有它,则需要添加它,然后重试。