1つのプロジェクトに複数のターゲットを作成している時に起きる問題のようで引っかかったのでメモ。
cocoaPodsを導入して、podsで導入したフレームワークのヘッダーファイルが読めずに、
19:9: fatal error: ‘RestKit/RestKit.h’ file not found
のようなエラーが出ました。
ヘッダーファイルが見つからないんですね。”pod install”をした時に出たエラーを見て、
[!] The target
******** [Debug]
overrides theHEADER_SEARCH_PATHS
build setting defined inPods/Pods.xcconfig'.
$(inherited)` flag, or
- Use the
– Remove the build settings from the target.
Build Setting から、ヘッダーパスの継承をしたけどうまくいかず。
Google で検索したら、
objective c – iOS – Build fails with CocoaPods cannot find header files – Stack Overflow
こんなのが見つかって、ProjectのConfigurationのConfigファイルを”Pods”に変更したらうまくいきました。
これが最初のターゲットしか設定されないみたい。
でもうまく入って良かった良かった。
Comments
Powered by Facebook Comments