SDL_image error Multiple binaries share the same codesign path

I am trying to validate an archive of my app in XCode 11 in order to share it with other machines.
I am running into an error with SDL_image when trying to validate I get the following error:

"
Multiple binaries share the same codesign path:
/Applications/myapp.app/Contents/Frameworks/SDL2_image.framework/Versions/Current

Binaries:
/Applications/myapp.app/Contents/Frameworks/SDL2_image.framework/Versions/Current/SDL2_image
/Applications/myapp.app/Contents/Frameworks/SDL2_image.framework/SDL2_image

This can happen if your build process copies frameworks by following symlinks.
"

I had the same issue for multiple occurrences of the webp framework and deleting the binary from the /versions/current directory fixed the issue, however, trying to do this for the SDL_image binary result in a failed codesign error when Trying to build. I believe this could be an issue with SDL_image.

I have found this stack overflow question with others reporting the same issue:

Please advise
Thank you!