在Xcode上运行iPhone4上的应用程序失败 [英] Running App on iPhone4 from Xcode fails

查看:211
本文介绍了在Xcode上运行iPhone4上的应用程序失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的iPhone上从Xcode运行我的应用程序时,我有一个问题。应用程序在模拟器(iPhone,iPad等)中运行(似乎)很好。它在iPhone4或iPad2上加载时运行正常,只是尝试从Xcode(版本4.5)启动应用程序时,我从Xcode中获取以下消息:无法启动未能获得进程1024的任务,并且Xcode输出窗口中唯一的消息是:

 错误:无法启动'/ private / var / mobile / Applications / 36159066-FEDB-4A26-A05D-E599F397074A / MetriScan.app' - 未能获得进程1024的任务

iPhone上没有崩溃日志,但控制台日志包含以下内容(在运行前清除):

  10月29日11:14:37 Bjarne mobile_house_arrest [1015]<错误>:最大打开文件:125 
Oct29 11:14:38 Bjarne installd [31]< Error> ;: 0x2fe93000 handle_install:安装of/var/mobile/Media/PublicStaging/MetriScan.app由mobile_installation_proxy请求
Oct29 11:14:38 Bjarne installd [31]< Error> ;: 0x2fe93000 MobileInstallationInstall_Se rver:安装应用程序Bjarne.Christensen.MetriScan
Oct29 11:14:39 Bjarne installd [31]< Error> ;: Oct 29 11:14:39 SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Oct29 11:14:40 Bjarne SpringBoard [509]<警告>:杀死Bjarne.Christensen.MetriScan终止声明
Oct29 11:14:40 Bjarne com.apple.launchd [1]( UIKitApplication:Bjarne.Christensen.MetriScan [0x89b7] [792])< Notice> ;:(UIKitApplication:Bjarne.Christensen.MetriScan [0x89b7])已退出:已杀死:9
Oct29 11:14:40 Bjarne backboardd [52]<警告>:应用程序'UIKitApplication:Bjarne.Christensen.MetriScan [0x89b7]'异常地退出信号9:Killed:9
Oct29 11:14:40 Bjarne kernel [0]< ; Debug> ;: launchd [1018] Builtin个人资料:syncdefaultsd(沙箱)
Oct29 11:14:40 Bjarne installd [31]< Error> ;: 0x2fe93000 MobileInstallationInstall_Server:Staging:0.43s;等待:0.00s;安装:1.42s; LS同步:0.16s;总体来说:2.16s
Oct29 11:14:41 Bjarne installd [31]< Error> ;: 0x2fe93000 filter_attributes:通过MobileInstallationLookup /浏览客户端Xcode(通过mobile_installation_proxy)查询的Info.plist键在MobileInstallation的缓存。请提出一个请求添加这些密钥的错误:< CFBasicHash 0x1cdaa9d0 [0x3ac39100]> {type = mutable set,count = 18,
entries =>
0:< CFString 0x3ac259f4 [0x3ac39100]> {content =CFBundlePackageType}
1:< CFString 0x1cdab130 [0x3ac39100]> {content =BuildMachineOSBuild}
2: < CFString 0x3ac26a44 [0x3ac39100]> {content =CFBundleResourceSpecification}
3:< CFString 0x1cda7440 [0x3ac39100]> {content =DTPlatformBuild}
4:< CFString 0x3ac23794 [0x3ac39100 ] {content =DTCompiler}
5:< CFString 0x3ac25564 [0x3ac39100]> {content =CFBundleSignature}
6:< CFString 0x3ac26224 [0x3ac39100]> {contents = DTSDKName}
7:< CFString 0x1cd7e720 [0x3ac39100]> {content =NSBundleResolvedPath}
8:< CFString 0x3ac22eb4 [0x3ac39100]> {content =UISupportedInterfaceOrientations}
10:< CFString 0x3ac2ae84 [0x3ac39100]> {content =DTXcode}
13:< CFString 0x3ac2aeb4 [0x3ac39100]> {contents =CFBundleInfoDictionar yVersion}
16:< CFString 0x3ac28304 [0x3ac39100]> {content =CFBundleSupportedPlatforms}
17:< CFString 0x1cd89710 [0x3ac39100]> {content =DTXcodeBuild}
18:< CFString 0x1cdacc30 [0x3ac39100]> {content =UIStatusBarTintParameters}
19:< CFString 0x3ac26e54 [0x3ac39100]> {content =DTPlatformVersion}
20:< CFString 0x3ac29bf4 [0x3ac39100]> {content =DTPlatformName}
21:< CFString 0x3ac2ac84 [0x3ac39100]> {content =CFBundleDevelopmentRegion}
22:< CFString 0x1cda5800 [0x3ac39100]> {content =DTSDKBuild}
}
Oct29 11:14:42 Bjarne installd [31]< Error> ;: 0x2ffb5000 filter_attributes:通过MobileInstallationLookup请求的Info.plist密钥/在客户端Xcode中浏览(通过mobile_installation_proxy)在MobileInstallation的缓存中找不到。请提出一个请求添加这些密钥的错误:< CFBasicHash 0x1cdaa9d0 [0x3ac39100]> {type = mutable set,count = 18,
entries =>
0:< CFString 0x3ac259f4 [0x3ac39100]> {content =CFBundlePackageType}
1:< CFString 0x1cd89710 [0x3ac39100]> {content =BuildMachineOSBuild}
2: < CFString 0x3ac26a44 [0x3ac39100]> {content =CFBundleResourceSpecification}
3:< CFString 0x1cdab130 [0x3ac39100]> {content =DTPlatformBuild}
4:< CFString 0x3ac23794 [0x3ac39100 ] {content =DTCompiler}
5:< CFString 0x3ac25564 [0x3ac39100]> {content =CFBundleSignature}
6:< CFString 0x3ac26224 [0x3ac39100]> {contents = DTSDKName}
7:< CFString 0x1cd9b540 [0x3ac39100]> {content =NSBundleResolvedPath}
8:< CFString 0x3ac22eb4 [0x3ac39100]> {content =UISupportedInterfaceOrientations}
10:< CFString 0x3ac2ae84 [0x3ac39100]> {content =DTXcode}
13:< CFString 0x3ac2aeb4 [0x3ac39100]> {contents =CFBundleInfoDictionar yVersion}
16:< CFString 0x3ac28304 [0x3ac39100]> {content =CFBundleSupportedPlatforms}
17:< CFString 0x1cd78400 [0x3ac39100]> {contents =DTXcodeBuild}
18:< CFString 0x1cd68ba0 [0x3ac39100]> {content =UIStatusBarTintParameters}
19:< CFString 0x3ac26e54 [0x3ac39100]> {content =DTPlatformVersion}
20:< CFString 0x3ac29bf4 [0x3ac39100]> {content =DTPlatformName}
21:< CFString 0x3ac2ac84 [0x3ac39100]> {content =CFBundleDevelopmentRegion}
22:< CFString 0x1cd9cee0 [0x3ac39100]> {content =DTSDKBuild}
}
Oct29 11:14:42 Bjarne com.apple.debugserver-189 [1022]<警告>:用于armv7的debugserver-189。
Oct29 11:14:42 Bjarne com.apple.debugserver-189 [1022]<警告>:连接到com.apple.debugserver服务...
Oct29 11: 14:42 Bjarne kernel [0]< Debug> ;: lockbot [1013]内置配置文件:debugserver(sandbox)
Oct29 11:14:42 Bjarne com.apple.debugserver-189 [警告>:连接,等待启动或附加的进程信息。
Oct29 11:14:46 Bjarne com.apple.launchd [1](UIKitApplication:Bjarne.Christensen.MetriScan [0x7faa] [1024])< Warning> ;:(UIKitApplication:Bjarne.Christensen.MetriScan [0x7faa])生成并等待调试器附加,然后继续...
Oct29 11:14:46 Bjarne amfid [1025]< Error> ;: Oct 29 11:14:46 SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Oct29 11:14:47 Bjarne kernel [0]< Debug> ;: launchd [1024]内置配置文件:container(sandbox)
Oct29 11:14:47 Bjarne kernel [0]< Debug> ;: launchd [1024]容器:/ private / var / mobile / Applications / 36159066-FEDB-4A26-A05D-E599F397074A(sandbox)
Oct29 11:14:47 Bjarne com.apple.debugserver-189< Warning> ;: 1 +0.000000sec [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)
Oct29 11:14:47 Bjarne com.apple.debugserver-189<警告> ;:2 +0.105567秒[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)
Oct29 11:14:47 Bjarne com.apple.debugserver-189<警告> ;: 3 +0.101283秒[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)失败)(0x00000005)
Oct29 11:14:47 Bjarne com.apple.debugserver-189<警告> ;: 4 +0.102423秒[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)
Oct29 11:14:47 Bjarne com.apple.debugserver-189<警告> ;: 5 +0.100074秒[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)
Oct29 11:14:47 Bjarne com.apple.debugserver-189<警告> ;: 6 +0.102276秒[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)
Oct29 11:14:47 Bjarne com.apple.debugserver-189<警告> ;:7 +0.104515秒[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)失败)(0x00000005)
Oct29 11:14:48 Bjarne com.apple.debugserver-189<警告> ;:8 +0.118398秒[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)
Oct29 11:14:48 Bjarne com.apple.debugserver-189<警告> ;: 9 +0.117044秒[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)
Oct29 11:14:48 Bjarne com.apple.debugserver-189<警告> ;: 10 +0.100288秒[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)
Oct29 11:14:48 Bjarne com.apple.debugserver-189 [1022]< Error> ;:错误:MachTask :: StartExceptionThread ):任务无效,异常线程启动失败。
Oct29 11:14:48 Bjarne librariand [96]< Error>:客户端进程1024没有有效的com.apple.developer.ubiquity-container-identifiers权利
Oct 29 11:14:48 Bjarne com.apple.debugserver-189<警告> ;:11 +0.477484秒[03fe / 0303]:错误::: 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)
Oct29 11:14:48 Bjarne com.apple.debugserver-189<警告> ;:12 +0.150354秒[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)
Oct29 11:14:49 Bjarne com.apple.debugserver-189<警告> ;: 13 +0.291521秒[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)
Oct29 11:14:49 Bjarne com.apple.debugserver-189<警告> ;:14 +0.114934秒[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)
Oct29 11:14:49 Bjarne com.apple.debugserver-189<警告> ;:15 +0.168568秒[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)失败)(0x00000005)
Oct29 11:14:49 Bjarne com.apple.debugserver-189<警告> ;:16 +0.123600秒[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)失败)(0x00000005)
Oct29 11:14:49 Bjarne com.apple.debugserver-189<警告> ;: 17 +0.115101秒[03fe / 0303]:错误::: 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)失败)(0x00000005)
Oct29 11:14:49 Bjarne com.apple.debugserver-189<警告>:18 +0.101293秒[03fe / 0303]:error::: task_for_pid(target_tport = 0x0103,pid = 1024,& task)=> err = 0x00000005((os / kern)failed)err = :: task_for_pid(target_tport = 0x0103,pid = 1024,& task)=> err = 0x00000005((os / kern)失败)(0x00000005)
Oct29 11:14:49 Bjarne com.apple.debugserver-189<警告> ;: 19 +0.101731秒[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)失败)(0x00000005)
Oct29 11:14:50 Bjarne com.apple.debugserver-189<警告> ;: 20 +0.108046秒[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)
Oct29 11:14:50 Bjarne com.apple.debugserver-189<警告> ;:21 +0.013752秒[03fe / 0303]:RNBRunLoopLaunchInferior DNBProcessLaunch()返回错误:'无法获得进程1024'的任务
Oct29 11:14:50 Bjarne com.apple.debugserver-189 [1022]<警告>:错误:无法启动进程(null):未能获得进程1024的任务
Oct 29 11:14:50 Bjarne com.apple.debugserver-189 [1022]<警告>:22 +0.002978秒[03fe / 1303]:error::: read(5,0x2fe80a0c,1024)=> -1 err =错误的文件描述符(0x00000009)
Oct 29 11:14:50 Bjarne com.apple.launchd [1](UIKitApplication:Bjarne.Christensen.MetriScan [0x7faa] [1024])< Notice> ;: (UIKitApplication:Bjarne.Christensen.MetriScan [0x7faa])已退出:已杀死:9
Oct29 11:14:50 Bjarne backboardd [52]<警告>:应用程序UIKitApplication:Bjarne.Christensen.MetriScan [ 0x7faa]异常地退出信号9:杀死:9

