Help with Code Sign Error?


Dave
 

Sorry - I posted with the wrong subject in my last mail!

Hi All,

I’m try to build my application for Mac. It compels ok, but I get this Code Sign Error. I

Code Sign Error Group
Command /usr/bin/codesign failed with exit code 1

CodeSign /Users/surfacedetail/Library/Developer/Xcode/DerivedData/SudokuSolverForMac-enipqybjgmjkafbtrpztyszququm/Build/Products/Debug/SudokuSolverForMac.app
cd /Documents/Development/Projects/LTW/DuplexityProjects
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate

Signing Identity: "Mac Developer: David Burgun (6P9972FX69)"

/usr/bin/codesign --force --sign 4400BD4F644B7B607AD13805E11BB1BA7BA6CE87 --timestamp=none /Users/surfacedetail/Library/Developer/Xcode/DerivedData/SudokuSolverForMac-enipqybjgmjkafbtrpztyszququm/Build/Products/Debug/SudokuSolverForMac.app

/Users/surfacedetail/Library/Developer/Xcode/DerivedData/SudokuSolverForMac-enipqybjgmjkafbtrpztyszququm/Build/Products/Debug/SudokuSolverForMac.app: resource fork, Finder information, or similar detritus not allowed
Command /usr/bin/codesign failed with exit code 1

Does anyone have any idea what the problem might be?

Thanks a lot
All the Best
Dave


St John, David R
 

Hi Dave,

One or more files have extended attributes which codesign doesn’t like. Use ‘xattr -lr’ to find the files with the attributes and ‘xattr -dr <attribute>' to delete them, i.e. xattr -dr "com.apple.FinderInfo"

-Dave

On 8/28/17, 10:47 AM, "cocoa@apple-dev.groups.io on behalf of Dave" <cocoa@apple-dev.groups.io on behalf of dave@...> wrote:

Sorry - I posted with the wrong subject in my last mail!

Hi All,

I’m try to build my application for Mac. It compels ok, but I get this Code Sign Error. I

Code Sign Error Group
Command /usr/bin/codesign failed with exit code 1

CodeSign /Users/surfacedetail/Library/Developer/Xcode/DerivedData/SudokuSolverForMac-enipqybjgmjkafbtrpztyszququm/Build/Products/Debug/SudokuSolverForMac.app
cd /Documents/Development/Projects/LTW/DuplexityProjects
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate

Signing Identity: "Mac Developer: David Burgun (6P9972FX69)"

/usr/bin/codesign --force --sign 4400BD4F644B7B607AD13805E11BB1BA7BA6CE87 --timestamp=none /Users/surfacedetail/Library/Developer/Xcode/DerivedData/SudokuSolverForMac-enipqybjgmjkafbtrpztyszququm/Build/Products/Debug/SudokuSolverForMac.app

/Users/surfacedetail/Library/Developer/Xcode/DerivedData/SudokuSolverForMac-enipqybjgmjkafbtrpztyszququm/Build/Products/Debug/SudokuSolverForMac.app: resource fork, Finder information, or similar detritus not allowed
Command /usr/bin/codesign failed with exit code 1

Does anyone have any idea what the problem might be?

Thanks a lot
All the Best
Dave


Dave
 

HI,

Ok, but which files do I run xattr on? I’m trying to compile a project? I assume its something in the resources, but storyboards. images, not sure what it means by “App Bundle”?

All the Best
Dave

On 28 Aug 2017, at 17:06, St John, David R <david.stjohn@...> wrote:

Hi Dave,

One or more files have extended attributes which codesign doesn’t like. Use ‘xattr -lr’ to find the files with the attributes and ‘xattr -dr <attribute>' to delete them, i.e. xattr -dr "com.apple.FinderInfo"

-Dave

On 8/28/17, 10:47 AM, "cocoa@apple-dev.groups.io on behalf of Dave" <cocoa@apple-dev.groups.io on behalf of dave@...> wrote:

Sorry - I posted with the wrong subject in my last mail!

