Circular Protocol References bug
| Originator: | GSaccardo | ||
| Number: | rdar://18061131 | Date Originated: | Aug 19, 2014 |
| Status: | Open | Resolved: | |
| Product: | Xcode | Product Version: | Xcode 6 beta-6 |
| Classification: | Bug | Reproducible: | Always |
Create two protocols (in the example, "FirstProtocol" and "SecondProtocol"); in both protocols, create a reference to the other one. In the example, "FirstProtocol" has a delegate of type "SecondProtocol?", "SecondProtocol" has a method that return an object of type "First Protocol". The HUD with the message "SourceKitService Terminated. Editor functionality temporarily limited." appears. The project will not compile anymore: <unknown>:0: error: unable to execute command: Segmentation fault: 11 <unknown>:0: error: swift frontend command failed due to signal (use -v to see invocation) Command /Applications/Xcode6-Beta6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 254 Steps to Reproduce: 1. Create a new project with Xcode 6 beta-6 2. Select "Swift" as the language 3. Create two protocols 4. In each protocol, create a reference to the other one Expected Results: Xcode should handle this case without problems Actual Results: Xcode terminates the SourceKitService and the project will not compile anymore.
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!