Page 1 of 1

Non-PIE Binary ? new e mail from apple when you upload

PostPosted: Thu May 30, 2013 8:55 am
by REDNSX
So I summited a new app and got a e mail from apple that says this.

Dear developer,

We have discovered one or more issues with your recent delivery for "AppName". Your delivery was successful, but you may wish to correct the following issues in your next delivery:

Non-PIE Binary - The executable 'AppName.app' is not a Position Independent Executable. Please ensure that your build settings are configured to create PIE executables. For more information, refer to Technical Q&A QA1788 - Building a Position Independent Executable

If you would like to update your binary for this app, you can reject this binary from the Binary Details page in iTunes Connect. Note that rejecting your binary will remove your app from the review queue and the review process will start over from the beginning when you resubmit your binary.

Regards,


I looked at my x-code and the setting are the way they want. Any idea what is going on any one?

The App Store team

Re: Non-PIE Binary ? new e mail from apple when you upload

PostPosted: Thu May 30, 2013 9:01 am
by skydereign
So did you follow something like this to make sure? http://developer.apple.com/library/ios/#qa/qa1788/_index.html

Re: Non-PIE Binary ? new e mail from apple when you upload

PostPosted: Thu May 30, 2013 9:07 am
by REDNSX
I made sure the first part was right with it set to NO.

I have no idea what the second part even is:

You can check whether your application is PIE by running otool-vh on your executable in the Terminal. Your application is PIE if its header contains the PIE flag. Listing 1 shows an example of how to do this for an iOS app.

Listing 1 Example of a PIE application
$ otool -hv /path/to/MyApp.app/MyApp
MyApp:
Mach header
magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
MH_MAGIC ARM V7 0x00 EXECUTE 23 2372 NOUNDEFS DYLDLINK TWOLEVEL PIE




I truly have no clue how to check that.

Re: Non-PIE Binary ? new e mail from apple when you upload

PostPosted: Thu May 30, 2013 9:12 am
by skydereign
REDNSX wrote:I truly have no clue how to check that.

Open up the terminal and type the command.
Code: Select all
otool -hv AppName.app

This will work if the AppName.app file is in your home directory.

Re: Non-PIE Binary ? new e mail from apple when you upload

PostPosted: Thu May 30, 2013 9:20 am
by REDNSX
otool -hv DayOfTheDead.app That is my app name

When I do this I get


can't map file: DayOfTheDead.app (Invalid argument)
unknownc8bcc8c9363f:~ miltonmariscal$