Apple does not provide any supported way for you to check your app’s integrity. iOS already does that by default.
https://forums.developer.apple.com/thread/52801
BlackBerry selling point, their DTEK and other measures to tell if a system's integrity is compromised.
If it's been detected...