Command Code sign Failed with a nonzero exit code when building flutter app using Xcode (errSecInternalComponent)

huangapple go评论90阅读模式
英文:

Command Code sign Failed with a nonzero exit code when building flutter app using Xcode (errSecInternalComponent)

问题

我遇到了这个错误:

/Users/administrator/Library/Developer/Xcode/DerivedData/Runner-xxxxxxx/Build/Intermediates.noindex/ArchiveIntermediates/Runner/InstallationBuildProductsLocation/Applications/Runner.app/Frameworks/App.framework: errSecInternalComponent

在构建一个Flutter应用程序时。

我找到了一些可能与xattrs相关的提示。

xattr -rc folder/to/sources

并没有帮助。

我注意到在运行新构建时,我的应用程序文件夹中有很多带有com.apple.quarantine属性的文件。

所以我也执行了:

xattr -rc ~/development/flutter

在这一步之后,com.apple.quarantine文件不再出现,但我仍然遇到相同的错误。

我尝试了https://medium.com/@ceyhunkeklik/how-to-fix-ios-application-code-signing-error-4818bd331327 中的可能解决方案。

我的密钥/身份似乎是可访问的。我还尝试了重新启动和运行flutter clean

编辑:

我也找不到关于设置codesign二进制文件的调试级别的任何信息 - 是否可能?

编辑2:现在正在尝试

https://stackoverflow.com/questions/52421999/xcode-10-command-codesign-failed-with-a-nonzero-exit-code

英文:

I am getting getting this error:

/Users/administrator/Library/Developer/Xcode/DerivedData/Runner-xxxxxxx/Build/Intermediates.noindex/ArchiveIntermediates/Runner/InstallationBuildProductsLocation/Applications/Runner.app/Frameworks/App.framework: errSecInternalComponent

When building a flutter app.

I found some hints that might be related to xattrs.

xattr -rc folder/to/sources

does not help.

I saw that when running new builds, there are lots of files with com.apple.quarantine attributes in my app's folder.

So I also

xattr -rc ~/development/flutter

After this step, the com.apple.quarantine files stopped to appear, but I still get the same error.

I tried the possible solutions in https://medium.com/@ceyhunkeklik/how-to-fix-ios-application-code-signing-error-4818bd331327

My key / identity seems to be accessible. I also tried a restart and flutter clean.

EDIT:

I also cannot find any information about setting the debuglevel of the codesign binary - is that possible?

EDIT2: Now trying

https://stackoverflow.com/questions/52421999/xcode-10-command-codesign-failed-with-a-nonzero-exit-code

答案1

得分: 3

在我的情况下,代码签名失败的问题发生在将项目文件保存在共享iCloud目录上。在尝试了所有与此问题相关的流行建议,比如flutter clean或xCode向导操作之后,我意识到了这一点,因此我最终成功地将项目重新创建在本地非共享驱动器目录中,问题消失了。

英文:

In my case code sign failing issue happened because of keeping project files on shared iCloud directory. I realized that after trying out all popular suggestions like flutter clean or xCode wizardry actions related to this issue, so I finally managed to re-create the project in local non-shared drive directory and the problem disappeared.

答案2

得分: 0

我通过关闭“自动管理签名”,并使用在苹果开发者网站上提前创建的分发证书和配置文件来解决了这个问题。

英文:

I managed to fix that by switching off "Automatically manage signing" and used a distribution certificate and profile which I had to create on the Apple developer website beforehand.

huangapple
  • 本文由 发表于 2020年1月3日 21:53:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/59579779.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定