Hi All,

I’m try to build my application for Mac. It compels ok, but I get this Code Sign Error. I

Code Sign Error Group
Command /usr/bin/codesign failed with exit code 1

CodeSign /Users/surfacedetail/Library/Developer/Xcode/DerivedData/SudokuSolverForMac-enipqybjgmjkafbtrpztyszququm/Build/Products/Debug/SudokuSolverForMac.app
cd /Documents/Development/Projects/LTW/DuplexityProjects
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate

Signing Identity: "Mac Developer: David Burgun (6P9972FX69)"

/usr/bin/codesign --force --sign 4400BD4F644B7B607AD13805E11BB1BA7BA6CE87 --timestamp=none /Users/surfacedetail/Library/Developer/Xcode/DerivedData/SudokuSolverForMac-enipqybjgmjkafbtrpztyszququm/Build/Products/Debug/SudokuSolverForMac.app

/Users/surfacedetail/Library/Developer/Xcode/DerivedData/SudokuSolverForMac-enipqybjgmjkafbtrpztyszququm/Build/Products/Debug/SudokuSolverForMac.app: resource fork, Finder information, or similar detritus not allowed
Command /usr/bin/codesign failed with exit code 1

Does anyone have any idea what the problem might be?

Thanks a lot
All the Best
Dave







Dave
 

Hi,

I tried the following:

cd /Documents/Development/Projects/LTW/SudokuSolverForMac/Resources

xattr -cr .

I get no output from xattr and when I try and compile I get the same error.

Is this the right command? My Images are in a Folder hierarchy, I assume it handles this? Or do I have to do it on all files or folder separately?


Yet another glitch, why doesn’t XCode do this for me?

Cheers
Dave

On 28 Aug 2017, at 20:35, Dave <dave@...> wrote:

HI,

Ok, but which files do I run xattr on? I’m trying to compile a project? I assume its something in the resources, but storyboards. images, not sure what it means by “App Bundle”?

All the Best
Dave

On 28 Aug 2017, at 17:06, St John, David R <david.stjohn@...> wrote:

Hi Dave,

One or more files have extended attributes which codesign doesn’t like. Use ‘xattr -lr’ to find the files with the attributes and ‘xattr -dr <attribute>' to delete them, i.e. xattr -dr "com.apple.FinderInfo"

-Dave

On 8/28/17, 10:47 AM, "cocoa@apple-dev.groups.io on behalf of Dave" <cocoa@apple-dev.groups.io on behalf of dave@...> wrote:

Sorry - I posted with the wrong subject in my last mail!

Hi All,

I’m try to build my application for Mac. It compels ok, but I get this Code Sign Error. I

Code Sign Error Group
Command /usr/bin/codesign failed with exit code 1

CodeSign /Users/surfacedetail/Library/Developer/Xcode/DerivedData/SudokuSolverForMac-enipqybjgmjkafbtrpztyszququm/Build/Products/Debug/SudokuSolverForMac.app
cd /Documents/Development/Projects/LTW/DuplexityProjects
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate

Signing Identity: "Mac Developer: David Burgun (6P9972FX69)"

/usr/bin/codesign --force --sign 4400BD4F644B7B607AD13805E11BB1BA7BA6CE87 --timestamp=none /Users/surfacedetail/Library/Developer/Xcode/DerivedData/SudokuSolverForMac-enipqybjgmjkafbtrpztyszququm/Build/Products/Debug/SudokuSolverForMac.app

/Users/surfacedetail/Library/Developer/Xcode/DerivedData/SudokuSolverForMac-enipqybjgmjkafbtrpztyszququm/Build/Products/Debug/SudokuSolverForMac.app: resource fork, Finder information, or similar detritus not allowed
Command /usr/bin/codesign failed with exit code 1

Does anyone have any idea what the problem might be?

Thanks a lot
All the Best
Dave








Jonathan Prescott
 

I would start with your artwork,  images, and any files you imported from the outside world.  Anything generated by Xcode, or created within Xcode (source files, storyboards, xibs, etc.) are probably okay.  Then, clean your project, and try and re-build.

