10
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[Swift 5]iPhoneから送った画像をXcodeで使ったら警告が出た場合の解決方法「but that file does not have a valid extension.」

10
Posted at

iPhoneで撮影した画像をMacに送り、Xcodeで使おうかと思ったところ、
スクリーンショット 2019-08-19 14.59.18.png

The image set "Image" references a file "IMG_xxx.JPG", but that file does not have a valid extension.

という警告メッセージが。

検索してみると、どうやら拡張子のアルファベットが大文字なのが原因なもよう。

名前変更で拡張子を小文字に変更(この場合、JPG->jpg)することで、無事警告がなくなりました。

意外にも、今まで経験したことがなかったので備忘録がてら書き残しておきます。

参考

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?