UIDocumentInteractionController "invalid scheme (null)" UIDocumentInteractionController "invalid scheme (null)" ios ios

UIDocumentInteractionController "invalid scheme (null)"


Try to use

// objCfile = [NSURL fileURLWithPath:filePath];// swiftfile = URL.init(fileURLWithPath: filePath)

instead of

//objCfile = [NSURL URLWithString:filePath];// swiftfile = URL.init(string: filePath)