不幸的是,我不要太多的日志:)但我很好奇关于Max打开文件的第一行,是一个问题。



我有一种感觉,不知怎的是Info.plist,但是我不知道从哪里开始。



我应该提到它一直工作到一个多月前,我的最后的工作备份,我看不到任何区别在这个和下一个非工作的备份之间的代码。我主要是在模拟器中运行代码或通过iTunes直接加载到我的测试设备中,这就是为什么我花了这么长时间才能发现问题。我一直在从事这个时候的本地化工作,也许这就是问题所在?



我讨厌这个问题,但没有想到任何似乎适用的东西,我已经重新启动了iPhone和iMac,当然也可以从iPhone中删除App。



任何帮助和指针都将不胜感激。 / p>

解决方案

事实证明这是一个代码签名问题。一段时间以来,我在添加一个iPad 3到我的测试设备Adhoc发行时遇到问题,我改变了代码签名试图做这个工作。这是一个iOS发行证书,我不得不将其更改为开发人员证书,以从Xcode运行iPhone。从这里可以清楚的是,我真的不完全明白整个代码的签名和发行流程。



但它再次工作,太棒了。


I have a problem when running my App on my iPhone from Xcode. The App runs (seemingly) fine in the simulators (iPhone, iPad, etc). It also runs fine when loaded on the iPhone4 or iPad2, it is only when trying to start the App from Xcode (version 4.5) that I get the following message from Xcode: Could not launch "" failed to get task for process 1024", and the only message in the Xcode output windows is:

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

