2

I have an iOS AudioKit project that builds and runs in the simulator and physical device, but when I archive and then validate throws the error:

"Found an unexpected Mach-O header code: 0x72613c21"

In the critical log it states:

2018-07-11 20:05:58 +0000  Failed to generate distribution items with error: Error Domain=DVTMachOErrorDomain Code=0 "Found an unexpected Mach-O header code: 0x72613c21" UserInfo={NSLocalizedDescription=Found an unexpected Mach-O header code: 0x72613c21, NSLocalizedRecoverySuggestion=}

I've tried deleting derived data folder and reinstalling frameworks.

Running xCode 9.4.1 Audiokit 4.2.2

1 Answers1

3

I don't think this is AudioKit related per se as we've been archiving AudioKit powered apps nearly daily for a while now. What's most likely happening is that you're treating AudioKit like a dynamic framework even though it is a static one. That might survive local installs but then archive would complain.

Read more here:

Found an unexpected Mach-O header code: 0x72613c21 in Xcode 7

Aurelius Prochazka
  • 4,510
  • 2
  • 11
  • 34
  • 1
    Thanks Aurelius, the link led to the solution. I had a mismatch in how I embedded them and how I had them listed in the build settings. Probably from changing how I did it over the years. – RIch English Jul 13 '18 at 17:09