Xcode命令/ usr / bin / codesign失败,退出代码为1:errSecInternalComponent
问题描述:
我正在尝试向我的Xcode添加新的配置文件,以测试设备上的应用程序。以下是我遵循的步骤:
I am trying to add new provisioning profile to my Xcode, to test an app on the device. Here are the steps I followed:
-
删除所有证书和配置文件
Deleted all certificates and provisioning profiles
创建/添加IOS开发证书
Create/Add IOS Dev Certificate
在线添加我的IOS设备
Add My IOS Device Online
创建IOS配置文件
添加IOS配置文件
清理应用
构建然后运行应用程序
在构建设置中设置代码签名和配置配置文件
Set Codesigning nd Provisioning Profile In Build Settings
大量谷歌搜索>没有成功
Lots of Googling > to no successes
这里是我得到的错误:
CSSM_SignData returned: 800108E6
/Users/alexpelletier/Library/Developer/Xcode/DerivedData/MyExpense-efnqzvoqwngzcmazaotyalepiice/Build/Products/Debug-iphoneos/MyExpense.app: errSecInternalComponent
Command /usr/bin/codesign failed with exit code 1
答
这似乎是代码签名机制中的一个错误,restarti你的mac应该解决问题
It seems like a bug in the code signing mechanism, restarting your mac should solve the problem