xcode 无法验证您的应用程序。该包不包含 info.plist

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/28554483/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 06:39:57  来源:igfitidea点击:

Unable to validate your application. the package does not contain an info.plist

iosxcodeunity3dxcode6info.plist

提问by Ravi Anand

I have just finished my application. It runs fine on all devices that I tested it on. It archives successfully as well. However, when I try to validate it in the Xcode organizer I am met with the following errors:

我刚刚完成了我的申请。它在我测试过的所有设备上运行良好。它也成功归档。但是,当我尝试在 Xcode 管理器中验证它时,我遇到了以下错误:

-Unable to validate your application: The package does not contain an info.plist

-无法验证您的应用程序:该包不包含 info.plist

I checked my project files, and I do see an info.plist file.

我检查了我的项目文件,我确实看到了一个 info.plist 文件。

回答by ragnarius

This unfortunate error message probably means that some key is missing in your info.plist.

这个不幸的错误消息可能意味着您的info.plist 中缺少某些键。

I compared my info.plistsource-file (right click the file and select view source) with the corresponding file in another project. I then discovered that, in my case, the following key was missing:

我将我的info.plist源文件(右键单击文件并选择查看源)与另一个项目中的相应文件进行了比较。然后我发现,就我而言,缺少以下密钥:

<key>CFBundlePackageType</key>
<string>APPL</string>

I pasted in those two lines in my info.plistfile, and then it all worked fine.

我在info.plist文件中粘贴了这两行,然后一切正常。

Beware that you probably have two info.plist-filesin your project (the second one is for the unit test build) and make sure that you compare the right ones.

请注意,您的项目中可能有两个 info.plist 文件(第二个用于单元测试构建)并确保比较正确的文件。