problem:
SecTaskLoadEntitlements failed error=22
The
problem is basically caused by the Alamofire library.
resolved:
1. Download the certificate again and sign it again. Note the cer and p12)
2. Then (shortcut CMD +,),Accounts -> Manage Certificates -> In the lower left corner with the + sign, select the certificate type (if you develop ios, dev will choose ios Dev, if it is MacOS, MAC Dev will choose MAC Dev) and so on.
3. CMD +shift+k clear the cache is solved.