質問

私のアプリケーションは、Xcode 経由で起動した場合は 3.0 デバイスでも 3.1 デバイスでも正常に動作しますが、iTunes 経由でインストールした場合に 3.1 デバイスで実行すると起動時にクラッシュします。クラッシュ ログは残されませんが、これがコンソールに表示されます。

Thu Oct  1 19:33:36 unknown mobile_installationd[329] <Error>: 00808e00 install_embedded_profile: Skipping the installation of the embedded profile
Thu Oct  1 19:33:37 unknown SpringBoard[24] <Warning>: Reloading and rendering all application icons.
Thu Oct  1 19:33:41 unknown com.apple.debugserver-43[342] <Warning>: debugserver-43 for armv6 Copyright (c) 2007-2009 Apple, Inc.  All Rights Reserved.
Thu Oct  1 19:33:41 unknown com.apple.debugserver-43[342] <Warning>: Connecting to com.apple.debugserver service...
Thu Oct  1 19:33:41 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.companyname.AppName[0x60c]) Spawned and waiting for the debugger to attach before continuing...
Thu Oct  1 19:33:42 unknown kernel[0] <Debug>: launchd[343] Builtin profile: container (seatbelt)
Thu Oct  1 19:33:42 unknown kernel[0] <Debug>: launchd[343] Container: /private/var/mobile/Applications/291BFBE4-F5DC-494D-B7E5-81BED01E508B (seatbelt)
Thu Oct  1 19:33:42 unknown com.apple.debugserver-43[342] <Warning>: 1 [0156/0903]: error: ::task_for_pid ( target_tport = 0x0103, pid = 343, task => 0x0000 ) 0x000001f5/0x000001f5 0x000001f5/0x000001f5 err = (os/kern) failure (0x00000005)
Thu Oct  1 19:33:42 unknown com.apple.debugserver-43[342] <Error>: error: MachTask::StartExceptionThread (): task invalid, exception thread start failed.
Thu Oct  1 19:33:42 unknown com.apple.debugserver-43[342] <Warning>: 2 [0156/0903]: error: ::task_for_pid ( target_tport = 0x0103, pid = 343, task => 0x0000 ) 0x000001f5/0x000001f5 0x000001f5/0x000001f5 err = (os/kern) failure (0x00000005)
Thu Oct  1 19:33:42 unknown com.apple.debugserver-43[342] <Warning>: 3 [0156/0903]: RNBRunLoopLaunchInferior DNBProcessLaunch() returned error: 'DRHT'
Thu Oct  1 19:33:42 unknown com.apple.debugserver-43[342] <Warning>: error: failed to launch process (null): failed to get the task for process 343
Thu Oct  1 19:33:42 unknown com.apple.debugserver-43[342] <Warning>: 4 [0156/1603]: error: ::read ( 7, 0x28091c, 1024 ) => -1 err = Bad file descriptor (0x00000009)
Thu Oct  1 19:33:42 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.companyname.AppName[0x60c]) Bug: launchd_core_logic.c:2649 (23909):10
Thu Oct  1 19:33:42 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.companyname.AppName[0x60c]) Working around 5020256. Assuming the job crashed.
Thu Oct  1 19:33:42 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.companyname.AppName[0x60c]) Job appears to have crashed: Segmentation fault
Thu Oct  1 19:33:42 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.companyname.AppName[0x60c]) Throttling respawn: Will start in 2147483647 seconds
Thu Oct  1 19:33:42 unknown SpringBoard[24] <Warning>: Application 'AppName' exited abnormally with signal 11: Segmentation fault
Thu Oct  1 19:34:42 unknown SpringBoard[24] <Notice>: MultitouchHID(208ba0) uilock state: 0 -> 1

アプリケーションには、 Default.png ファイルを開くと、それが一瞬表示されますが、これは SpringBoard/launchd/whatnot によってロードされる可能性があるため、実際に実行しているという兆候ではないと思います。

同じボックス上に 2 つ目のプロジェクトを作成し、同じ資格情報と証明書を使用してビルドしました。問題なくビルドされ、iTunes で実行されます。

役に立ちましたか?

解決

ビルドを生のまま入れていました .app ファイルは Dropbox にありますが、 codesign -vvvv AppName.app Dropbox の私の側にあるコピーで動作しましたが、テスターに​​届くまでに何らかの理由で変更されたようです。認証に失敗し、アプリケーションの起動が拒否されました。

このブログ投稿 これが原因であることを発見するのに役立ちました。 これです 解決策の発見に役立ちました (アプリを圧縮する 使ってアップ zip MyApp.zip -r -y MyApp.app).

他のヒント

あなたがロード時に実行コードをコメントアウトすることにより、問題点を明確にしてください、そして、あなたのアプリが、少なくともそのメインウィンドウをロードしているかどうかを確認します。その後、徐々にコメントを解除コード、およびご初期化された変数(デバッガを使用して、あなたの問題は発生しませ作るので、私はのNSLogはOKだと思います)の値をログに記録するのNSLog文を使用しています。あなたが先行、すべてをロードするためにあまりにも多くの時間を取ることによって、そのアプリのクラッシュを参照してください場合は、専用の背景1を起動して、メインスレッドオフ重い初期化を維持しようとします。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top