概要
Cocoapodsのpod install
をするとundefined method project for #<Pod::Installer:xxx>
のエラーが発生する。
環境
- Cocoapods 0.38.2
原因
0.38.0からGemfile中のpost_install
内で使うinstaller_representation.project
は廃止された。
対策
代わりにinstaller_representation.pods_project
を使う。
例:
post_install do |installer_representation|
installer_representation.pods_project.targets.each do |target|
end
end