Xcode 10.0 (10A255) segmentation fault with protocols

Originator:jaherhi
Number:rdar://42470055 Date Originated:July 22 2018, 12:15 AM
Status:Closed Resolved:Yes
Product:Developer Tools Product Version:10.0 (10A255)
Classification:N/A Reproducible:Always
 
Summary:
When defining a protocol with a static property and extending a class that already has a property with that name, Xcode fails with a segmentation fault error and an internal error occurred message, if the static property is defined with a get and set in the protocol.

Steps to Reproduce:
1. Download sample project
2. Open file Protocols.swift
3. Modify declaration of property openSettingsURLString from "static var openSettingsURLString: String { get }" to "static var openSettingsURLString: String { get set }"

Expected Results:
The project shows a specific error informing that the extension doesn't conform to the protocol.

Actual Results:
Xcode shows a message error: "An  internal error occurred. Source editor functionality is limited. Attempting to restore..."
The project shows a segmentation fault: 11 error

Version/Build
Xcode 10.0 (10A255)

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!