尝试将档案导出到IPA时,“找到了辅助的Mach-O标头代码:0x72613c21”。 [英] 'Found an uxexpected Mach-O header code: 0x72613c21' when trying to export an archive to IPA.

查看:108
本文介绍了尝试将档案导出到IPA时,“找到了辅助的Mach-O标头代码:0x72613c21”。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我最近在部署到我的设备时遇到了这个问题:

So I recently had this issue when deploying to my device:

(null): error: bitcode_strip /Users/me/Library/Developer/Xcode/DerivedData/AppName-gximcjgdoodczthglfujqgpzamxl/Build/Products/Debug-iphoneos/Pods.framework/Pods: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip exited with 1

虽然我在部署到模拟器时没有遇到此错误。

I didn't encounter this error when deploying to a simulator though.

我在此处找到了一个解决方案,它说我应该设置用户定义的属性 STRIP_BITCODE_FROM_COPIED_FILES为否。

I found a solution here which says that I should set a user defined attribute 'STRIP_BITCODE_FROM_COPIED_FILES' to no.

从那时起,当我尝试导出存档时,我现在得到找到了辅助扩展的Mach-O标头代码:0x72613c21。

Since then, I now get "Found an uxexpected Mach-O header code: 0x72613c21" when trying to export an archive.

在出现bitcode_strip问题之前,导出存档没有问题,所以我想知道修复程序是否导致了我当前遇到的问题,或者它们是否无关?如果它们不相关,实际上是什么原因引起的?

Before the bitcode_strip issue, I was having no problem exporting archives so I'm wondering if the fix caused the current issue I'm facing, or if perhaps they are unrelated? If they are unrelated, what could actually be causing this?

这是详细的IDEDistribution日志

关键分发日志

标准分发日志

推荐答案

对我来说,我去了TARGETS>常规>嵌入式二进制文件

For me, I went to TARGETS > General > Embedded Binaries

,然后删除了我的嵌入式二进制文件(灰色而不是黄色,恰好是Realm.framework)

and removed my embedded binary (which was grey instead of yellow and happened to be Realm.framework)

存档并提交到iTunes然后工作。

Archive and submitted to iTunes then worked.

我想知道是否是因为我具有Realm.framework嵌入式二进制文件,但没有包含领域标头还是使用过的领域-也许编译器会尝试优化我的框架?

I wonder if it is because I had the Realm.framework embedded binary, but hadn't included the realm header or used realm yet - so maybe the compiler 'tried optimize away' my framework?

这篇关于尝试将档案导出到IPA时,“找到了辅助的Mach-O标头代码:0x72613c21”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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