How do I resolve the CodeSign error: CSSMERR_TP_NOT_TRUSTED?

How do I resolve the CodeSign error: CSSMERR_TP_NOT_TRUSTED?

The Xcode build error titled "CSSMERR_TP_NOT_TRUSTED" is a common problem that arises when Trust Settings have been mistakenly modified for any of the iOS Development related certificates that follow:

iPhone Developer: <your_name>
iPhone Distribution: <your_name>
Apple Worldwide Developer Relations Certification Authority

To confirm diagnosis of this error open Keychain Access app > Certificates "Category" and individually select each of the above certificates taking note of the status in the header pane. A Green Circle with White Checkmark indicates a healthy certificate, while a Blue Circle with White Plus sign indicates an unhealthy certificate and cause of the error.

Use the following steps to troubleshoot the issue -

1) Ensure that the Apple Inc. Root Certificate is installed in your keychain. If not, it can be downloaded here.

2) Ensure the Apple Worldwide Developer Relations Certification Authority certificate is installed in your keychain. If not, it can be downloaded from the bottom link on the Provisioning Portal website > Certificates tab .

3) First try and restore Trust settings to the proper value "Use System Defaults". To do that, double click on that certificate to expand the Trust section, and select "Use System Defaults". If after doing that the Blue Circle with White Plus sign does not automatically change to a Green Circle with White Checkmark, the problem is not yet fixed and you‘ll need to continue to the following step to resolve the issue.

4) Certificate Trust Settings are inherited from any duplicate certificates that may exist in other keychains. Therefore, if you have multiple copies of these iOS Development related certificates in different Keychains, you‘ll need to restore the Trust Settings to "Use System Defaults" on all copies of those certificates in all of your Keychains to fully resolve the problem. See the "Keychains" side bar in Keychain Access app for all of the Keychains to check, e.g. "login", "System", "System Roots", and any others.

5) if after restoring the Trust Settings to "Use System Defaults" for all of your iOS Development related certificates the error persists, you‘ll need to remove/delete all iOS Development related certificates that are still exhibiting the Blue Circle with White Plus sign in the header pane. To do that, follow the remaining steps in this list.

  • 5a) For all iOS Development related certificates that still exhibit the Blue Circle with White Plus sign in the header pane, Ctrl-click and delete the certificate. Be sure to delete all copies of this certificate from all Keychains.
  • 5b) Reinstall the deleted certificates. If the certificate deleted was the "Apple Worldwide Developer Relations Certification Authority" it can be re-download from the iOS Portal > Certificates within the "Certificates" sidebar and the link reading "*If you do not have the WWDR intermediate certificate installed, click here to download now". After it is downloaded, double-click it to install it into the Keychain.
  • 5c) If the certificates deleted were either the "iPhone Developer: <your_name>" or "iPhone Distribution: <your_name>" use Provisioning Profile Refresh to have Xcode download fresh copies of those certificates and install them into your Keychain on your behalf.

After performing the above steps your certificates should show a Green Circle with White Checkmark with status "This certificate is valid" and avoid the CSSMERR_TP_NOT_TRUSTED Xcode build error.

时间: 2024-08-10 20:42:43

How do I resolve the CodeSign error: CSSMERR_TP_NOT_TRUSTED?的相关文章

找不到 Profile 错误“CodeSign error: no provisioning profile at path &#39;/Users/yourname/Library/MobileDevice

如果你更新了profile,再编译iphone项目,发现下面的错误,那你无论如何clean也不会成功,那真是让人恼火阿 找不到 Profile 错误"CodeSign error: no provisioning profile at path '/Users/yourname/Library/MobileDevice/ProvisioningProfiles/F87A055A-EC0D-4F19-A015-57AB09DEBECB.mobileprovision'" X 这时候,先c

CodeSign error: no provisioning profile at path &#39;/Users/XXX/Library/MobileDevice/Provisioning Profiles/XXXXXXXX.mobileprovision&#39;

新的Xcode 如果更新了provisioning profile文件之后,编译工程时会出现错误: CodeSign error: no provisioning profile at path '/Users/XXX/Library/MobileDevice/Provisioning Profiles/XXXXXXXX.mobileprovision' 这个时候无论Clean多少遍都是咩用的,解决办法是: 1.找到工程project文件右击显示包内容: 2.在包里找到project.pbxpr

CodeSign error: code signing is required for product type &#39;Unit Test Bundle&#39; in SDK &#39;iOS 8.2&#39;

在真机测试的时候往往会突然出现这样一个错误,code signing is required for product type 'Application' in SDK 'iOS 7.0'  ,就是说代码签名证书不对劲. 解决方案: 1.选择工程->Build Settings -> Code Signing -> Code Signing Identity -> Debug -> Any ios SDK 将选项改为:iPhone Developer 2.重新下载你的证书,或

[BEROR]CodeSign error: code signing is required for product type &#39;Application&#39; in SDK &#39;iOS 8.1&#39;

解决方法: 选择工程->Build Settings -> Code Signing -> Code Signing Identity -> Debug -> Any ios SDK 将选项改为:iOS Developer [BEROR]CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.1'

Iphone CodeSign error: no provisioning profile at path 错误

今天在签出程序时,更改了profile,当再次进行整理编译项目时,就出现了这个问题,在xCode 6 开发环境下出现了, 出现这个错误提示Code Sign error: Provisioning profile XXXX can't be found 经查找 找到解决方案与大家共享,解决方案如下: 1.先copy上面那行出错信息,然后关闭这个项目,打开finder到你的项目文件xxxx.xcodeproj上面按鼠标右键,选择Show Package Contents菜单,在新打开的finder

Iphone CodeSign error: no provisioning profile at path 错

今天在退房手续,变化了profile,当再次进行整理编译项目时.就出现了这个问题,在xCode 6 开发环境下出现了, 出现这个错误提示Code Sign error: Provisioning profile XXXX can't be found 经查找 找到解决方式与大家共享,解决方式例如以下: 1.先copy上面那行出错信息,然后关闭这个项目,打开finder到你的项目文件xxxx.xcodeproj上面按鼠标右键,选择Show Package Contents菜单,在新打开的finde

CodeSign error: code signing is required for product type Application in SDK iOS XXX的解决办法

转自:http://www.tuicool.com/articles/jYRNbm 在真机测试的时候往往会突然出现这样一个错误,code signing is required for product type 'Application' in SDK 'iOS 7.0'  ,就是说代码签名证书不对劲. 解决方案, 1.选择工程->Build Settings -> Code Signing -> Code Signing Identity -> Debug -> Any i

How to resolve the SQL error “cannot connect to WMI provider”

当你试图打开SQL Server Configuation Manager时发现如下错误: “cannot connect to WMI provider. You do not have permission or the server is unreachable. Note that you can only manage SQL Server 2005 and later servers with SQL Server Configuration Manager.”   Invalid

CodeSign error: code signing is required for product type Application in SDK iOS

在真机测试的时候往往会突然出现这样一个错误,code signing is required for product type 'Application' in SDK 'iOS 7.0'  ,就是说代码签名证书不对劲.  解决方案,  1.选择工程->Build Settings -> Code Signing -> Code Signing Identity -> Debug -> Any ios SDK 将选项改为:iPhone Developer  2.重新下载你的证