My app uses MapKit, so Xcode 8 insists I have a provisioning profile. This seems to make it impossible to test the Mac App Store version of my app the way I used to with Xcode 7.
With Xcode 7 I could build the MAS version, launch it, and my app would detect there wasn't a valid MAS receipt, exiting with -173. This would cause the OS to put up a login dialog and I could enter a test account and password registered with iTuneConnect. A MAS receipt would then be added to my app and I could launch it after that and test it.
With Xcode 8, my app won't even launch. This error is printed to the system log:
Oct 30 13:30:56 com.apple.xpc.launchd[1] (com.mycompany.myapp[54628]): Binary is improperly signed.
When I type codesign -vv into Terminal, my app is "valid on disk" and "satisfies its Designated Requirement".
I think the problem is the binary is signed with my "3rd Party Developer Application" certificate, and the provisioning profile that allows MapKit access wants the binary to be signed by Apple. So it's impossible for me to launch the MAS build.
What am I doing wrong? How can I test my Mac App Store build?