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
Another possible cause of this problem: if you are building iOS and macOS apps that have the same name and the same installed location, you may find that both of them are written into the same app bundle. First the iOS app build places its contents directly in the app bundle root, and then the macOS app build places its contents into a "Contents" folder in the app bundle, and then codesign complains about the iOS resources.