xcode 验证 iOS 应用程序时出错

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

Error when validating iOS App

iosxcodeapp-storenib

提问by B.I.A

I am trying to publish an iOS application, however I receive these error when I try to validate my build:

我正在尝试发布一个 iOS 应用程序,但是当我尝试验证我的构建时收到这些错误:

Nib file 'Main-iPad~.nib' was not found. Please ensure the specified file is included in the bundle with any required device modifiers appended to the filename

Invalid Info.plist: The Info.plist may contain either UIMainStoryboardFile or NSMainNibFile, but it must not contain both keys. For more information, refer to the Information Property List Key Reference.

回答by sergio

It seems you have some stale entry in your Info.plist. Inspect it and delete the "Main nib file base name". Also make sure the nib file is not included in your target.

您的 Info.plist 中似乎有一些过时的条目。检查它并删除“主 nib 文件基本名称”。还要确保 nib 文件不包含在您的目标中。

I assume you are using storyboard, so you need to remove the nib file.

我假设您正在使用故事板,因此您需要删除 nib 文件。