I am seeing a problem only with iOS 10 devices, when I attempt to present an MFMailComposeViewController from an app that has been already published to the App Store since last year. While having the device connected to Xcode and then reaching this line of objective-C code, if([MFMailComposeViewController.canSendMail]), the following console messages are generated by iOS:
[MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
[MC] Filtering mail sheet accounts for bundle ID: com.[MY APP BUNDLE ID], source account management: 1
[MC] Result: YES
These messages are very similar to the issue here: https://forums.developer.apple.com/thread/51377 but my app does not utilize any photos. Still it seems related to the new iOS 10 checking for privacy usage descriptions.
The app involved here is a pretty simple barcode scanning app, and requires only the camera permissions wise. It has been around since iOS 7.1 and always has had a privacy usage description for the camera in its info.plist.
When connecting a device running iOS 9.3.5 to this same XC8 setup all works as expected.
Anyone know why this is happening for the MFMailComposeVC only with iOS 10?
Another data point is that this app links the Google Analytics iOS framework, and the Amazon AWS Congnito and SNS frameworks. But in checking none of these three utilize any APIs which would require additional privacy usage descriptions.