After I installed XCode 6 GM, application, compiled by it started to return nil at Metal Framework device.newDefaultLibrary() call. What's the problem?
Update your device to iOS 8 GM and it will stop failing.