Detect App Translocation Without the 10.12 SDK

from blog The Desolation of Blog, | ↗ original
As I mentioned in an earlier blog post, there's a new API for App Translocation in the 10.12 SDK: . However, if you're sane, you're not shipping your apps yet with the 10.12 SDK. So how can you detect App Translocation in your shipping apps? The trick is that since you can't link against the new functions, you have to load them at runtime. I've provided sample code below.