[英]This bundle is invalid. The Info.plist file is missing or could not be parsed. Please check it for embedded control characters
I experienced similar issue recently - messed with a lot of different things but at the end, the issue was a bad character in the file - which is only visible through an editor like vi.我最近遇到了类似的问题 - 搞砸了很多不同的事情但最后,问题是文件中的一个坏字符 - 只有通过像 vi 这样的编辑器才能看到。 Open the file with vi and then navigate to the bad character if you find one (it usually sticks out like a sore thumb as a different color to the rest of the file) - then hit 'x' to delete it.
使用 vi 打开文件,如果找到坏字符(它通常会像拇指一样突出,因为颜色与文件的其余部分不同),然后导航到坏字符 - 然后点击“x”将其删除。 The type colon on keyboard and 'wq' and hit enter to save and exit.
在键盘上输入冒号和“wq”,然后按回车键保存并退出。 Delete previous archive - archive again and try to validate.
删除以前的存档 - 再次存档并尝试验证。 This worked for me.
这对我有用。
I had the same issue & I wasted full day looking here and there creating builds and validating them.我遇到了同样的问题,我浪费了一整天的时间在这里和那里创建构建并验证它们。 I checked my
Info.plist
file & there was no control character.我检查了我的
Info.plist
文件,没有控制字符。
One property CFBundleShortVersionString
from Info.plist
was referring to $(MARKETING_VERSION)
which had the control character. Info.plist
中的一个属性CFBundleShortVersionString
指的是具有控制字符的$(MARKETING_VERSION)
。 So kindly check the Info.plist
file first and then the referencing variables
.所以请先检查
Info.plist
文件,然后再检查引用variables
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.