Could not attach an image file to Messages app only on iPhone XS Max

Originator:rockname0829
Number:rdar://45361089 Date Originated:October 18 2018, 12:36 PM
Status:Open Resolved:
Product:iPhone XS Max Product Version:iOS 12.0.1 / Xcode10.0
Classification:iOS + SDK | Messages Reproducible:Always
 
Summary:
One day, I found an image couldn't be attached to Messages app only on iPhone XS Max.

When I checked the boolean value returned from `MFMessageComposeViewController.isSupportedAttachmentUTI("public.image")` on XS Max, it was just `false` whereas other devices showed true.

Could you tell me if this is a kind of specification or bug?

Steps to Reproduce:
Just to attach an image on XS Max as follows.

```
MFMessageComposeViewController().addAttachmentData(data, typeIdentifier: "public.image", filename: "sample.png")
```

Expected Results:
I can attach an image to Messages app like other devices.

Actual Results:
I cannot attach an image to Messages app only on XS Max.

Version/Build:
iOS 12.0.1 / Xcode10.0

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!