beltex / SystemKit

macOS system library in Swift
MIT License
351 stars 65 forks source link

System.uname() - Swift 2.0 - Regression - Runtime crash using utsname() struct #18

Open beltex opened 9 years ago

beltex commented 9 years ago

Can't see a way to get around this bug in pure Swift. Anything besides simply initing the struct seems to cause a crash at runtime. This affects the System.uname() method. Only option I can see for now is to call a C wrapper function, but I don't think its worth it. It will likely be fixed soon, as we should be getting new Xcode beta's at the usual 2 week cycle rate for the next while.

Ref: https://github.com/practicalswift/swift-compiler-crashes/pull/76

beltex commented 9 years ago

Looks like this has been fixed in Xcode 7 Beta 4! :)