There is no crash log on the iPhone, but the console log contains the following (cleared before the run):

Oct 29 11:14:37 Bjarne mobile_house_arrest[1015] <Error>: Max open files: 125
��Oct 29 11:14:38 Bjarne installd[31] <Error>: 0x2fe93000 handle_install: Install of "/var/mobile/Media/PublicStaging/MetriScan.app" requested by mobile_installation_proxy
��Oct 29 11:14:38 Bjarne installd[31] <Error>: 0x2fe93000 MobileInstallationInstall_Server: Installing app Bjarne.Christensen.MetriScan
��Oct 29 11:14:39 Bjarne installd[31] <Error>: Oct 29 11:14:39  SecTrustEvaluate  [leaf CriticalExtensions IssuerCommonName]
��Oct 29 11:14:40 Bjarne SpringBoard[509] <Warning>: Killing Bjarne.Christensen.MetriScan for termination assertion
��Oct 29 11:14:40 Bjarne com.apple.launchd[1] (UIKitApplication:Bjarne.Christensen.MetriScan[0x89b7][792]) <Notice>: (UIKitApplication:Bjarne.Christensen.MetriScan[0x89b7]) Exited: Killed: 9
��Oct 29 11:14:40 Bjarne backboardd[52] <Warning>: Application 'UIKitApplication:Bjarne.Christensen.MetriScan[0x89b7]' exited abnormally with signal 9: Killed: 9
��Oct 29 11:14:40 Bjarne kernel[0] <Debug>: launchd[1018] Builtin profile: syncdefaultsd (sandbox)
��Oct 29 11:14:40 Bjarne installd[31] <Error>: 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] <Error>: 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: <CFBasicHash 0x1cdaa9d0 [0x3ac39100]>{type = mutable set, count = 18,
    entries =>
        0 : <CFString 0x3ac259f4 [0x3ac39100]>{contents = "CFBundlePackageType"}
        1 : <CFString 0x1cdab130 [0x3ac39100]>{contents = "BuildMachineOSBuild"}
        2 : <CFString 0x3ac26a44 [0x3ac39100]>{contents = "CFBundleResourceSpecification"}
        3 : <CFString 0x1cda7440 [0x3ac39100]>{contents = "DTPlatformBuild"}
        4 : <CFString 0x3ac23794 [0x3ac39100]>{contents = "DTCompiler"}
        5 : <CFString 0x3ac25564 [0x3ac39100]>{contents = "CFBundleSignature"}
        6 : <CFString 0x3ac26224 [0x3ac39100]>{contents = "DTSDKName"}
        7 : <CFString 0x1cd7e720 [0x3ac39100]>{contents = "NSBundleResolvedPath"}
        8 : <CFString 0x3ac22eb4 [0x3ac39100]>{contents = "UISupportedInterfaceOrientations"}
        10 : <CFString 0x3ac2ae84 [0x3ac39100]>{contents = "DTXcode"}
        13 : <CFString 0x3ac2aeb4 [0x3ac39100]>{contents = "CFBundleInfoDictionaryVersion"}
        16 : <CFString 0x3ac28304 [0x3ac39100]>{contents = "CFBundleSupportedPlatforms"}
        17 : <CFString 0x1cd89710 [0x3ac39100]>{contents = "DTXcodeBuild"}
        18 : <CFString 0x1cdacc30 [0x3ac39100]>{contents = "UIStatusBarTintParameters"}
        19 : <CFString 0x3ac26e54 [0x3ac39100]>{contents = "DTPlatformVersion"}
        20 : <CFString 0x3ac29bf4 [0x3ac39100]>{contents = "DTPlatformName"}
        21 : <CFString 0x3ac2ac84 [0x3ac39100]>{contents = "CFBundleDevelopmentRegion"}
        22 : <CFString 0x1cda5800 [0x3ac39100]>{contents = "DTSDKBuild"}
    }
