Can't codesign due to " .DS_Store files cannot be a symlink"

Solution 1:

Run this command and then try the code sign a second time

find /Users/fishbacp/Desktop/dist/My_Application.app -name .DS_Store -delete

Note - doing this next part will create new .DS_Store files and require a second delete pass described above. Like all files starting with a period, this one is hidden by default in Finder. This shortcut toggles the preference to show hidden files in Finder. Command - Shift - period