App install fails when "Make App MDM Managed if User Installed" enabled (AirWatch, iOS 9.3.2)

Hello,


We're seeing a behavior on all iOS 9.3.2 devices wherein they are unable to install apps from our AirWatch app Catalog if we have the setting "Make App MDM Managed if User Installed" activated for that app. For those who use other MDM solutions, this setting means that if the user installs app X from the Apple App Store, the app will still be MDM-managed if that same app is listed in the MDM app store ("Catalog" in AirWatch parlance). We see this on both supervised and un-supservised devices, and don't see the issue at all on iOS 9.3.1 and previous OS releases. The AirWatch logs are entirely useless on this one, simply saying that app installation failed and that the error code is "pending".


Wondering if anyone else has an AirWatch instance configured in this way, and if so, if you're seeing the same issue.


Thanks!

Replies

Update: more info in this post:

https://forums.developer.apple.com/thread/48331

We saw this exact same issue on a new Airwatch install and it was affecting the installing of the Airwatch inbox to iPhone 6/6S and was rectified by clearing this check box.


-Larry

@Jx4 @larryheier:

Can you check the console log of your device (using xcode or idevicesyslog or something similar) and share what mdmd log lines you see?


I work for an MDM vendor and can confirm that we are seeing a similar issue with iOS 9.3.2 for managing user-installed apps.


These console log lines show up after the user confirms managing the app in the system popup:

Jul 8 16:29:26 Mo6 mdmd[3384] <Notice>: (Note ) MC: Alert dismissed with response: Primary button selected
Jul 8 16:29:26 Mo6 mdmd[3384] <Notice>: (Note ) MDM: User accepted management of “Hipchat” 
Jul 8 16:29:26 Mo6 mdmd[3384] <Notice>: (Note ) MDM: User consented to management of app Hipchat
Jul 8 16:29:26 Mo6 mdmd[3384] <Error>: *** Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: '*** setObjectForKey: object cannot be nil (key: iTunesStoreID)' *** First throw call stack:
(0x183292db0 0x1828f7f80 0x183178494 0x1978d0918 0x182cdd4bc 0x182cdd47c 0x182ce94c0 0x182ce0f80 0x182ceb390 0x182ceb0b0
0x182ef5470 0x182ef5020)


Have filed this issue with Apple as rdar://27302689