��Oct 29 11:14:42 Bjarne installd[31] <Error>: 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: <CFBasicHash 0x1cdaa9d0 [0x3ac39100]>{type = mutable set, count = 18,
    entries =>
        0 : <CFString 0x3ac259f4 [0x3ac39100]>{contents = "CFBundlePackageType"}
        1 : <CFString 0x1cd89710 [0x3ac39100]>{contents = "BuildMachineOSBuild"}
        2 : <CFString 0x3ac26a44 [0x3ac39100]>{contents = "CFBundleResourceSpecification"}
        3 : <CFString 0x1cdab130 [0x3ac39100]>{contents = "DTPlatformBuild"}
        4 : <CFString 0x3ac23794 [0x3ac39100]>{contents = "DTCompiler"}
        5 : <CFString 0x3ac25564 [0x3ac39100]>{contents = "CFBundleSignature"}
        6 : <CFString 0x3ac26224 [0x3ac39100]>{contents = "DTSDKName"}
        7 : <CFString 0x1cd9b540 [0x3ac39100]>{contents = "NSBundleResolvedPath"}
        8 : <CFString 0x3ac22eb4 [0x3ac39100]>{contents = "UISupportedInterfaceOrientations"}
        10 : <CFString 0x3ac2ae84 [0x3ac39100]>{contents = "DTXcode"}
        13 : <CFString 0x3ac2aeb4 [0x3ac39100]>{contents = "CFBundleInfoDictionaryVersion"}
        16 : <CFString 0x3ac28304 [0x3ac39100]>{contents = "CFBundleSupportedPlatforms"}
        17 : <CFString 0x1cd78400 [0x3ac39100]>{contents = "DTXcodeBuild"}
        18 : <CFString 0x1cd68ba0 [0x3ac39100]>{contents = "UIStatusBarTintParameters"}
        19 : <CFString 0x3ac26e54 [0x3ac39100]>{contents = "DTPlatformVersion"}
        20 : <CFString 0x3ac29bf4 [0x3ac39100]>{contents = "DTPlatformName"}
        21 : <CFString 0x3ac2ac84 [0x3ac39100]>{contents = "CFBundleDevelopmentRegion"}
        22 : <CFString 0x1cd9cee0 [0x3ac39100]>{contents = "DTSDKBuild"}
    }