The app bundle is the application (SudokuSolverForMac) you are building.  There are files being copied into that bundle that have the Finder attributes set.  After the application is constructed, the code-signing pass is having issues with those files you’ve included in the application.  So, you have to “go to the source” and reset those Finder attributes as folks have indicated already.

Jonathan

On Aug 28, 2017, at 2:35 PM, Dave <dave@...> wrote:

HI,

Ok, but which files do I run xattr on? I’m trying to compile a project? I assume its something in the resources, but storyboards. images, not sure what it means by “App Bundle”?

All the Best
Dave

On 28 Aug 2017, at 17:06, St John, David R <david.stjohn@...> wrote:

Hi Dave,

One or more files have extended attributes which codesign doesn’t like.  Use ‘xattr -lr’ to find the files with the attributes and ‘xattr -dr <attribute>' to delete them, i.e. xattr -dr "com.apple.FinderInfo"

-Dave

On 8/28/17, 10:47 AM, "cocoa@apple-dev.groups.io on behalf of Dave" <cocoa@apple-dev.groups.io on behalf of dave@...> wrote:

  Sorry - I posted with the wrong subject in my last mail! 

  Hi All,

  I’m try to build my application for Mac. It compels ok, but I get this Code Sign Error. I

  Code Sign Error Group
  Command /usr/bin/codesign failed with exit code 1

  CodeSign /Users/surfacedetail/Library/Developer/Xcode/DerivedData/SudokuSolverForMac-enipqybjgmjkafbtrpztyszququm/Build/Products/Debug/SudokuSolverForMac.app
     cd /Documents/Development/Projects/LTW/DuplexityProjects
     export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate

  Signing Identity:     "Mac Developer: David Burgun (6P9972FX69)"

     /usr/bin/codesign --force --sign 4400BD4F644B7B607AD13805E11BB1BA7BA6CE87 --timestamp=none /Users/surfacedetail/Library/Developer/Xcode/DerivedData/SudokuSolverForMac-enipqybjgmjkafbtrpztyszququm/Build/Products/Debug/SudokuSolverForMac.app

  /Users/surfacedetail/Library/Developer/Xcode/DerivedData/SudokuSolverForMac-enipqybjgmjkafbtrpztyszququm/Build/Products/Debug/SudokuSolverForMac.app: resource fork, Finder information, or similar detritus not allowed
  Command /usr/bin/codesign failed with exit code 1

  Does anyone have any idea what the problem might be?

  Thanks a lot
  All the Best
  Dave











Dave
 

Hi,

I ran it on all my resource files (AFAICT) and now, I’m getting this error:

CopyPNGFile /Users/surfacedetail/Library/Developer/Xcode/DerivedData/SudokuSolverForMac-enipqybjgmjkafbtrpztyszququm/Build/Products/Debug/SudokuSolverForMac.app/Contents/Resources/Image-Board-Color3.png DuplexityForiPhone/Resources/Images/Board/DebugImages/Image-Board-Color3.png
cd /Documents/Development/Projects/LTW/DuplexityProjects
/Applications/Xcode.app/Contents/Developer/usr/bin/copypng /Documents/Development/Projects/LTW/DuplexityProjects/DuplexityForiPhone/Resources/Images/Board/DebugImages/Image-Board-Color3.png /Users/surfacedetail/Library/Developer/Xcode/DerivedData/SudokuSolverForMac-enipqybjgmjkafbtrpztyszququm/Build/Products/Debug/SudokuSolverForMac.app/Contents/Resources/Image-Board-Color3.png

Could not delete /Users/surfacedetail/Library/Developer/Xcode/DerivedData/SudokuSolverForMac-enipqybjgmjkafbtrpztyszququm/Build/Products/Debug/SudokuSolverForMac.app/Contents/Resources/Image-Board-Color3.png: No such file or directory
Command /Applications/Xcode.app/Contents/Developer/usr/bin/copypng failed with exit code 2

