I think with auto-pinning you just need to init Trustkit in your app:
https://github.com/datatheorem/TrustKit/blob/master/README.md
“Auto-pinning functionality by swizzling the App's NSURLConnection and NSURLSession delegates in order to automatically add pinning validation to the App's HTTPS connections; this allows deploying TrustKit without even modifying the App's source code.”