Запустить приложение на iPhone4 из Xcode не удается

У меня проблема при запуске моего приложения на моем iPhone из Xcode. Приложение отлично работает (на первый взгляд) на симуляторах (iPhone, iPad и т. Д.). Он также работает нормально при загрузке на iPhone4 или iPad2, только при попытке запустить приложение из XCode (версия 4.5) я получаю следующее сообщение от XCode: «Не удалось запустить» » не удалось получить задание для процесса 1024 "и единственное сообщение в окнах вывода Xcode:

error: failed to launch '/private/var/mobile/Applications/36159066-FEDB-4A26-A05D-E599F397074A/MetriScan.app' -- failed to get the task for process 1024`

На iPhone нет аварийного журнала, но консольный журнал содержит следующее (очищается перед запуском):

Oct 29 11:14:37 Bjarne mobile_house_arrest[1015] : Max open files: 125
��Oct 29 11:14:38 Bjarne installd[31] : 0x2fe93000 handle_install: Install of "/var/mobile/Media/PublicStaging/MetriScan.app" requested by mobile_installation_proxy
��Oct 29 11:14:38 Bjarne installd[31] : 0x2fe93000 MobileInstallationInstall_Server: Installing app Bjarne.Christensen.MetriScan
��Oct 29 11:14:39 Bjarne installd[31] : Oct 29 11:14:39  SecTrustEvaluate  [leaf CriticalExtensions IssuerCommonName]
��Oct 29 11:14:40 Bjarne SpringBoard[509] : Killing Bjarne.Christensen.MetriScan for termination assertion
��Oct 29 11:14:40 Bjarne com.apple.launchd[1] (UIKitApplication:Bjarne.Christensen.MetriScan[0x89b7][792]) : (UIKitApplication:Bjarne.Christensen.MetriScan[0x89b7]) Exited: Killed: 9
��Oct 29 11:14:40 Bjarne backboardd[52] : Application 'UIKitApplication:Bjarne.Christensen.MetriScan[0x89b7]' exited abnormally with signal 9: Killed: 9
��Oct 29 11:14:40 Bjarne kernel[0] : launchd[1018] Builtin profile: syncdefaultsd (sandbox)
��Oct 29 11:14:40 Bjarne installd[31] : 0x2fe93000 MobileInstallationInstall_Server: Staging: 0.43s; Waiting: 0.00s; Installation: 1.42s; LS Sync: 0.16s; Overall: 2.16s
��Oct 29 11:14:41 Bjarne installd[31] : 0x2fe93000 filter_attributes: Info.plist keys requested via MobileInstallationLookup/Browse in client Xcode (via mobile_installation_proxy) were not found in MobileInstallation's cache. Please file a bug requesting that these keys be added: {type = mutable set, count = 18,
    entries =>
        0 : {contents = "CFBundlePackageType"}
        1 : {contents = "BuildMachineOSBuild"}
        2 : {contents = "CFBundleResourceSpecification"}
        3 : {contents = "DTPlatformBuild"}
        4 : {contents = "DTCompiler"}
        5 : {contents = "CFBundleSignature"}
        6 : {contents = "DTSDKName"}
        7 : {contents = "NSBundleResolvedPath"}
        8 : {contents = "UISupportedInterfaceOrientations"}
        10 : {contents = "DTXcode"}
        13 : {contents = "CFBundleInfoDictionaryVersion"}
        16 : {contents = "CFBundleSupportedPlatforms"}
        17 : {contents = "DTXcodeBuild"}
        18 : {contents = "UIStatusBarTintParameters"}
        19 : {contents = "DTPlatformVersion"}
        20 : {contents = "DTPlatformName"}
        21 : {contents = "CFBundleDevelopmentRegion"}
        22 : {contents = "DTSDKBuild"}
    }
��Oct 29 11:14:42 Bjarne installd[31] : 0x2ffb5000 filter_attributes: Info.plist keys requested via MobileInstallationLookup/Browse in client Xcode (via mobile_installation_proxy) were not found in MobileInstallation's cache. Please file a bug requesting that these keys be added: {type = mutable set, count = 18,
    entries =>
        0 : {contents = "CFBundlePackageType"}
        1 : {contents = "BuildMachineOSBuild"}
        2 : {contents = "CFBundleResourceSpecification"}
        3 : {contents = "DTPlatformBuild"}
        4 : {contents = "DTCompiler"}
        5 : {contents = "CFBundleSignature"}
        6 : {contents = "DTSDKName"}
        7 : {contents = "NSBundleResolvedPath"}
        8 : {contents = "UISupportedInterfaceOrientations"}
        10 : {contents = "DTXcode"}
        13 : {contents = "CFBundleInfoDictionaryVersion"}
        16 : {contents = "CFBundleSupportedPlatforms"}
        17 : {contents = "DTXcodeBuild"}
        18 : {contents = "UIStatusBarTintParameters"}
        19 : {contents = "DTPlatformVersion"}
        20 : {contents = "DTPlatformName"}
        21 : {contents = "CFBundleDevelopmentRegion"}
        22 : {contents = "DTSDKBuild"}
    }
��Oct 29 11:14:42 Bjarne com.apple.debugserver-189[1022] : debugserver-189 for armv7.
��Oct 29 11:14:42 Bjarne com.apple.debugserver-189[1022] : Connecting to com.apple.debugserver service...
��Oct 29 11:14:42 Bjarne kernel[0] : lockbot[1013] Builtin profile: debugserver (sandbox)
��Oct 29 11:14:42 Bjarne com.apple.debugserver-189[1022] : Got a connection, waiting for process information for launching or attaching.
��Oct 29 11:14:46 Bjarne com.apple.launchd[1] (UIKitApplication:Bjarne.Christensen.MetriScan[0x7faa][1024]) : (UIKitApplication:Bjarne.Christensen.MetriScan[0x7faa]) Spawned and waiting for the debugger to attach before continuing...
��Oct 29 11:14:46 Bjarne amfid[1025] : Oct 29 11:14:46  SecTrustEvaluate  [leaf CriticalExtensions IssuerCommonName]
��Oct 29 11:14:47 Bjarne kernel[0] : launchd[1024] Builtin profile: container (sandbox)
��Oct 29 11:14:47 Bjarne kernel[0] : launchd[1024] Container: /private/var/mobile/Applications/36159066-FEDB-4A26-A05D-E599F397074A (sandbox)
��Oct 29 11:14:47 Bjarne com.apple.debugserver-189[1022] : 1 +0.000000 sec [03fe/0303]: error: ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
��Oct 29 11:14:47 Bjarne com.apple.debugserver-189[1022] : 2 +0.105567 sec [03fe/0303]: error: ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
��Oct 29 11:14:47 Bjarne com.apple.debugserver-189[1022] : 3 +0.101283 sec [03fe/0303]: error: ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
��Oct 29 11:14:47 Bjarne com.apple.debugserver-189[1022] : 4 +0.102423 sec [03fe/0303]: error: ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
��Oct 29 11:14:47 Bjarne com.apple.debugserver-189[1022] : 5 +0.100074 sec [03fe/0303]: error: ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
��Oct 29 11:14:47 Bjarne com.apple.debugserver-189[1022] : 6 +0.102276 sec [03fe/0303]: error: ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
��Oct 29 11:14:47 Bjarne com.apple.debugserver-189[1022] : 7 +0.104515 sec [03fe/0303]: error: ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
��Oct 29 11:14:48 Bjarne com.apple.debugserver-189[1022] : 8 +0.118398 sec [03fe/0303]: error: ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
��Oct 29 11:14:48 Bjarne com.apple.debugserver-189[1022] : 9 +0.117044 sec [03fe/0303]: error: ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
��Oct 29 11:14:48 Bjarne com.apple.debugserver-189[1022] : 10 +0.100288 sec [03fe/0303]: error: ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
��Oct 29 11:14:48 Bjarne com.apple.debugserver-189[1022] : error: MachTask::StartExceptionThread (): task invalid, exception thread start failed.
��Oct 29 11:14:48 Bjarne librariand[96] : client process 1024 does not have a valid com.apple.developer.ubiquity-container-identifiers entitlement
��Oct 29 11:14:48 Bjarne com.apple.debugserver-189[1022] : 11 +0.477484 sec [03fe/0303]: error: ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
��Oct 29 11:14:48 Bjarne com.apple.debugserver-189[1022] : 12 +0.150354 sec [03fe/0303]: error: ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
��Oct 29 11:14:49 Bjarne com.apple.debugserver-189[1022] : 13 +0.291521 sec [03fe/0303]: error: ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
��Oct 29 11:14:49 Bjarne com.apple.debugserver-189[1022] : 14 +0.114934 sec [03fe/0303]: error: ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
��Oct 29 11:14:49 Bjarne com.apple.debugserver-189[1022] : 15 +0.168568 sec [03fe/0303]: error: ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
��Oct 29 11:14:49 Bjarne com.apple.debugserver-189[1022] : 16 +0.123600 sec [03fe/0303]: error: ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
��Oct 29 11:14:49 Bjarne com.apple.debugserver-189[1022] : 17 +0.115101 sec [03fe/0303]: error: ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
��Oct 29 11:14:49 Bjarne com.apple.debugserver-189[1022] : 18 +0.101293 sec [03fe/0303]: error: ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
��Oct 29 11:14:49 Bjarne com.apple.debugserver-189[1022] : 19 +0.101731 sec [03fe/0303]: error: ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
��Oct 29 11:14:50 Bjarne com.apple.debugserver-189[1022] : 20 +0.108046 sec [03fe/0303]: error: ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) err = ::task_for_pid ( target_tport = 0x0103, pid = 1024, &task ) => err = 0x00000005 ((os/kern) failure) (0x00000005)
��Oct 29 11:14:50 Bjarne com.apple.debugserver-189[1022] : 21 +0.013752 sec [03fe/0303]: RNBRunLoopLaunchInferior DNBProcessLaunch() returned error: 'failed to get the task for process 1024'
��Oct 29 11:14:50 Bjarne com.apple.debugserver-189[1022] : error: failed to launch process (null): failed to get the task for process 1024
Oct 29 11:14:50 Bjarne com.apple.debugserver-189[1022] : 22 +0.002978 sec [03fe/1303]: error: ::read ( 5, 0x2fe80a0c, 1024 ) => -1 err = Bad file descriptor (0x00000009)
Oct 29 11:14:50 Bjarne com.apple.launchd[1] (UIKitApplication:Bjarne.Christensen.MetriScan[0x7faa][1024]) : (UIKitApplication:Bjarne.Christensen.MetriScan[0x7faa]) Exited: Killed: 9
��Oct 29 11:14:50 Bjarne backboardd[52] : Application 'UIKitApplication:Bjarne.Christensen.MetriScan[0x7faa]' exited abnormally with signal 9: Killed: 9
��

К сожалению я неЯ не могу понять многое из журнала :) Но мне любопытно, что первая строчка о Максе открытых файлах, это проблема.

У меня есть ощущение, что проблема как-то связана с Info.plist, но я неНе знаю, с чего начать.

Я должен упомянуть, что раньше он работал нормально примерно месяц назад, до моей последней рабочей резервной копии, и я могуЯ не вижу никакой разницы в коде между этой и следующей нерабочей резервной копией. Я в основном запускаю код в симуляторе или загружаю прямо в свои тестовые устройства через iTunes, поэтому мне понадобилось так много времени, чтобы обнаружить проблему. С тех пор я работаю над локализацией, и, возможно, именно в этом проблема?

Я погуглил проблему, но не нашел ничего подходящего, и я перезагрузил iPhone и iMac и, конечно, удалил приложение с iPhone между ними.

Любая помощь и указатели будут с благодарностью.

Ответы на вопрос(2)

Ваш ответ на вопрос