Xcode 7 - 无法验证您的应用程序

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

Xcode 7 - Unable to validate your application

xcodevalidationapp-storexcode7ipa

提问by Trong Lam Phan

When i upload my app to app store, i've had a problem:

当我将我的应用上传到应用商店时,我遇到了一个问题:

Unable to validate your application:
The path '/var/folders/hm/.../MyApp.ipa' does not contain a file

I have another error:

我还有一个错误:

Couldn't find platform family in Info.plist CFBundleSupportedPlatforms or Mach-O LC_VERSION_MIN for sfnt2woff

I've added:

我已经添加:

<key>CFBundleSupportedPlatforms</key>
<array>
    <string>MacOSX</string>
</array>

in my plist file but it doesn't work.

在我的 plist 文件中,但它不起作用。

Any solution?

有什么解决办法吗?

Thanks !

谢谢 !

采纳答案by Trong Lam Phan

I've found a solution. In my application, a library called "ionicons" has been used. I just simply remove the sfnt2woff file in lib/ionicons/builder/scripts/ and the validation works.

我找到了解决办法。在我的应用程序中,使用了一个名为“ionicons”的库。我只是简单地删除 lib/ionicons/builder/scripts/ 中的 sfnt2woff 文件,验证工作。

回答by Mia Stigol

Have the same problem. Just delete some .bundle resource from "Bundle Resources" in Build Phases in Xcode project. See here:

有同样的问题。只需从 Xcode 项目的 Build Phases 中的“Bundle Resources”中删除一些 .bundle 资源。看这里:

回答by Antzi

Setting "Enable bit code" to NO worked for me

将“启用位代码”设置为 NO 对我有用

enter image description here

在此处输入图片说明

Also:

还:

  1. Clean build folder
  2. rm -rf ~/Library/Developer/Xcode/DerivedData
  3. Restart xcode.
  1. 清理构建文件夹
  2. rm -rf ~/Library/Developer/Xcode/DerivedData
  3. 重启xcode。

If you do not wish to rebuild, you can untick theses checkbox:

如果您不想重建,您可以取消选中这些复选框:

include app symbols/include bitcode

包括应用程序符号/包括位码

回答by Mamouneyya

For me, I was asked for permission to access something in my Keychain. I mistakenly clicked 'deny'. Once I re-archived the app again and granted it the permission, it works.

对我来说,我被要求访问我的钥匙串中的某些内容。我错误地点击了“拒绝”。一旦我再次重新存档应用程序并授予它权限,它就可以工作了。

回答by Confused Vorlon

For the benefit of others like me: I had a similar problem with an old version of sparkle that didn't include the info.plist in the framework.

为了像我这样的其他人的利益:我在旧版本的 sparkle 中遇到了类似的问题,它没有在框架中包含 info.plist。

Check all your frameworks; They now also need an info.plist with these settings.

检查所有框架;他们现在还需要一个带有这些设置的 info.plist。