xcode swift-stdlib-tool 失败,退出代码为 1
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/30629311/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
swift-stdlib-tool failed with exit code 1
提问by RpX
I have a problem with XCode since 2 days. I upgraded my iOS Developer Account, and now I can't build on my iphone. I have this when I try to build.
我有 2 天以来的 XCode 问题。我升级了我的 iOS 开发者帐户,现在我无法在我的 iphone 上构建。当我尝试构建时,我有这个。
/Users/RpX/Library/Developer/Xcode/DerivedData/Moukat-amxiyucfcmxblndkiauwhwnscwhx/Build/Products/Debug-iphoneos/Moukat.app/Frameworks/libswiftCore.dylib: the codesign_allocate helper tool cannot be found or used *** error: Couldn't codesign /Users/RpX/Library/Developer/Xcode/DerivedData/Moukat-amxiyucfcmxblndkiauwhwnscwhx/Build/Products/Debug-iphoneos/Moukat.app/Frameworks/libswiftCore.dylib: codesign failed with exit code 1 Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-stdlib-tool failed with exit code 1
/Users/RpX/Library/Developer/Xcode/DerivedData/Moukat-amxiyucfcmxblndkiauwhwnscwhx/Build/Products/Debug-iphoneos/Moukat.app/Frameworks/libswiftCore.dylib: the codesign_allocate helper tool cannot be found or used *** error: Cann 't codesign /Users/RpX/Library/Developer/Xcode/DerivedData/Moukat-amxiyucfcmxblndkiauwhwnscwhx/Build/Products/Debug-iphoneos/Moukat.app/Frameworks/libswiftCore.dylib: codesign failed with exit code 1 Command /Applications/Xcode. app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-stdlib-tool 失败,退出代码为 1
I tried all solutions on Stackoverflow about certificats, build settings, etc ..., it doesn't work. If someone know something about it =). Thank you.
我在 Stackoverflow 上尝试了所有关于证书、构建设置等的解决方案......,它不起作用。如果有人对此有所了解 =)。谢谢你。
回答by matt
My advice would be to delete everything related to development and distribution certification - all relevant certificates in the keychain, all mobile provisions on disk, and everything at the Member Center - and start the entire process of generating new identities and profiles from scratch.
我的建议是删除与开发和分发认证相关的所有内容——钥匙串中的所有相关证书、磁盘上的所有移动设备以及会员中心的所有内容——并从头开始生成新身份和配置文件的整个过程。
回答by Maribel Damm
I upgraded also my iOS Developer Account, and I got the same error in all my Apps when I tried to run them on my Ipad (IOS 11) This works for me ( I did the samme in all the programs)
我还升级了我的 iOS 开发者帐户,当我尝试在我的 Ipad(IOS 11)上运行它们时,我在所有应用程序中都遇到了同样的错误这对我有用(我在所有程序中都做了同样的事情)
- choose TARGET
- General/Signing : Automatically manage signing
- General/Deployment info/Deployment target: change to a lower IOS (I chose 10.0)
- General/Deployment info/Deployment info/Devices : Universal
- Build cmd B and Run cmd R with destination (your device)
- After the error is disappeared: change the Deployment target to IOS 11 and the Device to iPhone/iPad
- 选择目标
- 常规/签名:自动管理签名
- General/Deployment info/Deployment target: 换成更低的IOS(我选择了10.0)
- 一般/部署信息/部署信息/设备:通用
- 使用目标(您的设备)构建 cmd B 并运行 cmd R
- 错误消失后:将部署目标更改为 IOS 11,将设备更改为 iPhone/iPad