0
0

pod update で target overrides the `EXCLUDED_ARCHS[sdk=iphonesimulator*]`

Posted at

背景

CocoaPods を使用しているプロジェクトで pod update を行った際に以下のエラーが発生しました。

[!] The `MyApp [Debug]` target overrides the `EXCLUDED_ARCHS[sdk=iphonesimulator*]` build setting defined in `Pods/Target Support Files/Pods-MyApp/Pods-MyApp.debug.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.

対応

EXCLUDED_ARCHS に設定されている値の前に $(inherited) を追加することで解決しました。

スクリーンショット 2024-08-29 23.31.33.png

このメッセージは、MyApp [Debug] ターゲットに設定されている EXCLUDED_ARCHS が、CocoaPods が自動的に生成したビルド設定を上書きしていることを示しています。

$(inherited) を追加することにより、CocoaPods が設定した値を引き継いだ上で、ターゲットに独自の設定を追加することができます。

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