I maintain a pretty old Objective C, iOS app. After switching to Xcode 8 + Sierra, I started getting a CodeSign error:
XXXXX.app: resource fork, Finder information, or similar detritus not allowed Command /usr/bin/codesign failed with exit code 1
I've been through the docs and also other questions here and I'm aware of the xattr -rc .
solution. I've also tried finding individual files with attributes using ls -alR@
. There are no more files with the com.apple.FinderInfo
attribute, plus xattr -rc .
would have cleared them anyway.
I set up a VM with El Capitan and Xcode 8 and I can build and sign there no problem, so somehow this is Sierra specific.
What I've tried:
ls -alR@
,xattr -rc .
, et all.- Rebooting
- Deep clean + kill DerivedData
- Made sure code is not in iCloud Drive
The same Xcode is able to build and sign a newer Swift app I'm working on.
How can I find which of the error cases applies to me? is it a "resource fork", "Finder information", or "similar detritus"?