I agree thatxattr -rcis definitely the answer. I think the issue is heightened security with the latest version of the `codesign` command-line tool, which of course Xcode uses. I was attempting to codesign an AppleScript bundle using that tool, and got the same resource fork, finder information, or similar detritus not allowed error. I have signed this bundle for years with Xcode 7 or earlier, and macOS 10.11 or earlier, and never had a problem. I found that the bundle itself had these extended attributes: com.apple.FinderInfo com.apple.metadata:kMDLabel_55jrfjefwdbulgyssk2kuyqciyan old Perl script inside Contents/Resources/Scripts had these extended attributes: com.apple.FinderInfo com.apple.TextEncodingand finally the main.scpt file, also inside Contents/Resources/Scripts had these: com.apple.FinderInfo com.apple.ResourceForkOnly after I removed the extended attributes from all three items would `codesign` work.I've submitted Bug.27727935 to Apple regarding this issue - the error
Topic:
Code Signing
SubTopic:
Certificates, Identifiers & Profiles
Tags: