Xcode Playgrounds should persist Swift language version in the `.playground` package and offer to migrate older versions

Originator:joshparnham
Number:rdar://38538044 Date Originated:March 16 2018, 8:43 PM
Status:Open Resolved:
Product:iOS + SDK Product Version:
Classification: Reproducible:
 
Area:
Xcode

Summary:
Currently the Xcode .playground file doesn't contain any information about the version of Swift used within it, and thus can't migrate source files to a newer version of the Swift language that have source-breaking changes.

Steps to Reproduce:
1. Create a playground using an older version of Swift that contains source-breaking changes compared with the current version of Swift
2. Open the playground in the latest version of Xcode

Expected Results:
Xcode should offer to migrate the source files to the latest version of the Swift language.

Actual Results:
Xcode doesn't offer to migrate the Swift files.

Version/Build:
Version 9.2 (9C40b)

Configuration:
macOS 10.13.3 (17D102)

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!