CodeSign failed with a nonzero exit code - Xcode 15, Unity 2022.3.10f1

I’m trying to build my project for iOS, and I believe I have everything set up correctly, but when I try building in XCode (whether I’m using a Device build or a Simulator build) it fails when trying to CodeSign the Unity Framework. When I look at the error message in the Reports, it says:

//Frameworks/UnityFramework.framework: resource fork, Finder information, or similar detritus not allowed
Command CodeSign failed with a nonzero exit code

The only thing I can find for this error is to clear attributes using “xattr -cr .” but that doesn’t fix the issue. Has anyone else come across this issue (I can’t find any other reports in the forums), or have any idea how to fix it? Thanks!

Turns out iCloud screws with the filesystem, even when everything is in a .nosync folder. I had Unity build the project to a folder outside of what iCloud backs up (i.e. not in Documents), and then the XCode project built just fine.