LoginSignup
12
4

More than 5 years have passed since last update.

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

Posted at

警告

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
12
4
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
12
4