How to detect if stack smashing protection is enabled in an iOS app : <p>I want to be able to check if stack smashing protection (-fstack-protector-all) is enabled in an iOS app built on Xcode 9 with a target of iOS 11.</p>

<p>I built an app with -fstack-protector-all enabled in "Other C flags", and it does build and run, but how can I verify that stack smashing protection is enabled?</p>

<p>There are lots of older (2013 and earlier) resources out there that mention <code>otool -Iv appName |grep stack_chk</code>, but I ran that on my app binary and stack_chk was nowhere to be found in the output.</p>

<p>Is there a modern equivalent to that command? Is -fstack-protector-all even necessary anymore given the current set of defaults in Xcode?</p>
