0

Xcode 4.5 と iOS シミュレータ バージョン 6* を使用しています。Xcode プロジェクトに画像を追加しましたが、iPhone をシミュレートすると、画像が表示されません。syslog に次のように表示されます。

SpringBoard[33587] <Error>: CGContextDrawImage: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context  and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.

Aug 23 15:04:18 new-host-22.home SpringBoard[28968] <Warning>: No file exists for default image of name starting_image_i5_retina
Aug 23 15:04:20 new-host-22.home[28982] <Notice>: BUG in libdispatch: 12E55 - 866 - 0x2
Aug 23 15:04:20 new-host-22.home[28982] <Notice>: BUG in libdispatch client: kevent[EVFILT_VNODE] add: "Bad file 

何が起こっているのかわかりません。アプリの削除、クリーンビルドなどを試しました。

4

1 に答える 1

2

ターゲットの下のビルド フェーズに移動し、[バンドル リソースのコピー] に移動し、プラス ボタンをクリックしてファイルを追加し、ビルドをクリーンアップし、アプリを削除して xcode で実行すると、ファイルがそこにあるはずです。

于 2013-08-24T08:05:13.393 に答える