Found an unexpected Mach-O header code: 1918975009 in xCode 6

rtvanals picture rtvanals · Oct 25, 2014 · Viewed 20.9k times · Source

What causes the error

Found an unexpected Mach-O header code: 1918975009 in xCode 6

I archived my project to send out as an ad hoc build and it builds/links/archives just fine but when I'm in the xCode organizer and select Export -> Ad Hoc,

I get the error

Found an unexpected Mach-O header code: 191897500. 

Answer

Naloiko Eugene picture Naloiko Eugene · Dec 14, 2015

In my case this issue ("found an unexpected mach-o header code 0x72613c21") appeared after I've installed Crashlytics, Fabric.

Somehow pods appeared to become an embedded binary. So I had to remove it, pod install once more, and the issue disappeared.

Remove pods from embedded binaries