gpt4 book ai didi

ios - macOS Monterey、Xcode 中的代码签名错误 - 不允许资源 fork 、Finder 信息或类似碎屑

转载 作者:IT王子 更新时间:2023-10-29 07:25:28 42 4
gpt4 key购买 nike

已经尝试过: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

如何解决这个问题?

最佳答案

解决方案一:

Apple Developer Website 回答上述问题 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 并重新构建。完成。

关于ios - macOS Monterey、Xcode 中的代码签名错误 - 不允许资源 fork 、Finder 信息或类似碎屑,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39652867/

42 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com