Non-PIE Binary (IOS Invalid Binary) using unity 4

Hi All,

Today i was uploading my first game using unity 4 but it got rejected, reason invalid binary and below listed are the reasons

Non-PIE Binary - The executable ‘Catchy Basket 2.app’ is not a Position Independent Executable. Please ensure that your build settings are configured to create PIE executables.

I have never experienced something like this with previous versions of unity, can someone please help me out with this.

Thanks in Advance

Hi,

My application had the same problem, but it got approved by Apple. The problem seems to be caused by Unity. If inside your Asset folder you have a “Plugins” folder the dll file auto-generated by Unity it cannot be configured to Non-PIE Binary. (you can experiment that by just creating an empty project with a “Plugins” folder inside “Assets”),

It does seem to be a Unity issue. If you look in the project tree “issues” subsection (left pane of Xcode when set to the ‘!’ (warnings/errors) pane, you’ll see Apple Mach O Linker warning “PIE disabled …”. Click that and you’ll be able to expand to see what’s in this image grab. So it’s something to do with Unity and how it’s building for Mono.