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

查看:534
本文介绍了上载到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无效-提交到App Store 和其他许多应用中。

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 pro主题我没有使用任何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

我所做的就是从库中剥离了位代码,可以使用以下命令完成此操作:

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天全站免登陆