macOS High Sierra Xcode中的代码签名错误 - 不允许使用资源分支,Finder信息或类似碎片 [英] Code Sign Error in macOS High Sierra Xcode - resource fork, Finder information, or similar detritus not allowed

查看:2224
本文介绍了macOS High Sierra Xcode中的代码签名错误 - 不允许使用资源分支,Finder信息或类似碎片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已经尝试过:

  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 / SBI n:/ 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-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:不允许资源分叉,Finder信息或类似碎屑
命令/ usr / bin / codesign失败,退出代码为1

在Code Sign部分,它允许我选择配置文件和证书......但仍然给出错误。





如何解决这个问题?

解决方案

解决方案1:



Apple开发人员网站上述问题答案这里



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

  xattr -cr< path_to_app_bundle> 

清理Xcode和Re Build。干杯



解决方案2:



您可以通过查找哪些文件来修复此问题查找信息。



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

  ls -alR @。 > kundapura.txt 

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

  xattr -c< filename> 

示例: xattr -c guru.png



一旦你清除了所有代码符号就行了。清理Xcode和重新构建。干杯



解决方案3:受Mark McCorkle的回答启发



在终端,转到项目的根目录并逐个执行命令

  find。 -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和Re Build。完成。


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_app_bundle>

Clean Xcode and Re Build. Cheers

Solution 2:

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 3: 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屋!

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