简体   繁体   English

拒绝钥匙串访问后,应用程序无法在iPhone上运行

[英]App won't run on iPhone after denying keychain access

I have a problem with my app. 我的应用程序有问题。 After adding certificates for using remote Push Notifications I wanted to test it on my iPhone (7S). 添加用于使用远程推送通知的证书后,我想在iPhone(7S)上对其进行测试。 Than xCode asked me for keychain access. 比xCode要求我提供钥匙串访问。 But I had forgotten my password, so I denied it and looked it up. 但是我忘记了密码,所以我拒绝了并查了一下。 Than I tried to rerun the app, but xCode crashes every time with the same error (see bellow). 我尝试重新运行该应用程序,但是xCode每次都因相同的错误而崩溃(请参见下面的内容)。 I tried restarting xCode, removing my account from Xcode and add it again, deleting certificates and download it again... But nothing worked. 我尝试重新启动xCode,从Xcode中删除我的帐户,然后再次添加,删除证书并再次下载...,但是没有任何效果。 Hopefully somebody can help... 希望有人可以帮助...

Here the Errorcode: 这里的错误代码:

Probing signature of /Users/<MYNAME>/Library/Developer/Xcode/DerivedData/CBG-App-cbcnuiuwufasepbebirhstwqwkst/Build/Products/Debug-iphoneos/CBG-App.app/Frameworks/libswiftAVFoundation.dylib
  /usr/bin/codesign '-r-' '--display' '/Users/<MYNAME>/Library/Developer/Xcode/DerivedData/CBG-App-cbcnuiuwufasepbebirhstwqwkst/Build/Products/Debug-iphoneos/CBG-App.app/Frameworks/libswiftAVFoundation.dylib'
/Users/<MYNAME>/Library/Developer/Xcode/DerivedData/CBG-App-cbcnuiuwufasepbebirhstwqwkst/Build/Products/Debug-iphoneos/CBG-App.app/Frameworks/libswiftAVFoundation.dylib: code object is not signed at all
Codesigning /Users/<MYNAME>/Library/Developer/Xcode/DerivedData/CBG-App-cbcnuiuwufasepbebirhstwqwkst/Build/Products/Debug-iphoneos/CBG-App.app/Frameworks/libswiftAVFoundation.dylib
  /usr/bin/codesign '--force' '--sign' '7319A6E748656B8031B1B216ED08967067862C10' '--verbose' '/Users/<MYNAME>/Library/Developer/Xcode/DerivedData/CBG-App-cbcnuiuwufasepbebirhstwqwkst/Build/Products/Debug-iphoneos/CBG-App.app/Frameworks/libswiftAVFoundation.dylib'
/Users/<MYNAME>/Library/Developer/Xcode/DerivedData/CBG-App-cbcnuiuwufasepbebirhstwqwkst/Build/Products/Debug-iphoneos/CBG-App.app/Frameworks/libswiftAVFoundation.dylib: unknown error -1=ffffffffffffffff
error: Task failed with exit 1 signal 0 {
    /usr/bin/codesign '--force' '--sign' '7319A6E748656B8031B1B216ED08967067862C10' '--verbose' '/Users/<MYNAME>/Library/Developer/Xcode/DerivedData/CBG-App-cbcnuiuwufasepbebirhstwqwkst/Build/Products/Debug-iphoneos/CBG-App.app/Frameworks/libswiftAVFoundation.dylib'
}

Had the same problem last weak its a pain in the a.. 如果上次遇到相同的问题,则会使其痛苦不堪。

Solution: 解:

1- Delete ~/Library/Preferences/com.apple.security.plist 1-删除〜/ Library / Preferences / com.apple.security.plist

2- Reboot 2-重新启动

3- Solved! 3-解决了!

PD: if still complains just download the provisional profile again or if automatic then change to none and back to yours again. PD:如果仍然抱怨,请再次下载临时配置文件;如果自动,则更改为无,然后再次返回您的配置文件。

Try giving Xcode access to your cert. 尝试给Xcode访问您的证书。 Open KeyChain and find your certificate. 打开KeyChain并找到您的证书。 Right click on the certificate and select "Get Info". 右键单击证书,然后选择“获取信息”。 Click the "Access Control" tab and add Xcode.app 单击“访问控制”选项卡,然后添加Xcode.app

I solved by my self. 我靠自己解决了。 Restarting the Mac and Clearing Xcode helped. 重新启动Mac和清除Xcode有所帮助。 After that I had to fill in the password about a hundred times, but now it works. 之后,我必须填写密码约一百次,但现在可以了。 Thank you anyway for answering! 无论如何,谢谢您的回答!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM