当我尝试构建到我的 iPhone 时,我收到“Swift stdlib 工具错误,任务失败,退出 1 信号 0”当我双击它时,它会将我带到活动日志中的以下内容:
/Users/tommy/Library/Developer/Xcode/DerivedData/iBMR_2018-ershwxhoxphvmjgubqdoefmqqoyy/Build/Products/Debug-iphoneos/iBMR 2018.app/Frameworks/libswiftAVFoundation.dylib: code object is not signed at all
Codesigning /Users/tommy/Library/Developer/Xcode/DerivedData/iBMR_2018-ershwxhoxphvmjgubqdoefmqqoyy/Build/Products/Debug-iphoneos/iBMR 2018.app/Frameworks/libswiftAVFoundation.dylib
/usr/bin/codesign '--force' '--sign' '9CAA1DDB653D3C2804161CCBEFFD314ADA9DCD76' '--verbose' '/Users/tommy/Library/Developer/Xcode/DerivedData/iBMR_2018-ershwxhoxphvmjgubqdoefmqqoyy/Build/Products/Debug-iphoneos/iBMR 2018.app/Frameworks/libswiftAVFoundation.dylib'
/Users/tommy/Library/Developer/Xcode/DerivedData/iBMR_2018-ershwxhoxphvmjgubqdoefmqqoyy/Build/Products/Debug-iphoneos/iBMR 2018.app/Frameworks/libswiftAVFoundation.dylib: unknown error -1=ffffffffffffffff
error: Task failed with exit 1 signal 0 {
/usr/bin/codesign '--force' '--sign' '9CAA1DDB653D3C2804161CCBEFFD314ADA9DCD76' '--verbose' '/Users/tommy/Library/Developer/Xcode/DerivedData/iBMR_2018-ershwxhoxphvmjgubqdoefmqqoyy/Build/Products/Debug-iphoneos/iBMR 2018.app/Frameworks/libswiftAVFoundation.dylib'
}
当我在这里搜索时,我发现了这个问题:Swift stdlib tool Error
我下载了我的个人资料,对于 iOS 开发证书,我有“Tommy's iMac”和“Untitled”,日期均为 11/8/17。Untitled 有一个红色的 X 并显示“缺少私钥”,但唯一的选择是添加另一个证书,所以不确定这是否是我遇到问题的原因;也不应该如何处理该错误。