• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Odd binary differences
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Odd binary differences


  • Subject: Re: Odd binary differences
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 10 Apr 2013 10:37:02 -0700


On Apr 9, 2013, at 6:23 AM, Rich Siegel <email@hidden> wrote:

It sounds like the linker is organizing your code a little differently each time, perhaps depending on the content of that table. (For example, if it compresses differently.) I am not sure if there's a way to influence that, or not.

This kind of unpredictable ordering can happen if something (the linker in this case) uses a hash-table/dictionary where the keys are based on object pointers instead of contents. Since the pointer values are unpredictable between runs, so are the hash codes, and so iterating the hash table will produce the values in a different unpredictable order.

(Exactly this occurs, or used to occur, when loading views from a  nib. The effect to the app code is that -awakeFromNib methods are called in a random order that can vary from one run to the next, sometimes triggering intermittent bugs if you have dependencies between the methods. It was very confusing when I ran into it!)

At a more practical level, I echo Rich’s suggestion to use code signing, since it sounds like you’re trying to do exactly the same thing. With the caveat that it’s not hard to break any kind of anti-tampering mechanism like this by patching the checksum as well as the code. If you’re hoping this will keep your app off of warez sites, it’s not going to work.

—Jens
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Odd binary differences
      • From: Eyal Redler <email@hidden>
References: 
 >Re: Odd binary differences (From: Rich Siegel <email@hidden>)

  • Prev by Date: Re: versions & OS support
  • Next by Date: Re: versions & OS support
  • Previous by thread: Re: Odd binary differences
  • Next by thread: Re: Odd binary differences
  • Index(es):
    • Date
    • Thread