Eddy
Eddy

Reputation: 145

Mach-O File Error. Cannot Export Archive For Development Testing

I started getting this issue trying to distribute an archive for my ios app. The app is build on ionic3 framework.

Steps I have taken:

  1. Build the app in ionic
    • Build the App and Archive in XCode
    • In the organizer, I try to export the archive for Development

On the next step, I get the error: main bundle ice-sports.app doesn't have a main Mach-O file. Same message appears in the standard.log Error Message

Does anyone have any idea how to address this issue? I have been looking for hours, but not sure what the resolution is

Thanks

Upvotes: 3

Views: 1385

Answers (2)

Ahmed Elashker
Ahmed Elashker

Reputation: 1000

In my case a different toolchain was preselected other than Xcode's. So make sure Xcode toolchain is selected pre-archiving

Upvotes: 0

i.n.g.o.
i.n.g.o.

Reputation: 51

just came across this myself. make sure your Info.plist does contain a valid CFBundleExecutable:

<key>CFBundleExecutable</key>
<string>REPLACE_WITH_NAME_OF_YOUR_EXECUTABLE</string>

Upvotes: 2

Related Questions