Help us understand the problem. What is going on with this article?

Cocoapodsでリンクバージョンの警告が出た場合

More than 3 years have passed since last update.

警告

Cocoapods でインストールしたプロジェクトをビルドすると、以下の警告が消えないことがあった。

ld: warning: object file (/Users/xxx/Library/Developer/Xcode/DerivedData/Xxx-hhefmjxrjvsejsacrjohhympzhla/Build/Products/Debug-iphonesimulator/libCocoaLumberjack.a(CocoaLumberjack-dummy.o)) was built for newer iOS version (9.3) than being linked (8.0)

解消方法

配備ターゲットを 8.0 にする場合

  • Podfile の platform :ios, '8.0'
  • アプリ側のプロジェクト PROJECT > {Project} > Info タブ > Deployment Target > iOS Deployment Target を 8.0
  • アプリ側のプロジェクト TARGETS > {Project} > General タブ > Deployment Info > Deployment Target を 8.0

上記の3箇所を合わせると、警告が解消される。

Pods側の以下の2箇所は、Podfile で指定したバージョンになっていた

  • PROJECT > Pods > Info タブ > Deployment Target > iOS Deployment Target
  • PROJECT > Pods > Bild Settings タブ > Deployment > iOS Deployment Target
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away