'Found an uxexpected Mach-O header code: 0x72613c21' when trying to export an archive to IPA.

回眸只為那壹抹淺笑 提交于 2020-01-14 07:39:07

问题


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.

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

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

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?

here is the verbose IDEDistribution log

critical distribution log

standard distribution log


回答1:


I have the same issue. I solved the problem when:

  1. Uninstall cocoapods (I had installed cocoapods 0.39): sudo gem uninstall cocoapods
  2. Install cocoa pods 0.38.2: sudo gem install cocoapods -v 0.38.2



回答2:


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

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

Archive and submitted to iTunes then worked.

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?



来源:https://stackoverflow.com/questions/33145023/found-an-uxexpected-mach-o-header-code-0x72613c21-when-trying-to-export-an-ar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!