codesign doesn't seem to like directories with a dot in their name…

Still trying to codesign my application using a custom build process (no XCode here). I think I found out the reason why codesign doesn't like my application bundle: it issues an error at each directory name containing a dot, apparently thinking it's some sort of bundle. The problem is, some of these directories are used by a library which will look them up with such a name, so I really can't rename them easily.

Is there a workaround for this? Is there any way to tell codesign to just consider directories with a dot in their name as just directories, and not expect anything special in them?

Thanks.

codesign doesn't seem to like directories with a dot in their name…
 
 
Q