警告
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