LoginSignup
0
0

More than 5 years have passed since last update.

Cocoapodsをアップデート(1.2.0)したら、link_withでエラー

Posted at

エラー

Cocoapodsを1.2.0にアップデート後にライブラリがアップデートしているか確認したらlink_withでエラーになった

$ pod outdated
link_with 'xxxxx', 'xxxxTests'

原因

それまでPodfileにターゲットの指定で
link_with 'xxxxx', 'xxxxTests'
と描いていたが、
1.0.0から書き方が変わった

対応

https://guides.cocoapods.org/using/the-podfile.html
を参考に「abstract_target」を使用する

platform :ios, '8.1'
inhibit_all_warnings!

abstract_target 'BasePods' do
    ## Networking
    pod 'AFNetworking', '~> 2.6'

    # Twitter
    pod 'TwitterKit', '~> 1.9'
    pod 'Fabric'

    # 実際のターゲット
    target 'TargetNameOne'
    target 'TargetNameTwo'
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