错误 Xcode 10 。PhaseScriptExecution 失败,退出代码非零:errSecInternalComponent
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/52499347/
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
Error Xcode 10 . PhaseScriptExecution failed with a nonzero exit code: errSecInternalComponent
提问by Mohamed Lee
Showing Recent Messages :-1: Code Signing /Users/.../Library/Developer/Xcode/DerivedData/ProjectName-bszhnyuqdhgiqaaeosxrsxfkscut/Build/Products/Debug-iphoneos/ProjectName.app/Frameworks/Alamofire.framework with Identity iPhone Developer: MyName (H837F7ABC3)
:-1: /usr/bin/codesign --force --sign 59878098645E516950920B15DC30E4E94D7CADAD --preserve-metadata=identifier,entitlements '/Users/.../Library/Developer/Xcode/DerivedData/ProjectName-bszhnyuqdhgiqaaeosxrsxfkscut/Build/Products/Debug-iphoneos/ProjectName.app/Frameworks/Alamofire.framework'
:-1: /Users/marcel/Library/Developer/Xcode/DerivedData/VoiceMe-bszhnyuqdhgiqaaeosxrsxfkscut/Build/Products/Debug-iphoneos/VoiceMe.app/Frameworks/Alamofire.framework: errSecInternalComponent
Command PhaseScriptExecution failed with a nonzero exit code
显示最近的消息:-1:代码签名 /Users/.../Library/Developer/Xcode/DerivedData/ProjectName-bszhnyuqdhgiqaaeosxrsxfkscut/Build/Products/Debug-iphoneos/ProjectName.app/Frameworks/Alamofire.framework with Identity iPhone Developer:我的名字 (H837F7ABC3)
:-1: /usr/bin/codesign --force --sign 59878098645E516950920B15DC30E4E94D7CADAD --preserve-metadata=identifier,entitlements '/Users/.../Library/Developer/Xcode/DerivedData/ProjectName-bszhrsProductaxyfxBuildah调试-iphoneos/ProjectName.app/Frameworks/Alamofire.framework'
:-1:/Users/marcel/Library/Developer/Xcode/DerivedData/VoiceMe-bszhnyuqdhgiqaaeosxrsxfkscut/Build/Products/Debug-iphoneos/VoiceMe.app/Frameworks/Alamofire.framework: errSecInternalComponent
命令 PhaseScriptExecution 失败,退出代码非零
I've installed the pods like 10 times ... cleaned and build the project not working also.
我已经安装了 10 次这样的豆荚......清理并构建项目也不起作用。
I'm running Xcode 10 and try to run it on a device.
我正在运行 Xcode 10 并尝试在设备上运行它。
Signing worked before just fine.
签名工作之前就好了。
回答by M Abubaker Majeed
I have facing the same issue, i believe this issue have something link to keychain access too (code signing problem), I go to keychain access unlock the login then lock it again fixed this issue
. After uploading toOSMojave
and Xcode 10 keychain need to reverify the password. (how i find this? while facing same issue and trying all available option, i think to generate certificate again, but while generating private key i found keychain login user name and password is wrong type of message- i lock and unlock again solved my problem). Note this process required your login pass phare.
我也面临着同样的问题,我相信这个问题有一些链接到钥匙串访问过(代码签名的问题), I go to keychain access unlock the login then lock it again fixed this issue
。上传到OSMojave
Xcode 10 钥匙串后需要重新验证密码。(我是怎么找到这个的?在面临同样的问题并尝试所有可用选项时,我想再次生成证书,但是在生成私钥时我发现钥匙串登录用户名和密码是错误的消息类型 - 我再次锁定和解锁解决了我的问题)。请注意,此过程需要您的登录密码。
回答by B-Rad
On errors like this (i.e. with no clear cause), I look at the error message detail to see if DerivedData is referenced as that can occasionally create issues even after you've cleaned the project (using Shift + Cmd + K).
对于这样的错误(即没有明确原因),我查看错误消息详细信息以查看是否引用了 DerivedData,因为即使在您清理项目(使用 Shift + Cmd + K)之后,它偶尔也会产生问题。
Your error is referencing DerivedData (/Users/marcel/Library/Developer/Xcode/DerivedData/...) so the first thing I would do to troubleshoot would be to navigate to the DerivedData folder, find the respective project folder there and delete it. Then go back to Xcode and attempt to build the project.
您的错误是引用 DerivedData (/Users/marcel/Library/Developer/Xcode/DerivedData/...) 所以我要做的第一件事是导航到 DerivedData 文件夹,在那里找到相应的项目文件夹并将其删除. 然后返回 Xcode 并尝试构建项目。
回答by Veer Gadodia
Open terminal, navigate to the directory of your Xcode project and type:
打开终端,导航到 Xcode 项目的目录并键入:
pod update
This should solve the problem.
这应该可以解决问题。
回答by MeGaPk
to fix that problem, you also can try "Try opening Keychain Access.app. Right-click on the login keychain and try locking it and then unlocking it again."
要解决该问题,您还可以尝试“尝试打开 Keychain Access.app。右键单击登录钥匙串并尝试锁定它,然后再次解锁它。”
In my case, it's resolved my problem with codesign :)
就我而言,它解决了我的协同设计问题:)
回答by Rodrigo Ortega
I know this is old but I just stumbled upon this issue with Xcode 11.3 and the only thing that worked was to completely remove Cocoa pods from the project and install it again from command line as ChavirA suggested in this post:
我知道这是旧的,但我只是在 Xcode 11.3 中偶然发现了这个问题,唯一有效的是从项目中完全删除 Cocoa pods 并按照ChavirA 在这篇文章中的建议从命令行重新安装它:
$ sudo gem install cocoapods-deintegrate cocoapods-clean
$ pod deintegrate
$ pod clean
$ pod install
hope it heps :D
希望它heps :D