Don’t understand why its trying to delete things?

Thanks a lot
All the Best
Dave

On 28 Aug 2017, at 20:59, Jonathan Prescott <jprescott12@...> wrote:

I would start with your artwork, images, and any files you imported from the outside world. Anything generated by Xcode, or created within Xcode (source files, storyboards, xibs, etc.) are probably okay. Then, clean your project, and try and re-build.

The app bundle is the application (SudokuSolverForMac) you are building. There are files being copied into that bundle that have the Finder attributes set. After the application is constructed, the code-signing pass is having issues with those files you’ve included in the application. So, you have to “go to the source” and reset those Finder attributes as folks have indicated already.

Jonathan

On Aug 28, 2017, at 2:35 PM, Dave <dave@...> wrote:

HI,

Ok, but which files do I run xattr on? I’m trying to compile a project? I assume its something in the resources, but storyboards. images, not sure what it means by “App Bundle”?

All the Best
Dave

On 28 Aug 2017, at 17:06, St John, David R <david.stjohn@...> wrote:

Hi Dave,

One or more files have extended attributes which codesign doesn’t like. Use ‘xattr -lr’ to find the files with the attributes and ‘xattr -dr <attribute>' to delete them, i.e. xattr -dr "com.apple.FinderInfo"

-Dave

On 8/28/17, 10:47 AM, "cocoa@apple-dev.groups.io on behalf of Dave" <cocoa@apple-dev.groups.io on behalf of dave@...> wrote:

Sorry - I posted with the wrong subject in my last mail!

Hi All,

I’m try to build my application for Mac. It compels ok, but I get this Code Sign Error. I

Code Sign Error Group
Command /usr/bin/codesign failed with exit code 1

CodeSign /Users/surfacedetail/Library/Developer/Xcode/DerivedData/SudokuSolverForMac-enipqybjgmjkafbtrpztyszququm/Build/Products/Debug/SudokuSolverForMac.app
cd /Documents/Development/Projects/LTW/DuplexityProjects
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate

Signing Identity: "Mac Developer: David Burgun (6P9972FX69)"

/usr/bin/codesign --force --sign 4400BD4F644B7B607AD13805E11BB1BA7BA6CE87 --timestamp=none /Users/surfacedetail/Library/Developer/Xcode/DerivedData/SudokuSolverForMac-enipqybjgmjkafbtrpztyszququm/Build/Products/Debug/SudokuSolverForMac.app

/Users/surfacedetail/Library/Developer/Xcode/DerivedData/SudokuSolverForMac-enipqybjgmjkafbtrpztyszququm/Build/Products/Debug/SudokuSolverForMac.app: resource fork, Finder information, or similar detritus not allowed
Command /usr/bin/codesign failed with exit code 1

Does anyone have any idea what the problem might be?

Thanks a lot
All the Best
Dave







Dave
 

Hi,

Please ignore the last message, it was something I’d done experimenting that caused it.

I’m still getting the:

/Users/surfacedetail/Library/Developer/Xcode/DerivedData/SudokuSolverForMac-enipqybjgmjkafbtrpztyszququm/Build/Products/Debug/SudokuSolverForMac.app: resource fork, Finder information, or similar detritus not allowed
Command /usr/bin/codesign failed with exit code 1

Why oh, oh why, it can’t either ignore the stuff it doesn’t like or at the very least display the file(s) that have the problems is beyond me.

This is (not so) slowly driving me nuts!

All the Best
Dave


Dave
 

Solved!

I ran xattr on all the files in the hierarchy and low and behold it worked!

Thanks to everyone that helped.

All the Best
Dave

On 28 Aug 2017, at 21:07, Dave <dave@...> wrote:

Hi,

I ran it on all my resource files (AFAICT) and now, I’m getting this error:

