Xcode 6 bug fixes

Xcode 6 support restored
Fixed modal freeze after pods installation
Fixed crash when Xcode have no key window.