Fix for CocoaPods#1936

I believe this fixes https://github.com/CocoaPods/CocoaPods/issues/1936