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
Swinject crashes swiftc in Xcode 9 #261
Comments
@atomicbird, thank you for the radar link, sorry for autocomplete spelling |
@atomicbird probably meant for you :) |
A redacted version is at http://www.openradar.me/radar?id=6150666519052288 (the original contained details of my project that I can't put on OpenRadar). |
Thanks everyone for investigating the issue!!! Please use Carthage:
CocoaPods:
|
Hi everyone, |
@andrei-kuzma, please take it easy. I just wondered which one in I think we'll support Swift 3 and 4 in |
@yjm607 Can you create a PR with your solution? It will solve problems for the current master branch. |
@kerry Sure will do. It will be my first PR to a pubic project.. Exciting! |
Hmm I just realized that I don't have permission to commit to the project... looks like /swift4 branch already has my changes, but if someone else who has permission can open a PR to master that would be great. |
@yjm607 You definitely won't be able to commit to the project. You will have to create a pull request. Create a fork. Make changes there. Then create a pull request from your fork to the main repo |
@kerry Maybe I'm doing something wrong here... I forked from master, made changes, and tried to push to remote. I get the following error.. |
@yjm607 because you are pushing onto the main repo instead of your fork. See the url "https://github.com/Swinject/Swinject/", this should have been "https://github.com/yjm607/Swinject" |
As of today:
No telling when it'll be fixed but it looks like Swinject is handling it nicely. |
What about the compatibility of Swinject with branch 'swift4' and SwinjectStoryboard? |
Segmentation fault happens when using SwinjectStoryboard and Swinject (swift4 branch). Have anybody investigated that? That happens if we pass the controller as protocol (ProjectsListViewInputProtocol).
|
Is it possible to use SwinjectAutoregistration and satisfy dependencies while using the swift4 branch? EDIT |
I confirmed Xcode 9 beta 4 resolved the original issue. If you use Xcode 9 beta 4 or later, you can use |
Swinject 2.1.1 supports both Xcode 8.3 and 9 beta, and both Swift 3 and 4. If you use Xcode beta, make sure it is beta 4 or later. |
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://32589507To 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.The text was updated successfully, but these errors were encountered: