当我在 Xcode 4.6.2 中单击 RUN 时,我的 iPhone 应用程序不断崩溃

Posted

技术标签:

【中文标题】当我在 Xcode 4.6.2 中单击 RUN 时,我的 iPhone 应用程序不断崩溃【英文标题】:My iPhone app keeps crashing when I click RUN in Xcode 4.6.2 【发布时间】:2013-05-29 17:28:51 【问题描述】:

我从 iPhone 的控制台获取此信息

May 29 13:26:01 iPhone-5S securityd[550] <Notice>: MS:Notice: Installing: (null) [securityd] (793.00)
��May 29 13:26:01 iPhone-5S securityd[550] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/rwxlib.dylib
��May 29 13:26:01 iPhone-5S securityd[550] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/xCon.dylib
��May 29 13:26:02 iPhone-5S mobile_house_arrest[555] <Error>: Max open files: 78
��May 29 13:26:02 iPhone-5S installd[44] <Error>: 0x2d5000 handle_install: Install of "/var/mobile/Media/PublicStaging/Emergency Closing.app" requested by mobile_installation_proxy
��May 29 13:26:02 iPhone-5S installd[44] <Error>: 0x2d5000 MobileInstallationInstall_Server: Installing app com.oneorangetree.emergency-closing
��May 29 13:26:03 iPhone-5S installd[44] <Error>: May 29 13:26:03  SecTrustEvaluate  [leaf CriticalExtensions IssuerCommonName]
��May 29 13:26:03 iPhone-5S SpringBoard[137] <Warning>: Killing com.oneorangetree.emergency-closing for termination assertion
��May 29 13:26:03 iPhone-5S lsd[173] <Warning>: updating identifier store
��May 29 13:26:03 iPhone-5S lsd[173] <Warning>: Attempting to store identifiers file
��May 29 13:26:03 iPhone-5S installd[44] <Error>: 0x2d5000 MobileInstallationInstall_Server: Staging: 0.41s; Waiting: 0.00s; Installation: 0.19s; LS Sync: 0.12s; Overall: 0.72s
��May 29 13:26:03 iPhone-5S kernel[0] <Debug>: launchd[558] Builtin profile: syncdefaultsd (sandbox)
��May 29 13:26:03 iPhone-5S kernel[0] <Debug>: launchd[557] Builtin profile: syncdefaultsd (sandbox)
��May 29 13:26:03 iPhone-5S syncdefaultsd[557] <Notice>: MS:Notice: Installing: com.apple.syncdefaultsd [syncdefaultsd] (793.00)
��May 29 13:26:04 iPhone-5S syncdefaultsd[557] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/rwxlib.dylib
��May 29 13:26:04 iPhone-5S syncdefaultsd[557] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/xCon.dylib
��May 29 13:26:05 iPhone-5S installd[44] <Error>: 0x45b000 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 0x1c55bb40 [0x3b86a0f0]>type = mutable set, count = 18,
    entries =>
        0 : <CFString 0x3b8569e4 [0x3b86a0f0]>contents = "CFBundlePackageType"
        1 : <CFString 0x1d850720 [0x3b86a0f0]>contents = "BuildMachineOSBuild"
        2 : <CFString 0x3b857a34 [0x3b86a0f0]>contents = "CFBundleResourceSpecification"
        3 : <CFString 0x1d831c50 [0x3b86a0f0]>contents = "DTPlatformBuild"
        4 : <CFString 0x3b854784 [0x3b86a0f0]>contents = "DTCompiler"
        5 : <CFString 0x3b856554 [0x3b86a0f0]>contents = "CFBundleSignature"
        6 : <CFString 0x3b857214 [0x3b86a0f0]>contents = "DTSDKName"
        7 : <CFString 0x1d837990 [0x3b86a0f0]>contents = "NSBundleResolvedPath"
        8 : <CFString 0x3b853ea4 [0x3b86a0f0]>contents = "UISupportedInterfaceOrientations"
        10 : <CFString 0x3b85be74 [0x3b86a0f0]>contents = "DTXcode"
        13 : <CFString 0x3b85bea4 [0x3b86a0f0]>contents = "CFBundleInfoDictionaryVersion"
        16 : <CFString 0x3b8592f4 [0x3b86a0f0]>contents = "CFBundleSupportedPlatforms"
        17 : <CFString 0x1d8468d0 [0x3b86a0f0]>contents = "DTXcodeBuild"
        18 : <CFString 0x1d838c30 [0x3b86a0f0]>contents = "UIStatusBarTintParameters"
        19 : <CFString 0x3b857e44 [0x3b86a0f0]>contents = "DTPlatformVersion"
        20 : <CFString 0x3b85abe4 [0x3b86a0f0]>contents = "DTPlatformName"
        21 : <CFString 0x3b85bc74 [0x3b86a0f0]>contents = "CFBundleDevelopmentRegion"
        22 : <CFString 0x1d84c470 [0x3b86a0f0]>contents = "DTSDKBuild"
    
