英文:
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:现在正在尝试
英文:
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
答案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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论