I am using the MicrosoftRightsManagement.framework in iOS, and cannot open protected .docx files. Is this a supported file type? Is there someplace I need to specify the file type I am using other than just calling the MSProtectedData protectedDataWithProtectedFile:userId:authenticationCallback:consentCallback:options:completionBlock: method with the file path parameter?

Here are the logs:

2018-07-10 16:08:31.289786-0700 RMSGD[93612:3995385] VERBOSE: main thread: +[MSProtectedData protectedDataWithProtectedFile:userId:authenticationCallback:consentCallback:options:completionBlock:] started. [line 46]

2018-07-10 16:08:31.290624-0700 RMSGD[93612:3995385] VERBOSE: main thread: -[RmsFlowFactory createFlowOfType:flavor:] started. [line 36]

2018-07-10 16:08:31.291201-0700 RMSGD[93612:3995385] VERBOSE: main thread: +[MSProtectedData serializedPolicyWithContentsOfFile:consumptionPFileFlow:completionBlock:] started. [line 97]

2018-07-10 16:08:31.291708-0700 RMSGD[93612:3995385] VERBOSE: main thread: Failed in checkPreamble, preamble does not match expected value

2018-07-10 16:08:31.292292-0700 RMSGD[93612:3995385] VERBOSE: main thread: The check for preamble failed, will treat the file as non protected

2018-07-10 16:08:31.292854-0700 RMSGD[93612:3995385] ERROR: main thread: An error occurred: The user supplied a non protected file

2018-07-10 16:08:31.293460-0700 RMSGD[93612:3995385] ERROR: main thread: Fatal error, failed to create Pfile.