LoginSignup
2
7

More than 3 years have passed since last update.

Xcode外で追加したXcodeプロジェクト内のファイルをXcodeに認識させる

Posted at

Xcode外で追加したファイルはXcodeに認識されないことがよくあります。

例えば、

  • Firebaseに必要なGoogleService-Info.plistをFinderで追加した
  • 画像ファイルをFinderで追加した
  • xcconfigを外部エディタで作成した

など・・・。

そのような場合は、Xcode でドラッグ&ドロップして追加することで問題なく認識されます。
このとき、Copy items if neededにはチェックをいてておきましょう。
(その場所に同じファイルがなければコピーして作ってくれます。もしない場合にチェックしていなければ、選択したものを直接参照するようになります)
image.png

たまーにGoogleService-Info.plistをXcodeが認識してなくてFirebaseがエラー※1を吐いちゃってるけど、
なぜエラーがおきてるかわからないという人がよくいたので記事にしてみました。

※1: Could not locate configuration file: ‘GoogleService-Info.plist’.

2
7
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
2
7