Addresses https://github.com/CocoaPods/CocoaPods/commit/0c80af37f1fec0009ad63277309afa47ad22595f#commitcomment-7718723.