macOS High Sierra Xcode 中的代码签名错误 - 不允许资源分叉、Finder 信息或类似的碎屑 [英] Code Sign Error in macOS High Sierra Xcode - resource fork, Finder information, or similar detritus not allowed
问题描述
已经尝试过:
CodeSign/Users/gururajtallur/Library/Developer/Xcode/DerivedData/Flow-bkqjkvtmvjovpyepfjeyqmjpintj/Build/Products/Debug-iphoneos/Super Flow Flip.appcd "/Volumes/Development/Project/Top Best Games/19. Lets Flow/35/let's FLOW - source/proj.ios_mac"导出 CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate导出路径="/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"签名身份:iPhone 发行版:新免费游戏 (2CHN583K4J)"配置文件:Super Flow Flipp AppStore"(c6c30d2a-1025-4a23-8d12-1863ff684a05)/usr/bin/codesign --force --sign E48B98966150110E55EAA9B149F731901A41B37F --entitlements/Users/gururajtallur/Library/Developer/Xcode/DerivedData/Flow-bkqjkvtmvjovpyepfjeyqiphone/F731901A41B37F.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:不允许资源叉、Finder信息或类似的碎屑命令/usr/bin/codedesign 失败,退出代码为 1
在代码签名部分,它允许我选择配置文件和证书......但仍然出现错误.
如何解决这个问题?
解决方案 1:
Apple 开发者网站回答上述问题此处.>
在终端中执行以下命令:首先转到项目根文件夹
xattr -cr
清理 Xcode 并重新构建.干杯
解决方案 2:
只需转到项目根目录并运行此命令 xattr -cr .
xattr -cr .
清理 Xcode 并重新构建.完成.
解决方案 3:
您可以通过查找包含查找程序信息的文件来解决此问题.
在终端中,进入项目根目录并执行
ls -alR@ .>昆达普拉.txt
这会在当前目录中创建 kundapura.txt.现在搜索 com.apple.FinderInfo 并清除所有文件的此属性.你可以这样做
xattr -c <文件名>
示例:xattr -c guru.png
清除所有内容后,代码签名即可使用.清理 Xcode 并重新构建.干杯
解决方案 4:灵感来自 Mark McCorkle 的回答
在终端中,进入项目根目录并执行一条命令
查找.-type f -name '*.jpeg' -exec xattr -c {} ;找 .-type f -name '*.jpg' -exec xattr -c {} ;找 .-type f -name '*.png' -exec xattr -c {} ;找 .-type f -name '*.json' -exec xattr -c {} ;
清理 Xcode 并重新构建.完成.
Already tried : Code Sign Error on macOS Sierra, Xcode 8
Please see image showing error
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
In Code Sign section its allowing me to select profile and certificate...but still giving error.
How to fix this problem ?
Solution 1:
Apple Developer Website Answers above problem Here.
Execute below command in terminal : First goto projects root folder
xattr -cr <path_to_project_dir>
Clean Xcode and Re Build. Cheers
Solution 2:
Just go to project root directory and run this command xattr -cr .
xattr -cr .
Clean Xcode and Re Build. Done.
Solution 3:
You can fix this problem by finding files which holds finder information.
In terminal, goto project root directory and execute
ls -alR@ . > kundapura.txt
This creates kundapura.txt in current directory. Now search for com.apple.FinderInfo and clear this attributes for all files. You can do it like this
xattr -c <filename>
Example: xattr -c guru.png
Once you clear all then code sign works. Clean Xcode and Re Build. Cheers
Solution 4: Inspired by Mark McCorkle's Answer
In terminal, goto project's root directory and execute one by one command
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 {} ;
Clean Xcode and Re Build. Done.
这篇关于macOS High Sierra Xcode 中的代码签名错误 - 不允许资源分叉、Finder 信息或类似的碎屑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!