Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 404
Glenncito Avatar asked Oct 15 '15 09:10

Glenncito


2 Answers

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
like image 187
Marlon Ruiz Avatar answered Oct 25 '22 02:10

Marlon Ruiz


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?

like image 32
user1709076 Avatar answered Oct 25 '22 01:10

user1709076