上传到 iTunesConnect 时出现突发错误:ITMS-90635 无效的 Mach-O 格式/ENABLE_BITCODE [英] Sudden Error when Uploading to iTunesConnect: ITMS-90635 Invalid Mach-O Format / ENABLE_BITCODE

查看:30
本文介绍了上传到 iTunesConnect 时出现突发错误:ITMS-90635 无效的 Mach-O 格式/ENABLE_BITCODE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

上周我能够将我的 ipa 上传到 iTunesConnect 就好了.但截至今天,我在通过 Application Loader 上传时收到以下错误:

Last week i was able to upload my ipa to iTunesConnect just fine. But as of today I am getting the following error when uploading via Application Loader:

错误 ITMS-90635:无效的 Mach-O 格式.捆绑包Application.app/Frameworks/PSPDFKit.framework"中的 Mach-O 与主捆绑包中的 Mach-O 不一致.主捆绑包 Mach-O 包含 armv7(机器码)和 arm64(机器码),而嵌套包 Mach-O 包含 armv7(位码和机器码)和 arm64(位码和机器码).验证平台的所有目标都有ENABLE_BITCODE 构建设置的一致值."

ERROR ITMS-90635: "Invalid Mach-O Format. The Mach-O in bundle "Application.app/Frameworks/PSPDFKit.framework" isn’t consistent with the Mach-O in the main bundle. The main bundle Mach-O contains armv7(machine code) and arm64(machine code), while the nested bundle Mach-O contains armv7(bitcode and machine code) and arm64(bitcode and machine code). Verify that all of the targets for a platform have a consistent value for the ENABLE_BITCODE build setting."

我知道这里提出的解决方案:Xcode - 错误 ITMS-90635 - 捆绑包中的 Mach-O 无效 - 提交到应用商店 和许多其他应用程序.

I am aware of the solutions proposed here: Xcode - Error ITMS-90635 - Invalid Mach-O in bundle - submitting to App store and in many others.

然而,我不知道如何将任何建议的解决方案应用于 Xamarin iOS 项目.我没有使用任何 Pod,而是使用 PSPDFKit 的绑定库,我按照官方文档 https://pspdfkit.com/guides/ios/current/other-languages/xamarin/.

I have however no idea how to apply any of the proposed solutions to a Xamarin iOS project. I am not using any pods, instead I am using a Binding library for PSPDFKit, which I have created as described in the official documentation https://pspdfkit.com/guides/ios/current/other-languages/xamarin/.

据我所知,有两种方法可以让我去,要么在我的项目中启用位码(我不知道该怎么做)或在 PSPDFKit 的绑定项目中禁用位码(我也有不知道该怎么做).

As far as I can see there are two ways for me to go, either to enable bitcode in my project (which I have no idea how to do) OR to disable bitcode in the binding project for PSPDFKit (which I have also no Idea how to do).

我很感激任何帮助或建议.

I am grateful for any help or propositions.

推荐答案

我终于能够做到这一点,使用这篇文章中的一个解决方案 https://stackoverflow.com/a/37624641/2702513

I finally was able to do it, with one of the solutions from this post https://stackoverflow.com/a/37624641/2702513

我所做的是从我的库中剥离 Bitcode,这可以使用以下命令完成:

What I had do do, was stripping the Bitcode from my library, which can be done with this command:

$ xcrun bitcode_strip -r {PATH_TO_LIBRARY} -o tmp.dylib

该命令将库中的机器代码提取到 tmp.dylib 文件中,然后可以使用该文件代替库本身.对于 PSPDFKit,库位于框架内.

The command extracts the machine code from the library into the tmp.dylib file which then can be used instead of the library itself. In case of PSPDFKit the library is inside the framework.

这篇关于上传到 iTunesConnect 时出现突发错误:ITMS-90635 无效的 Mach-O 格式/ENABLE_BITCODE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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