2012-04-11 17 views
1

まず、何が問題の原因かわからず、デバイスのハードウェアを再起動した後でしか再現できません。その後、アプリは大丈夫です。iOSアプリは、 "setupAutoMigratingCoreDataStack"行の起動時に10秒間フリーズします。

  • 私はMagicalRecords libを使用します。
  • "[MagicalRecordHelpers setupAutoMigratingCoreDataStack]"は、 "application: didFinishLaunchingWithOptions:"の内部で呼び出されます。
  • いくつかの内部メソッド呼び出しと の後、10〜15秒間フリーズします。

これは、コンソールのログで、コールの詳細とタイミングが表示されます。私はそれが奇妙な(私のために)低レベルの呼び出しによって凍っていることに気づいただけです。

Apr 11 17:39:21 unknown MY_APP[130] <Warning>: didFinishLaunchingWithOptions: start 
Apr 11 17:39:21 unknown MY_APP[130] <Warning>: didFinishLaunchingWithOptions: DATA > migration 
Apr 11 17:39:21 unknown MY_APP[130] <Warning>: --- MR_coordinatorWithAutoMigratingSqliteStoreNamed 
Apr 11 17:39:21 unknown MY_APP[130] <Warning>: --- MR_setDefaultStoreCoordinator 
Apr 11 17:39:21 unknown MY_APP[130] <Warning>: --- MR_contextWithStoreCoordinator 
Apr 11 17:39:21 unknown MY_APP[130] <Warning>: +[NSManagedObjectContext(MagicalRecord) MR_contextWithStoreCoordinator:](0x3ed04728) Creating MOContext *** On Main Thread *** 
Apr 11 17:39:21 unknown MY_APP[130] <Warning>: +[NSManagedObjectContext(MagicalRecord) MR_contextWithStoreCoordinator:](0x3ed04728) Creating context in Context Private Queue Mode 
Apr 11 17:39:21 unknown MY_APP[130] <Warning>: --- MR_setDefaultContext 
Apr 11 17:39:21 unknown librariand[132] <Notice>: changing log level to 5 
Apr 11 17:39:22 unknown com.apple.launchd[1] <Warning>: (com.apple.ubd) Exited with code: 10 
Apr 11 17:39:22 unknown com.apple.launchd[1] <Warning>: (com.apple.ubd) Throttling respawn: Will start in 10 seconds 
> 
Apr 11 17:39:33 unknown librariand[132] <Error>: client process 130 does not have a valid com.apple.developer.ubiquity-container-identifiers entitlement 
Apr 11 17:39:33 unknown librariand[132] <Error>: error in handle_container_path_request: LibrarianErrorDomain/9/The client process does not have a valid com.apple.developer.ubiquity-container-identifiers entitlement 
Apr 11 17:39:33 unknown librariand[132] <Error>: client process 130 does not have a valid com.apple.developer.ubiquity-container-identifiers entitlement 
Apr 11 17:39:33 unknown librariand[132] <Error>: error in handle_container_path_request: LibrarianErrorDomain/9/The client process does not have a valid com.apple.developer.ubiquity-container-identifiers entitlement 
Apr 11 17:39:33 unknown MY_APP[130] <Warning>: --- setupCoreDataStackWithAutoMigratingSqliteStoreNamed END 
Apr 11 17:39:33 unknown MY_APP[130] <Warning>: didFinishLaunchingWithOptions: DATA > prefilling 
Apr 11 17:39:33 unknown MY_APP[130] <Warning>: didFinishLaunchingWithOptions: UI 
Apr 11 17:39:33 unknown librariand[132] <Warning>: items added, refreshing item updates for file://localhost/private/var/mobile/Library/Mobile%20Documents/ 
Apr 11 17:39:33 unknown MY_APP[130] <Warning>: didFinishLaunchingWithOptions: end 

ユーザーがこの問題に直面したかどうかはわかりません。しかし、もしそれが多分彼らの多くのためのスタート時にクラッシュする可能性があります。

私は問題を分析するのが難しいことを知っていますが、あなたが少なくとも関連する考えやアイディアを持っているならば、分かち合いましょう。また、詳細をお尋ねください。

ありがとうございます。

+0

はあなたのコードの代わりに、NSLogsを表示します。具体的に 'setupAutoMigratingCoreDataStack'機能。 – WrightsCS

+0

私はNSManagedDocumentを使用して同様のログが、イムを追加し、あなたが今までだったものを見つけました問題? –

答えて

0

iCloudが初期化しようとしているようです。私はこれが問題だと聞きましたが、AppleはNSFileManagerのURLForUbiquityContainerIdentifier:を呼び出すことを提案しています。これは、その方法のカバーの下で起こっていることですが、方法はまた、いくつかの時点で窒息しているようです... NSManagedObjectContextカテゴリメソッドMR_observeiCloudChangesInCoordinator以外で何をするかわからない場合は、 は、それが最も可能性が高い今のあなたのソリューションです...をisICloudEnabled :(

関連する問題