Maybe you solved the problem already. I had the same issue. Solution was: sudo codesign -f -s - --timestamp=none --deep /Applications/XnViewMP.app