William
William

Reputation: 101

How to fix 'Found an unexpected Mach-O header code: 0x72613c21' when submitting to App Store

I can't upload an archived version of my project to App Store Connect as I get the error 'Found an unexpected Mach-O header code: 0x72613c21'.

I've already tried other suggestions, like checking the 'Copy Bundle Resources' build phase for any frameworks, but it's clean. I've also seen a Podfile extension that says it will fix it, but my dependency manager is Carthage, so I'm unable to use it.

2019-08-13 22:21:51 +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=}

Upvotes: 2

Views: 3823

Answers (3)

Muhammad Essa
Muhammad Essa

Reputation: 329

If you are using pods then just do two things.

Clean the project Pods De-integrate -> pod install again This works for me. Happy Coding

Upvotes: 2

İlke Yücel
İlke Yücel

Reputation: 1

In my case, i removed Fabric, Crashlytics, AppCenter frameworks from Carthage input.xcfilelist and output.xcfilelist because these frameworks are static.

Note: I found detailed information from log files "IDEDistribution.verbose.log".

Upvotes: 0

William
William

Reputation: 101

Turns out I had a static framework in my input.xcfilelist and output.xcfilelist. I just removed it and everything built fine!

Upvotes: 3

Related Questions