Work based on: https://assembly.com/helpful/bounties/871

Initially I wanted cocoapods to work again, turned out some more work was needed.