MCMErrorDomain errors are without userInfo

Originator:pzabelin
Number:rdar://FB7714330 Date Originated:2020-05-20
Status:Open Resolved:No
Product:iOS Simulator Product Version:13.5
Classification:Incorrect/Unexpected Behavior Reproducible:always
 
When simulator fails to launch an app with MCMErrorDomain the error is missing user info.

Expecting detailed localized description, such as: Failed to create container dir at URL
Actual error: The operation couldn’t be completed. 
which indicates the Error userInfo was nil

Steps to reproduce:
1. Run Application Test on xcodebuild using a simulator
2. Launch the same test on the same simulator in Xcode
3. Observe alert showing The operation couldn’t be completed. (MCMErrorDomain error 44.)

Expecting error details in the alert and test log.

Expecting error details as described in MobileContainerManager.framework:

Failed to remove system container base dir %@: %@
Failed to move %@ to %@: %@
Failed to create %@: %@
Failed to move file in restored system container %@:%@ to destination %@: %@
Failed to remove destination %@:%@: %@
Failed to enumerate contents of restored system container %@ at %@: %@
Failed to create system container %@: %llu
Failed to create container identity %@: %llu
Failed to move shared system containers to inprogress: %@
Failed to move system containers to inprogress: %@
Failed to remove existing inprogress system containers: %@
Failed to remove container mapping of [%@], class: %llu
Failed to remove container mapping of %@, %llu
Failed to set container mapping of %@, %llu
Failed to remove from cache user: %@, id: %@, class: %llu, transient: %d : %@
Failed to set container mapping during create/lookup operation of %@, %llu
Failed to retrieve realpath for suspicious path %@
Failed to retrieve realpath for base path %@ 
Failed to retrieve depth of %@
Failed to realpath %s : %s at %s
Failed to get path to url %@
Failed to determine if %@ exists: %s
Failed to set system container ACL at %@: %@
Failed to get items at URL%@ : %@
Failed to create temp dir at path %s : %s
Failed to remove move source after copy at %@ : %@

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!