1. ZACMSProject.xcodeproj: error: Invalid trust settings. Restore system default trust settings for certificate "iPhone Developer: xxxxx (xxxxxxxxxx)" in order to sign code with it. (in target 'xxxxxx' from project 'xxxxxxxx')

  2. Warning: unable to build chain to self-signed root for signer "Mac Developer: Dylan M (*******)"

  3. Command CodeSign failed with a nonzero exit code

解决方案: 包括根证书,所有证书都不应该设置为始终信任。如果设置成了始终信任,ios构建打包时苹果是不会给认证通过的。

参考:
1. https://forums.developer.apple.com/forums/thread/86161
2. ​https://stackoverflow.com/questions/64596362/iphone-distribution-certificate-is-not-trusted