Just updated to Xcode 8.1 and a large project I've been working on all year is now having terrible compile errors that I don't have any idea what to do with. Please note that under Xcode 8.0 this project was compiling just fine.
When I compile now, I get:
Command failed due to signal: Segmentation fault: 11
This pops up for 8 different source files, and when I get into the logs, I see:
1. While resolving type Region at [/Users/knassar/dev/oarc/OArcDOM/OArcDOM/Region.swift:107:11 - line:107:11] RangeText="R"
2. While resolving type Parametric at [/Users/knassar/dev/oarc/OArcDOM/OArcDOM/Region.swift:12:22 - line:12:22] RangeText="P"
3. While type-checking 'init' at /Users/knassar/dev/oarc/OArcDOM/OArcDOM/Element.swift:56:12
4. While type-checking 'init' at /Users/knassar/dev/oarc/OArcDOM/OArcDOM/Element.swift:103:12
5. While type-checking 'init' at /Users/knassar/dev/oarc/OArcDOM/OArcDOM/Element.swift:106:21
6. While resolving type Parent at [/Users/knassar/dev/oarc/OArcDOM/OArcDOM/Element.swift:106:46 - line:106:46] RangeText="P"
7. While type-checking 'init' at /Users/knassar/dev/oarc/OArcDOM/OArcDOM/Parametric.swift:68:12
8. While type-checking 'init' at /Users/knassar/dev/oarc/OArcDOM/OArcDOM/Parametric.swift:77:21
It's worth noting that of the 8 source files which generate this error, most are unrelated to the class graph described in that trace.
However, I've found that if I go to the init method at Parametric:77:
public required init(json: JSON, parent: Parent) {
super.init(json: json, parent: parent)
}
And comment this function out, the segmentation faults go away. Yay!
However, of course I then get the following error:
/Users/knassar/dev/oarc/OArcDOM/OArcDOM/Parametric.swift:76:1: 'required' initializer 'init(json:parent:)'
must be provided by subclass of 'Element'
How can I win here? And what has changed between Swift 3.0 (Xcode 8.0) and Swift 3.0.1 (Xcode 8.1) ??
Please help!!!