档案验证错误NSSetM [英] Archive validation error NSSetM

查看:114
本文介绍了档案验证错误NSSetM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用XCode 5准备一个新版本的应用程序.我已经构建了该应用程序,对其进行了签名并存档,没有任何问题,并在iTunes connect中准备了一个新版本.但是,当我在管理器中验证存档时,却收到以下错误消息:

I'm preparing a new version of an app, working in XCode 5. I've built the app, signed it and archived it without any issues and have prepared a new version in iTunes connect. When I validate the archive in Organizer I however get the following error message:

**-[__NSSetM addObject:] object cannot be nil

我发现错误很奇怪.存档验证后,为什么会出现错误?如果代码中有问题,为什么在我构建或运行应用程序时不显示它们?

I find the error very strange. Why do I get the error when the archive is validated? If there are issues in the code why don't they show up when I build or run the app?

我尝试了通常的绝望工作-从重建档案到重新启动计算机的一切.

I tried the usual desperate stuff - everything from rebuilding the archive to rebooting the computer.

有什么建议吗?谷歌搜索没有提供任何线索.

Any suggestions? Googling didn't give any clues.

推荐答案

如果其他任何人遇到此问题,则问题是info.plist文件中有一些空行.有问题的部分看起来像这样

If anyone else runs in to the issue, the problem was that there were some empty lines in the info.plist file. The section with the problem looked something like this

<key>CFBundleIconFiles</key>
<array>
    <string>80x80</string>
    <string>58x58</string>
    <string>29x29</string>
    <string>120x120</string>
    <string>114x114</string>
    <string>57x57</string>
    <string></string>
    <string></string>
</array>

当我们删除空字符串值时,验证错误就消失了.

When we removed the empty string values the validation error was gone.

这篇关于档案验证错误NSSetM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