LoginSignup
0
0

More than 5 years have passed since last update.

pod installでundefined method `project’ 発生

Posted at

概要

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

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0