��May 29 13:26:06 iPhone-5S installd[44] <Error>: 0x2d5000 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 0x1d83bfa0 [0x3b86a0f0]>type = mutable set, count = 18,
    entries =>
        0 : <CFString 0x3b8569e4 [0x3b86a0f0]>contents = "CFBundlePackageType"
        1 : <CFString 0x1d8468d0 [0x3b86a0f0]>contents = "BuildMachineOSBuild"
        2 : <CFString 0x3b857a34 [0x3b86a0f0]>contents = "CFBundleResourceSpecification"
        3 : <CFString 0x1d84e660 [0x3b86a0f0]>contents = "DTPlatformBuild"
        4 : <CFString 0x3b854784 [0x3b86a0f0]>contents = "DTCompiler"
        5 : <CFString 0x3b856554 [0x3b86a0f0]>contents = "CFBundleSignature"
        6 : <CFString 0x3b857214 [0x3b86a0f0]>contents = "DTSDKName"
        7 : <CFString 0x1d833e90 [0x3b86a0f0]>contents = "NSBundleResolvedPath"
        8 : <CFString 0x3b853ea4 [0x3b86a0f0]>contents = "UISupportedInterfaceOrientations"
        10 : <CFString 0x3b85be74 [0x3b86a0f0]>contents = "DTXcode"
        13 : <CFString 0x3b85bea4 [0x3b86a0f0]>contents = "CFBundleInfoDictionaryVersion"
        16 : <CFString 0x3b8592f4 [0x3b86a0f0]>contents = "CFBundleSupportedPlatforms"
        17 : <CFString 0x1d854a20 [0x3b86a0f0]>contents = "DTXcodeBuild"
        18 : <CFString 0x1d84ca00 [0x3b86a0f0]>contents = "UIStatusBarTintParameters"
        19 : <CFString 0x3b857e44 [0x3b86a0f0]>contents = "DTPlatformVersion"
        20 : <CFString 0x3b85abe4 [0x3b86a0f0]>contents = "DTPlatformName"
        21 : <CFString 0x3b85bc74 [0x3b86a0f0]>contents = "CFBundleDevelopmentRegion"
        22 : <CFString 0x1d850720 [0x3b86a0f0]>contents = "DTSDKBuild"
    
