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

iPhone/iPod/iPad specific questions and discussion

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

Postby REDNSX » Thu May 30, 2013 8:55 am

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
User avatar
REDNSX
 
Posts: 237
Joined: Sun Feb 13, 2011 3:03 am
Score: 7 Give a positive score

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

Postby skydereign » Thu May 30, 2013 9:01 am

So did you follow something like this to make sure? http://developer.apple.com/library/ios/#qa/qa1788/_index.html
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

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

Postby REDNSX » Thu May 30, 2013 9:07 am

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.
User avatar
REDNSX
 
Posts: 237
Joined: Sun Feb 13, 2011 3:03 am
Score: 7 Give a positive score

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

Postby skydereign » Thu May 30, 2013 9:12 am

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.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

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

Postby REDNSX » Thu May 30, 2013 9:20 am

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$
User avatar
REDNSX
 
Posts: 237
Joined: Sun Feb 13, 2011 3:03 am
Score: 7 Give a positive score


Return to iOS

Who is online

Users browsing this forum: No registered users and 1 guest

cron