CopyPNGFile /Users/surfacedetail/Library/Developer/Xcode/DerivedData/SudokuSolverForMac-enipqybjgmjkafbtrpztyszququm/Build/Products/Debug/SudokuSolverForMac.app/Contents/Resources/Image-Board-Color3.png DuplexityForiPhone/Resources/Images/Board/DebugImages/Image-Board-Color3.png
   cd /Documents/Development/Projects/LTW/DuplexityProjects
   /Applications/Xcode.app/Contents/Developer/usr/bin/copypng /Documents/Development/Projects/LTW/DuplexityProjects/DuplexityForiPhone/Resources/Images/Board/DebugImages/Image-Board-Color3.png /Users/surfacedetail/Library/Developer/Xcode/DerivedData/SudokuSolverForMac-enipqybjgmjkafbtrpztyszququm/Build/Products/Debug/SudokuSolverForMac.app/Contents/Resources/Image-Board-Color3.png

Could not delete /Users/surfacedetail/Library/Developer/Xcode/DerivedData/SudokuSolverForMac-enipqybjgmjkafbtrpztyszququm/Build/Products/Debug/SudokuSolverForMac.app/Contents/Resources/Image-Board-Color3.png: No such file or directory
Command /Applications/Xcode.app/Contents/Developer/usr/bin/copypng failed with exit code 2

Don’t understand why its trying to delete things? 

Thanks a lot
All the Best
Dave


On 28 Aug 2017, at 20:59, Jonathan Prescott <jprescott12@...> wrote:

I would start with your artwork,  images, and any files you imported from the outside world.  Anything generated by Xcode, or created within Xcode (source files, storyboards, xibs, etc.) are probably okay.  Then, clean your project, and try and re-build.

The app bundle is the application (SudokuSolverForMac) you are building.  There are files being copied into that bundle that have the Finder attributes set.  After the application is constructed, the code-signing pass is having issues with those files you’ve included in the application.  So, you have to “go to the source” and reset those Finder attributes as folks have indicated already.

Jonathan

On Aug 28, 2017, at 2:35 PM, Dave <dave@...> wrote:

HI,

Ok, but which files do I run xattr on? I’m trying to compile a project? I assume its something in the resources, but storyboards. images, not sure what it means by “App Bundle”?

All the Best
Dave

On 28 Aug 2017, at 17:06, St John, David R <david.stjohn@...> wrote:

Hi Dave,

One or more files have extended attributes which codesign doesn’t like.  Use ‘xattr -lr’ to find the files with the attributes and ‘xattr -dr <attribute>' to delete them, i.e. xattr -dr "com.apple.FinderInfo"

-Dave

On 8/28/17, 10:47 AM, "cocoa@apple-dev.groups.io on behalf of Dave" <cocoa@apple-dev.groups.io on behalf of dave@...> wrote:

 Sorry - I posted with the wrong subject in my last mail! 

 Hi All,

 I’m try to build my application for Mac. It compels ok, but I get this Code Sign Error. I

 Code Sign Error Group
 Command /usr/bin/codesign failed with exit code 1

 CodeSign /Users/surfacedetail/Library/Developer/Xcode/DerivedData/SudokuSolverForMac-enipqybjgmjkafbtrpztyszququm/Build/Products/Debug/SudokuSolverForMac.app
    cd /Documents/Development/Projects/LTW/DuplexityProjects
    export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate

 Signing Identity:     "Mac Developer: David Burgun (6P9972FX69)"

    /usr/bin/codesign --force --sign 4400BD4F644B7B607AD13805E11BB1BA7BA6CE87 --timestamp=none /Users/surfacedetail/Library/Developer/Xcode/DerivedData/SudokuSolverForMac-enipqybjgmjkafbtrpztyszququm/Build/Products/Debug/SudokuSolverForMac.app

 /Users/surfacedetail/Library/Developer/Xcode/DerivedData/SudokuSolverForMac-enipqybjgmjkafbtrpztyszququm/Build/Products/Debug/SudokuSolverForMac.app: resource fork, Finder information, or similar detritus not allowed
 Command /usr/bin/codesign failed with exit code 1

 Does anyone have any idea what the problem might be?

 Thanks a lot
 All the Best
 Dave