��May 29 13:26:06 iPhone-5S mobile_house_arrest[561] <Error>: Max open files: 78
��May 29 13:26:06 iPhone-5S mobile_house_arrest[562] <Error>: Max open files: 78
��May 29 13:26:06 iPhone-5S kernel[0] <Debug>: lockbot[552] Builtin profile: debugserver (sandbox)
��May 29 13:26:06 iPhone-5S com.apple.debugserver-199[563] <Warning>: debugserver-199 for armv7.
May 29 13:26:06 iPhone-5S com.apple.debugserver-199[563] <Warning>: Connecting to com.apple.debugserver service...
May 29 13:26:06 iPhone-5S com.apple.debugserver-199[563] <Warning>: Got a connection, waiting for process information for launching or attaching.
��May 29 13:26:06 iPhone-5S com.apple.launchd[1] (UIKitApplication:com.oneorangetree.emergency-closing[0x8048][565]) <Warning>: (UIKitApplication:com.oneorangetree.emergency-closing[0x8048]) Spawned and waiting for the debugger to attach before continuing...
��May 29 13:26:06 iPhone-5S mobile_house_arrest[564] <Error>: Max open files: 78
��May 29 13:26:06 iPhone-5S mobile_house_arrest[566] <Error>: Max open files: 78
��May 29 13:26:06 iPhone-5S mobile_house_arrest[567] <Error>: Max open files: 78
��May 29 13:26:06 iPhone-5S kernel[0] <Debug>: launchd[565] Builtin profile: container (sandbox)
��May 29 13:26:06 iPhone-5S kernel[0] <Debug>: launchd[565] Container: /private/var/mobile/Applications/A503EED4-6A31-41A5-94BF-5ADA26723AE0 (sandbox)
��May 29 13:26:06 iPhone-5S com.apple.debugserver-199[563] <Warning>: Got a connection, waiting for debugger instructions.
��May 29 13:26:06 iPhone-5S mobile_house_arrest[568] <Error>: Max open files: 78
��May 29 13:26:06 iPhone-5S mobile_house_arrest[569] <Error>: Max open files: 78
��May 29 13:26:07 iPhone-5S mobile_house_arrest[570] <Error>: Max open files: 78
��May 29 13:26:07 iPhone-5S mobile_house_arrest[571] <Error>: Max open files: 78
��May 29 13:26:07 iPhone-5S mobile_house_arrest[572] <Error>: Max open files: 78
��May 29 13:26:07 iPhone-5S mobile_house_arrest[573] <Error>: Max open files: 78
��May 29 13:26:07 iPhone-5S mobile_house_arrest[574] <Error>: Max open files: 78
��May 29 13:26:07 iPhone-5S mobile_house_arrest[575] <Error>: Max open files: 78
��May 29 13:26:07 iPhone-5S mobile_house_arrest[576] <Error>: Max open files: 78
��May 29 13:26:07 iPhone-5S mobile_house_arrest[577] <Error>: Max open files: 78
��May 29 13:26:07 iPhone-5S mobile_house_arrest[578] <Error>: Max open files: 78
��May 29 13:26:07 iPhone-5S mobile_house_arrest[579] <Error>: Max open files: 78
��May 29 13:26:07 iPhone-5S mobile_house_arrest[580] <Error>: Max open files: 78
��May 29 13:26:07 iPhone-5S mobile_house_arrest[581] <Error>: Max open files: 78
��May 29 13:26:07 iPhone-5S mobile_house_arrest[582] <Error>: Max open files: 78
��May 29 13:26:08 iPhone-5S Emergency Closing[565] <Notice>: MS:Notice: Installing: com.oneorangetree.emergency-closing [Emergency Closing] (793.00)
��May 29 13:26:08 iPhone-5S Emergency Closing[565] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/3GMy3G.dylib
��May 29 13:26:08 iPhone-5S Emergency Closing[565] <Warning>: My3G Initializing in com.oneorangetree.emergency-closing  v5.0..
��May 29 13:26:08 iPhone-5S Emergency Closing[565] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/AdBlockerNetworks.dylib
��May 29 13:26:08 iPhone-5S Emergency Closing[565] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/Nitrous.dylib
��May 29 13:26:08 iPhone-5S Emergency Closing[565] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/libstatusbar.dylib
��May 29 13:26:08 iPhone-5S Emergency Closing[565] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/rwxlib.dylib
��May 29 13:26:08 iPhone-5S com.apple.launchd[1] (UIKitApplication:com.oneorangetree.emergency-closing[0x8048][565]) <Error>: (UIKitApplication:com.oneorangetree.emergency-closing[0x8048]) Exited with code: 45
��May 29 13:26:08 iPhone-5S com.apple.launchd[1] (UIKitApplication:com.oneorangetree.emergency-closing[0x8048]) <Notice>: (UIKitApplication:com.oneorangetree.emergency-closing[0x8048]) Throttling respawn: Will start in 2147483645 seconds
��May 29 13:26:08 iPhone-5S com.apple.debugserver-199[563] <Warning>: 1 +0.000000 sec [0233/1303]: error: ::read ( 5, 0x1c09fc, 18446744069414585344 ) => -1 err = Bad file descriptor (0x00000009)
��May 29 13:26:08 iPhone-5S backboardd[64] <Warning>: Application 'UIKitApplication:com.oneorangetree.emergency-closing[0x8048]' exited abnormally with exit status 45
��May 29 13:26:13 iPhone-5S assistantd[584] <Notice>: MS:Notice: Installing: com.apple.AssistantServices [assistantd] (793.00)
��May 29 13:26:13 iPhone-5S assistantd[584] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/3GMy3G.dylib
��May 29 13:26:13 iPhone-5S assistantd[584] <Warning>: My3G Initializing in com.apple.AssistantServices  v5.0..
��May 29 13:26:13 iPhone-5S assistantd[584] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/AdBlockerNetworks.dylib
��May 29 13:26:13 iPhone-5S assistantd[584] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/Nitrous.dylib
��May 29 13:26:13 iPhone-5S assistantd[584] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/libstatusbar.dylib
��May 29 13:26:13 iPhone-5S assistantd[584] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/rwxlib.dylib
��May 29 13:26:13 iPhone-5S assistantd[584] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/xCon.dylib
��

