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

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…

Details