我的应用有问题。
添加证书以使用远程推送通知后,我想在我的 iPhone (7S) 上对其进行测试。比 xCode 要求我访问钥匙串(keychain)。但是我忘记了我的密码,所以我拒绝了它并查了它。比我尝试重新运行该应用程序,但 xCode 每次都因相同的错误而崩溃(见下文)。我尝试重新启动 xCode,从 Xcode 中删除我的帐户并再次添加它,删除证书并再次下载它......但没有任何效果。希望有人可以帮助...
这里是错误代码:
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'
}
Best Answer-推荐答案 strong>
上次遇到同样的问题很痛苦..
解决办法:
1- 删除 ~/Library/Preferences/com.apple.security.plist
2-重启
3- 解决了!
PD:如果仍然提示,请再次下载临时配置文件,或者如果是自动的,则更改为无,然后再次返回您的。
关于ios - 拒绝钥匙串(keychain)访问后,应用程序无法在 iPhone 上运行,我们在Stack Overflow上找到一个类似的问题:
https://stackoverflow.com/questions/47100332/
|