iMessage app doesn't compile on iOS 11 with 10.3 deployment target

Originator:mark.adams86
Number:rdar://32769093 Date Originated:6/14/17
Status:Open Resolved:
Product:Messages Framework Product Version:iOS 11.0 (15A5278f)
Classification:Bug Reproducible:Always
 
Summary:
Our existing iMessage app does not build on Xcode 9/iOS 11 (targeting 10.3) because our MSMessagesAppViewController subclass invokes methods like `dismiss()` that used to be defined on MSMessagesAppViewController but are now on the MSMessagesAppCompactOrExpandedPresentation protocol which is only available on iOS 11.

Steps to Reproduce:
1. Open the attached sample project.
2. Ensure the Messages app extension scheme is selected.
3. Build the product.

Expected Results:
The application should compile when using non-deprecated methods that were available in iOS 10

Observed Results:
The application does not compile because the `dismiss()` method is defined in a protocol that is only available on iOS 11.

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!