Starting in Xcode 8 beta 3, frameworks are no longer code signed unless a development team is specified in the project settings. The release notes state that this is for iOS but it happens for macOS frameworks as well. The release notes state that "Code Sign on Copy" can be used instead. Unfortunately, this does not appear to work for nested frameworks. Let's say I have the following app layout:
App A -> embeds Framework B -> embeds Framework C
If I change my projects settings so that App A does "Code Sign on Copy" for Framework B and Framework B does "Code Sign on Copy" for Framework C, my build fails because Framework C was NOT code signed when copied into Framework B. When Xcode tries to code signing Framework B on copy, it fails because Framework C is not signed.
Is this a bug or is this part of the new expected behavior? If it's "As designed", what is the solution here? Run Script phases to manually code sign frameworks?
I really don't understand why this change was made. Does anyone understand what prompted this?