1

OS の 3.1.3 バージョンでアプリを正常に実行している 3.1 xcode プロジェクトがあります。このアプリを iPhone 3G (IOS 4 を実行していない) でテストしています。

XCode プロジェクトとファイルをコピーし、最新の XCode 3.2.4 と 4.1 SDK をダウンロードしました。シミュレーターを介してアプリケーションを実行すると、アプリケーションが表示される代わりに空白になります。NSLog ステートメントを介して、実際には initWithFrame() および viewDidLoad() メソッドに到達していることがわかりますが、画像が正しく読み込まれていないようです。ファイルをxcodeプロジェクトにコピーして、参照を更新できるようにしました。また、SDK の 4.0 と 4.1 を、ハードウェアで iphone 4 と iphone シミュレーターと共に使用してみました。

system.log からいくつかのエラーが表示されます。

Sep 20 21:59:01 s-macbook-pro-17 [0x0-0x18018].com.apple.Xcode[484]: Xcode(484,0x7fff70216c20) malloc: reference count underflow for 0x2019c0a40, break on auto_refcount_underflow_error to debug.
Sep 20 21:59:01 s-macbook-pro-17 Xcode[484]: Xcode(484,0x7fff70216c20) malloc: reference count underflow for 0x2019c0a40, break on auto_refcount_underflow_error to debug.
Sep 20 21:59:03 s-macbook-pro-17 com.apple.launchd.peruser.502[127] (com.apple.iPhoneSimulator:com.apple.managedconfiguration.profiled): Bug: launchd_core_logic.c:4598 (24108):2
Sep 20 21:59:03 s-macbook-pro-17 com.apple.launchd.peruser.502[127] (com.apple.iPhoneSimulator:com.apple.managedconfiguration.profiled): Path monitoring failed on "/Users/m/Library/Application Support/iPhone Simulator/4.1/Library/ConfigurationProfiles/profiledRunning": No such file or directory
Sep 20 21:59:03 s-macbook-pro-17 com.apple.launchd.peruser.502[127] (com.apple.iPhoneSimulator:com.apple.managedconfiguration.profiled): Bug: launchd_core_logic.c:4598 (24108):2
Sep 20 21:59:03 s-macbook-pro-17 com.apple.launchd.peruser.502[127] (com.apple.iPhoneSimulator:com.apple.managedconfiguration.profiled): Path monitoring failed on "/Users/m/Library/Application Support/iPhone Simulator/4.1/Library/ConfigurationProfiles/MCOutstandingNagComputation": No such file or directory
Sep 20 21:59:03 s-macbook-pro-17 com.apple.launchd.peruser.502[127] (com.apple.iPhoneSimulator:com.apple.managedconfiguration.mdmd): Bug: launchd_core_logic.c:4598 (24108):2
Sep 20 21:59:03 s-macbook-pro-17 com.apple.launchd.peruser.502[127] (com.apple.iPhoneSimulator:com.apple.managedconfiguration.mdmd): Path monitoring failed on "/Users/m/Library/Application Support/iPhone Simulator/4.1/Library/ConfigurationProfiles/MDMOutstandingActivities.plist": No such file or directory
Sep 20 21:59:03 s-macbook-pro-17 vot[929]: ******** AX INSPECTOR MODE ************ 
Sep 20 21:59:03 s-macbook-pro-17 vot[929]: **** Running VoiceOver Lite ****
Sep 20 21:59:06 s-macbook-pro-17 app[935]: MainView alloc
Sep 20 21:59:06 s-macbook-pro-17 app[935]: MainView alloc complete
Sep 20 21:59:06 s-macbook-pro-17 app[935]: loadView complete
4

2 に答える 2

0

私のアプリでも同様の状況ですが、私の問題は、IB の MainWindow.xib で、ファイル所有者のデリゲートがアプリのデリゲートにリンクされなくなったことです (IB でファイル所有者を右クリックし、デリゲート ボタンを確認します)。iphone/ipod用とipad用の2つの異なるMainWindow xibファイルがあるため、Ipadシミュレーターで作業していました。

これが、起動時に空白の画面が発生する人の助けになることを願っています.

于 2010-12-21T12:47:09.083 に答える
0

インターフェイスビルダーを介して、メインウィンドウに「起動時に表示」プロパティを設定しました。XCode 3.1を使用している場合、他のMacbook Proのxcodeプロジェクトにはこのセットがありませんでした。

私を助けてくれたこのスレッドに出くわしました:

iPhone SDK4.0 および xcode 3.2.3 の問題

于 2010-09-28T14:39:44.687 に答える