2017年10月15日日曜日

Could not load the "imageName.png" image referenced from a nib in the bundle with identifier ...

Could not load the "imageName.png" image referenced from a nib in the bundle with identifier ...

pngをプロヘクトに追加するとInterfaceBuilderではUIにimageを設定できるようになるが、それだけではビルド時にbundleにコピーされないため、実行時にリソースが見つけられず発生する。

プロジェクトビュー > Target > BuildPhases > Copy Bundle Resources
エラーが発生している画像ファイルを追加する。

0 件のコメント: