Xcode10でSnapKitをcocoapodsでインストールすると、SnapKitのバージョン4.0.0がインストールされて、XcodeでError: 'NSLayoutAttribute' has been renamed to 'NSLayoutConstraint.Attributeなどのエラーが出でます。
SnapKitの公式GithubでもIssuesが上がっており、探ってみるとgittagの4.2.0で解決できるそうなので、PodfileでSnapKitのインストールにgitとtagを指定してインストールすることで解決できたので備忘録
Podfile
# Uncomment the next line to define a global platform for your project
platform :ios, '12.0'
target 'MyApp' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for MyApp
pod 'SnapKit', :git => 'https://github.com/SnapKit/SnapKit.git', :tag => '4.2.0'
end