I'm signing a DMG that contains a signed app. I sign the app, and then sign the DMG. codesign is happy, but when I try spctl it fails. The app itself passes both codesign and spctl. See below.
Any ideas? What does "insufficient context" mean?
cantgetnosleep@dmg-maker:codesign -dvv build/MyApp-Installer.dmg
Executable=/Users/cantgetnosleep/development/MyApp-Installer.dmg
Identifier=MyApp
Format=disk image
CodeDirectory v=20200 size=322 flags=0x0(none) hashes=1+6 location=embedded
Signature size=8864
Authority=Developer ID Application: Andrew Hughes (XXX)
Authority=Developer ID Certification Authority
Authority=Apple Root CA
Timestamp=Sep 19, 2016, 4:55:01 PM
Info.plist=not bound
TeamIdentifier=XXX
Sealed Resources=none
Internal requirements count=1 size=196
cantgetnosleep@dmg-maker:spctl -a -t open -v build/MyApp-Installer.dmg
build/MyApp-Installer.dmg: rejected
source=Insufficient Context