Distribution Error: "Reached end of file while looking for: Mach-O Slice"

Hey everbody,

I'm getting an error trying to distribute a React Native App to App Store Connect. Archiving the App works fine, when I try to distribute the App I'm getting the following Error:

Cheers for any help

Replies

Hmmm, that’s weird. The most likely explanation is that there’s a malformed Mach-O file within your Xcode archive. Open a Terminal window, change into the Products/Applications directory within the archive, and do this:

% find MyApp.app -type f -print0 | xargs -0 file | grep Mach-O

What do you see?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

  • Excuse me, has the problem been solved?

Add a Comment

I am seeing a similar error while trying to validate app before distributing. The above command returns the below output but doesn't indicate any error find MyApplication.app -type f -print0 | xargs -0 file | grep Mach-O MyApplication.app/Frameworks/IDMMobileSDKv2.framework/IDMMobileSDKv2: Mach-O universal binary with 2 architectures: [arm_v7:Mach-O dynamically linked shared library arm_v7

  • Mach-O dynamically linked shared library arm_v7] [arm64:Mach-O 64-bit dynamically linked shared library arm64
  • Mach-O 64-bit dynamically linked shared library arm64]

MyApplication.app/Frameworks/IDMMobileSDKv2.framework/IDMMobileSDKv2 (for architecture armv7): Mach-O dynamically linked shared library arm_v7 MyApplication.app/Frameworks/IDMMobileSDKv2.framework/IDMMobileSDKv2 (for architecture arm64): Mach-O 64-bit dynamically linked shared library arm64 MyApplication.app/MyApplication: Mach-O 64-bit executable arm64

Appreciate any help!