title: Xcode ios, checksum you binary at runtime
body: <p>I'm trying to add a bit security to my app. I have a server that the app connects to and I am thinking of sending a checksum of the binary when making a connection. If the checksum does not match with what I want. The server wont alow any connection.</p>
  
  <p>I´ve read a couple of articles of how you can increase security of your app and many mention checksuming your binary but haven´t found any code explaining how you actually checksum your binary during runtime.</p>
  
  <p>This one for example
  <a href="http://www.seoxys.com/3-easy-tips-to-prevent-a-binary-crack/#ptrace" rel="nofollow">http://www.seoxys.com/3-easy-tips-to-prevent-a-binary-crack/#ptrace</a></p>
  
  <p>Other than that, from what I have understood, there is no way of knowing the exact checksum before hand since Apple will sign when submitting? I could however disable the check on my server when submitting a new version, then reenable the check when I know the checksum. Not a perfect solution but what solution is?</p>
  
  <p>Anyone that can point me to the right direction?</p>