I found out that app executable is encrypted by apple when released on the app store.
http://stackoverflow.com/questions/5784169/does-apple-modify-ios-application-executables-on-apps-submitted-to-the-app-store
https://discussions.apple.com/thread/5057092?start=0&tstart=0
Is it same for ad hoc distrubution?