Swinject: Swinject crashes swiftc in Xcode 9

When building Swinject with Xcode 9, Swinject causes a segmentation fault in swiftc. I know this isn’t your fault (the compiler shouldn’t crash) but I thought I should mention it here. I’ve also filed this with Apple as rdar://32589507

To reproduce: Clone the repo as it is right now. Open Swinject.xcodeproj in Xcode 9. Build. Swiftc will have a segmentation fault and die, causing a build failure.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 16
  • Comments: 21 (6 by maintainers)

Most upvoted comments

Changing code in ObjectScope.Standard.swift fixed the issue for me:

screen shot 2017-06-07 at 2 05 40 pm

What about the compatibility of Swinject with branch ‘swift4’ and SwinjectStoryboard?

As of today:

Engineering has determined that your bug report (32589507) is a duplicate of 32618754 and will be closed.

No telling when it’ll be fixed but it looks like Swinject is handling it nicely.