INIntent.setImage(_:forParameterNamed:) appears to have changed in beta 4

Originator:me
Number:rdar://42361916 Date Originated:18-Jul-2018 06:20 PM
Status:Closed Resolved:
Product:Developer Tools Product Version:Version 10.0 beta 4 (10L213o)
Classification:Other Bug Reproducible:Always
 
Summary:
INIntent.setImage(_:forParameterNamed:) appears to have changed in beta 4 to require a KeyPath as the second parameter. This is causing existing code (including the Soup Chef sample code) to fail to compile.

This change appears to be undocumented.

Steps to Reproduce:
1. Download Soup Chef sample code (https://developer.apple.com/documentation/sirikit/accelerating_app_interactions_with_shortcuts)
2. attempt to compile it for simulator
3. build error!

Expected Results:
It compiles

Actual Results:
It doesn’t

Version:
Version 10.0 beta 4 (10L213o)

Notes:
Not attaching a sample app since the sample code matches my actual experience. Attached the errors section of my build log.

Comments

Apple Developer Relations - July 20 2018, 6:41 AM

Engineering has provided the following information regarding this issue: This change was intentional, but we’ll take a look at updating documentation/sample code. Thanks for the report.

ETA for documentation update

So, when can we expect the updated documentation? It is beta 5 already.

By jasveer.singh at Aug. 13, 2018, 3:17 p.m. (reply...)

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!