Mach-o error when ios project built as non development build

I’m not kidding, as title says I’m building my project for iPhone/iPad - if I don’t select development build, in the build window it will come back with 50 or so mach-o errors…

Whats the possible reasons for this?

I had the same problem.
I made a video to show you how to fix it.