I have patched a specific application that I downloaded from the app store but when I ran the executable, it gave me a signal kill 9. I also reverted back the change I made, but the same error was thrown when I ran it. I figured it might be a code signing issue and removed it with optool but then I got this error:
[CK] Invalid value of "(null)" for entitlement "com.apple.application-identifier" or "com.apple.developer.associated-application-identifier" on process "(57039)". We expect TEAMID.BUNDLEID, and insist that TEAMID is exactly 10 characters long, consisting of [0-9][A-Z]. This is a permanent issue, and access to CloudKit will be denied until this is resolved.
I'm not sure if I'm on the right track but in case I am, how can I codesign the binary with its original bundle identified after patching the binary?