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.
I had the same error. In my case it was caused by an universal framework that I accidentally copied into the resources of the app (which is unnecessary, since frameworks get merged directly into the main executable on iOS AFAIK).
So, select your target, click the "Build Phases" tab, and look through the "Copy Bundle Resources" list to see if you copy a library or framework that contains desktop architectures (i386 or x86_64).
Most likely, copying such a file is wrong, but if for some reason you have to, apparently it can only contain iOS compatible architectures.