��Oct 29 11:14:42 Bjarne com.apple.debugserver-189[1022] <Warning>: debugserver-189 for armv7.
��Oct 29 11:14:42 Bjarne com.apple.debugserver-189[1022] <Warning>: Connecting to com.apple.debugserver service...
��Oct 29 11:14:42 Bjarne kernel[0] <Debug>: lockbot[1013] Builtin profile: debugserver (sandbox)
��Oct 29 11:14:42 Bjarne com.apple.debugserver-189[1022] <Warning>: 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]) <Warning>: (UIKitApplication:Bjarne.Christensen.MetriScan[0x7faa]) Spawned and waiting for the debugger to attach before continuing...
��Oct 29 11:14:46 Bjarne amfid[1025] <Error>: Oct 29 11:14:46  SecTrustEvaluate  [leaf CriticalExtensions IssuerCommonName]
��Oct 29 11:14:47 Bjarne kernel[0] <Debug>: launchd[1024] Builtin profile: container (sandbox)
��Oct 29 11:14:47 Bjarne kernel[0] <Debug>: launchd[1024] Container: /private/var/mobile/Applications/36159066-FEDB-4A26-A05D-E599F397074A (sandbox)
��Oct 29 11:14:47 Bjarne com.apple.debugserver-189[1022] <Warning>: 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] <Warning>: 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] <Warning>: 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] <Warning>: 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] <Warning>: 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] <Warning>: 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] <Warning>: 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] <Warning>: 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] <Warning>: 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] <Warning>: 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>: error: MachTask::StartExceptionThread (): task invalid, exception thread start failed.
��Oct 29 11:14:48 Bjarne librariand[96] <Error>: 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] <Warning>: 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] <Warning>: 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] <Warning>: 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] <Warning>: 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] <Warning>: 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] <Warning>: 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] <Warning>: 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] <Warning>: 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] <Warning>: 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] <Warning>: 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] <Warning>: 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] <Warning>: 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] <Warning>: 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]) <Notice>: (UIKitApplication:Bjarne.Christensen.MetriScan[0x7faa]) Exited: Killed: 9
��Oct 29 11:14:50 Bjarne backboardd[52] <Warning>: Application 'UIKitApplication:Bjarne.Christensen.MetriScan[0x7faa]' exited abnormally with signal 9: Killed: 9
��

Unfortunately, I don't get much out of the log :) But I am curious about the first line about Max open files, is that a problem.

I have a feeling that the problem somehow is with the Info.plist but I don't know where to start.

I should mention that it used to work fine up until about a month ago, my last working backup, and I can't see any difference in the code between that and the next non-working backup. I mostly run the code in the simulator or loaded directly in my test devices through iTunes, that is why it took me so long to discover the problem. I have been working on localization since that time and maybe that is where the problem crept in?

I googled the problem, but did not come up with anything that seemed to apply, and I have re-booted the iPhone and the iMac, and of course deleted the App from the iPhone in between.

Any help and pointers would be greatly appreciated.

解决方案

It turns out it was a code signing issue. A while back I was having problems adding an iPad 3 to my test devices for Adhoc distribution, and I changed the code signing in trying to make that work. That was an iOS distribution certificate and I had to now change that back to a developer certificate to run the iPhone from Xcode. What is clear from this is that I really don't fully understand the whole code signing and distribution process.

But it works again, so great.

这篇关于在Xcode上运行iPhone4上的应用程序失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