不允许在MacOS蒙特雷、Xcode-资源分叉、Finder信息或类似碎片中出现代码符号错误 [英] Code Sign Error in macOS Monterey, Xcode - resource fork, Finder information, or similar detritus not allowed

查看:56
本文介绍了不允许在MacOS蒙特雷、Xcode-资源分叉、Finder信息或类似碎片中出现代码符号错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已尝试:Code Sign Error on macOS Sierra, Xcode 8

请参阅显示错误的图像 enter image description here

CodeSign /Users/gururajtallur/Library/Developer/Xcode/DerivedData/Flow-bkqjkvtmvjovpyepfjeyqmjpintj/Build/Products/Debug-iphoneos/Super Flow Flip.app
    cd "/Volumes/Development/Project/Top Best Games/19. Lets Flow/35/let's FLOW - source/proj.ios_mac"
    export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"

Signing Identity:     "iPhone Distribution: New Free Games (2CHN583K4J)"
Provisioning Profile: "Super Flow Flipp AppStore"
                      (c6c30d2a-1025-4a23-8d12-1863ff684a05)

    /usr/bin/codesign --force --sign E48B98966150110E55EAA9B149F731901A41B37F --entitlements /Users/gururajtallur/Library/Developer/Xcode/DerivedData/Flow-bkqjkvtmvjovpyepfjeyqmjpintj/Build/Intermediates/Flow.build/Debug-iphoneos/Super Flow Flip.build/Super Flow Flip.app.xcent --timestamp=none /Users/gururajtallur/Library/Developer/Xcode/DerivedData/Flow-bkqjkvtmvjovpyepfjeyqmjpintj/Build/Products/Debug-iphoneos/Super Flow Flip.app

/Users/gururajtallur/Library/Developer/Xcode/DerivedData/Flow-bkqjkvtmvjovpyepfjeyqmjpintj/Build/Products/Debug-iphoneos/Super Flow Flip.app: resource fork, Finder information, or similar detritus not allowed
Command /usr/bin/codesign failed with exit code 1

在代码符号部分,它允许我选择配置文件和证书.但仍显示错误。 enter image description here

enter image description here

如何解决此问题?

推荐答案

解决方案1:

Apple开发者网站回答了上述问题Here

在终端执行以下命令:首先转到项目根文件夹

 xattr -cr <path_to_project_dir>
清理Xcode并重新构建。干杯

解决方案2:

只需转到项目根目录并运行此命令xattr-cr。

xattr -cr .
清理Xcode并重新构建。完成。

解决方案3:

您可以通过查找包含查找程序信息的文件来解决此问题。

在终端,转到项目根目录,执行

ls -alR@ . > kundapura.txt

这将在当前目录中创建kundapura.txt。现在搜索com.apple.FinderInfo并清除所有文件的此属性。你可以这样做

xattr -c <filename>

示例:xattr -c guru.png

清除所有内容后,代码符号即可正常工作。清理Xcode并重新构建。干杯

解决方案4:灵感来自Mark McCorkle的回答

在终端,转到项目根目录,逐条执行命令

  find . -type f -name '*.jpeg' -exec xattr -c {} ;
  find . -type f -name '*.jpg' -exec xattr -c {} ;
  find . -type f -name '*.png' -exec xattr -c {} ;
  find . -type f -name '*.json' -exec xattr -c {} ;
清理Xcode并重新构建。完成。

这篇关于不允许在MacOS蒙特雷、Xcode-资源分叉、Finder信息或类似碎片中出现代码符号错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