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.
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