Code Sign Error in Macos Monterey, Xcode - Resource Fork, Finder Information, or Similar Detritus Not Allowed

Code Sign Error in macOS Monterey, Xcode - resource fork, Finder information, or similar detritus not allowed

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.

resource fork, Finder information, or similar detritus not allowed on Flutter Ios

I know you said you tried this already but just to double check did you try the solution with the path to your project directory this worked for me.

After looking at your error closer I believe this is your problem. Your Error: Xcode - resource fork, Finder information, or similar detritus not allowed. According to what I can determine can be fixed like this.

Solution

Open terminal and execute this command where project_dir would be your flutter project

 xattr -cr <path_to_project_dir> 

Or

Navigate to your projects root directory from within your terminal then execute this command

xattr -cr .

Code Signing in iOS 10 Resource fork, Finder information, or similar detritus not allowed

The problem isn't your certificates, etc. it's your data. Do you have pdfs or other files you include in your app? Google for "Xcode detritus" (no quotes) and you should find plenty of hits. There's even a free app in the App Store that will remove it for you.

Code Sign Error in macOS Monterey, Xcode - resource fork, Finder information, or similar detritus not allowed

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.

When publishing to iPhone I very often get this message: similar detritus not allowed

Code signing no longer allows any file in an app bundle to have an extended attribute containing a resource fork or Finder info.

To see which files are causing this error, run this command in Terminal:

$ xattr -lr <path_to_app_bundle>

replacing with the path to your actual app bundle.

And you can also remove all extended attributes from your app bundle with the xattr command:

$ xattr -cr <path_to_app_bundle>

For more information click here.



Related Topics



Leave a reply



Submit