1

I’m new for macOS app development I'm trying to add image button to my view and I wanna see image after the text, so I'm dragging & dropping image button to view controller and writing title and after that, in image section I choose my image.

But my issue is if I will choose the system images my project works perfectly but if I will import a file by clicking project name > add files to.. and importing png, jpg,jpeg file to my project and choosing this image Xcode gives me this error;

CodeSign build/Debug/test.app
    cd /Users/feora/Documents/apps/test
    export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate

Signing Identity:     "-"

    /usr/bin/codesign --force --sign - --entitlements /Users/feora/Documents/apps/test/build/test.build/Debug/test.build/test.app.xcent --timestamp=none /Users/feora/Documents/apps/test/build/Debug/test.app

/Users/feora/Documents/apps/test/build/Debug/test.app: resource fork, Finder information, or similar detritus not allowed
Command /usr/bin/codesign failed with exit code 1

Something is wrong with this page but I can't find which one

Feora
  • 25
  • 6
  • Please be specific what you are trying to do. And where exactly you got stuck. – janu kansagra Jul 07 '18 at 10:57
  • Hi Janu, thank you very much for your answer :) I just wanna add image box and able to see this image when I built project. I can build project without any error with system pictures. But when I add external images in my desktop with clicking "project name> add files to.." I receive this error. I don't know how I can be more specific. – Feora Jul 07 '18 at 11:00

1 Answers1

1

That's because when you're add image file you're also adding some Finder metadata related to that image. If you've searched error you're getting at least a little bit, you'd have found answers like this.

Dan Karbayev
  • 2,870
  • 2
  • 19
  • 28
  • Thanks Dan! :) I was trying to fix this issue for hours and I couldn't find the answer before. I've solved this issue with open terminal> go to app folder > paste this code" find . -type f -name '*.png' -exec xattr -c {} \; " Thanks to you :) – Feora Jul 07 '18 at 12:14