Search code examples
macoscocoaxcode6code-signing

Codesign: What are unsealed contents?


I have just upgraded to XCode 6 and tried to build my Developer ID signed Mac app. However, I now get the following codesign error:

unsealed contents present in the root directory of an embedded framework

This applies to the Dropbox.framework that I use. Obviously that could not be signed. What does the error mean? What is wrong?


Solution

  • Have a look at OS X Code Signing In Depth

    Beginning with OS X version 10.9.5, there will be changes in how OS X recognizes signed apps

    Structure your bundle according to the expectations for OS X version 10.9 or later:

    • Only include signed code in directories that should contain signed code.
    • Only include resources in directories that should contain
      resources.
    • Do not use the --resource-rules flag or ResourceRules.plist. They have been obsoleted and will be rejected.