New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SR-5191] Abort 6 when Protocols Inherits from Another Protocol #47767
Comments
@swift-ci create |
This is a fun one. When downloading the demo project and building it with Xcode 9 beta, I get the Abort Trap error. Now:
Stale cache somewhere? |
BTW, even after cleaning the build folder the project still builds without issue. The only way to reproduce is to again download the demo project (or unzip it anew) |
Comment by Matt Thomas (JIRA) Oh weird. I’m seeing the exact same thing. I even tried deleting the derived data and I was able to build after toggling off the target membership |
Comment by Matt Thomas (JIRA) Just to follow up, I tested this again with Xcode 9 beta 2 and it’s still exhibiting the same problem. |
I suspect the issue is due to the order of files. There have been a few other issues like this. |
Seems to have been fixed by #10707 This probably won't be in beta 3 but should appear in Xcode 9 before GM. |
Comment by Matt Thomas (JIRA) Great news, want me to close this issue once I verify it’s working as expected? |
Comment by Matt Thomas (JIRA) Weird, I thought the issue was fixed, but I’m still seeing the issue in Beta 4 and the recent nightly builds. |
Comment by Bill Meltsner (JIRA) Can confirm this issue is still present in Beta 5. |
Comment by Matt Thomas (JIRA) Same here, bmelts (JIRA User). With both Beta 5 and the 8/4/17 Swift 4 toolchain |
Sorry, this was fixed by the commit I didn't cherry-pick to the 4.0 branch because it was risky (and didn't realize). Seeing that multiple people are running into this may change that calculation... |
Comment by Bill Meltsner (JIRA) Yeah, it's frustrating for my team because it's happening in an autogenerated Xcode project (CocoaPods) – the workaround of changing the compilation order of the problem files works, but because the project file is regularly regenerated, it's challenging to ensure that happens every time. |
Comment by Matt Thomas (JIRA) bmelts (JIRA User) yes, our project also uses CocoaPods and each `pod install` breaks compiling (one of these days we’ll migrate to Swift Package Manager). If this can’t be fixed by GM, we might need to figure out a better work-around since we’re adding iOS 11 features. |
Comment by Bill Meltsner (JIRA) Still present in Beta 6. |
Okay, fixed for real in #11661 Can't promise when that'll make it into an Xcode release, though. |
Attachment: Download
Environment
Xcode 9 Beta 1 Building in SWIFT_VERSION 3.2
Xcode 8.3.2 with Xcode 4 Toolchain downloaded 6/6/2017
Additional Detail from JIRA
md5: 5baa9ab77112f6c5b2f5a0cb6c32d3fc
Issue Description:
With the Xcode 8.3.2 Swift 4 toolchain (built 6/5/2017) and Xcode 9 Beta 1 (with the project in
SWIFT_VERSION: 3.2
), I’m getting the following error attempting to build the attached project:It seems like I can fix this crash if my protocol doesn’t conform to another protocol:
But I want this conformance in place. Crash Logs
The text was updated successfully, but these errors were encountered: