devicekit / DeviceKit

DeviceKit is a value-type replacement of UIDevice.
MIT License
4.4k stars 425 forks source link

Old version is installed from CocoaPods #331

Closed SergejLogis closed 1 year ago

SergejLogis commented 1 year ago

Both pod 'DeviceKit', '~> 4.0' and pod 'DeviceKit' install the older 4.6.1 version.

The only way to install the latest 4.7.0 version is to specify git directly: pod 'DeviceKit', :git => 'https://github.com/devicekit/DeviceKit'

Zandor300 commented 1 year ago

@SergejLogis If you run pod install --repo-update, will it install 4.8.0 then? (4.8.0 is latest version now)

SergejLogis commented 1 year ago

@SergejLogis If you run pod install --repo-update, will it install 4.8.0 then? (4.8.0 is latest version now)

Thanks, @Zandor300! Now it works 🥳

P.S. I needed to follow the steps in StackOverflow to make it work. Some time ago something happened to CocoaPods, and pod update or pod install --repo-update stopped from working (throws exception). But StackOverflow solution helped 🤓