我尝试清理目标,但我没有 entitlement.plist 我确实有一个应用程序的 Info.plist,但它看起来并没有什么特别之处,因为它是由 Apple 的 Xcode 生成的库存。

我在装有 T-Mobile 的 iPhone 5 上运行 ios 6.1.2

【问题讨论】:

试试看这里:***.com/questions/13127796/… 我确实先看了一下。它无法解决问题,因为我使用的 Mac 以前从未用于开发。我安装了所有配置文件。该应用程序是在 iPhone 5 上创建的,但我无法调试。模拟器也能完美运行 谁能帮忙解决这个问题? 我向 Apple 雷达提交了一个错误://12053064,但我真的很想修复我的电脑、iPhone 或开发环境 【参考方案1】:

我看到您的设备上安装了 xCon,我是其中的开发者。我发现这篇文章是因为我刚刚遇到同样的错误,而这恰好是因为 xCon。 (小世界,不是吗?)

这并不是我真正想要解决的问题。当您需要将 LLDB 附加到您正在开发的应用程序时,只需将手机置于安全模式即可。

【讨论】:

【参考方案2】:

您可能正在使用“fopen”或“NSFileHandle”..etc 来创建文件句柄,但您没有正确关闭它们(例如,如果您使用 FILE * fopen (const char * filename, const char * mode) 那么您应该使用 fclose ( FILE * stream ))"关闭文件。在 iPhone 中最多只能同时打开 78 个文件。

【讨论】:

【参考方案3】:

我最终擦除了整个硬盘并重新开始。

【讨论】:

以上是关于当我在 Xcode 4.6.2 中单击 RUN 时,我的 iPhone 应用程序不断崩溃的主要内容,如果未能解决你的问题,请参考以下文章

单击一行时视图不会改变 - xcode ios

在 Project Navigator 中单击 JSON 文件时 Xcode 冻结(并崩溃)

Xcode 4.6.2 应用程序在每秒运行一次时崩溃

Xcode 4.6.2 应用程序在每秒运行一次时崩溃

如何在 xcode 4.6.2 中使用 iphone 模拟器 5.1

自动设置在 XCode 中突出显示的选定 UI 按钮?