XCode Instruments 让我的应用崩溃
XCode Instruments keeps my app crashing
我只是想开始优化我的应用程序并通过 Instruments 启动它。但是无论我使用哪种工具,我的应用程序在启动时都会立即崩溃。
当我 运行 我的应用程序正常时,它不会显示任何问题。此外,我 运行 几 days/weeks 前使用 Instruments 时没有问题。但是今天连启动都不会。
仪器显示如下(从短开始)
Total Samples Running Time Self Symbol Name
322 322.0ms 92.0% 0,0 Main Thread 0x1734
256 256.0ms 73.1% 0,0 start
64 64.0ms 18.2% 0,0 _dyld_start
2 2.0ms 0.5% 2,0 objc_opt::objc_stringhash_t::hash(char const*, unsigned long) const
9 9.0ms 2.5% 0,0 _dispatch_mgr_thread 0x1752
7 7.0ms 2.0% 0,0 _dispatch_worker_thread3 0x1756
5 5.0ms 1.4% 0,0 _dispatch_worker_thread3 0x1755
4 4.0ms 1.1% 0,0 start_wqthread 0x1754
2 2.0ms 0.5% 0,0 _dispatch_worker_thread3 0x1753
在这里我想展示应用程序崩溃的一部分(虽然可能没用)但它甚至没有启动我的应用程序。 Aaaarrrggghhhhh
等等 - 控制台日志!
01.03.15 21:57:33,149 Xcode[1831]: DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-6269/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/SpecificationTypes/BuiltInSpecifications/Compilers/XCGccMakefileDependencies.m:77
Details: Failed to load dependencies output contents from ``/Users/thomaskilian/Library/Developer/Xcode/DerivedData/CaLister-evdxmqajatsxzqeosqkzlmfglmva/Build/Intermediates/CaLister.build/Debug/CaLister.build/Objects-normal/x86_64/ShiftedCell.d''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “ShiftedCell.d” couldn’t be opened because there is no such file." UserInfo=0x7ffc7f4732c0 {NSFilePath=/Users/thomaskilian/Library/Developer/Xcode/DerivedData/CaLister-evdxmqajatsxzqeosqkzlmfglmva/Build/Intermediates/CaLister.build/Debug/CaLister.build/Objects-normal/x86_64/ShiftedCell.d, NSUnderlyingError=0x7ffc7f4741b0 "The operation couldn’t be completed. No such file or directory"}. User info: {
NSFilePath = "/Users/thomaskilian/Library/Developer/Xcode/DerivedData/CaLister-evdxmqajatsxzqeosqkzlmfglmva/Build/Intermediates/CaLister.build/Debug/CaLister.build/Objects-normal/x86_64/ShiftedCell.d";
NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\"";
}.
Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *__strong, void (^__strong)(NSString *__strong))
Thread: <NSThread: 0x7ffc7b799b60>{number = 2, name = (null)}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
-> 看我自己的回答
事实证明,Instruments 是正在进行的名为 Swift 的 Alpha 研究的一部分,Apple 目前正在开展这项研究 "Developers, developers, developers"。谢谢你,苹果!
我只是想开始优化我的应用程序并通过 Instruments 启动它。但是无论我使用哪种工具,我的应用程序在启动时都会立即崩溃。
当我 运行 我的应用程序正常时,它不会显示任何问题。此外,我 运行 几 days/weeks 前使用 Instruments 时没有问题。但是今天连启动都不会。
仪器显示如下(从短开始)
Total Samples Running Time Self Symbol Name
322 322.0ms 92.0% 0,0 Main Thread 0x1734
256 256.0ms 73.1% 0,0 start
64 64.0ms 18.2% 0,0 _dyld_start
2 2.0ms 0.5% 2,0 objc_opt::objc_stringhash_t::hash(char const*, unsigned long) const
9 9.0ms 2.5% 0,0 _dispatch_mgr_thread 0x1752
7 7.0ms 2.0% 0,0 _dispatch_worker_thread3 0x1756
5 5.0ms 1.4% 0,0 _dispatch_worker_thread3 0x1755
4 4.0ms 1.1% 0,0 start_wqthread 0x1754
2 2.0ms 0.5% 0,0 _dispatch_worker_thread3 0x1753
在这里我想展示应用程序崩溃的一部分(虽然可能没用)但它甚至没有启动我的应用程序。 Aaaarrrggghhhhh
等等 - 控制台日志!
01.03.15 21:57:33,149 Xcode[1831]: DVTAssertions: Warning in /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-6269/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/SpecificationTypes/BuiltInSpecifications/Compilers/XCGccMakefileDependencies.m:77
Details: Failed to load dependencies output contents from ``/Users/thomaskilian/Library/Developer/Xcode/DerivedData/CaLister-evdxmqajatsxzqeosqkzlmfglmva/Build/Intermediates/CaLister.build/Debug/CaLister.build/Objects-normal/x86_64/ShiftedCell.d''. Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “ShiftedCell.d” couldn’t be opened because there is no such file." UserInfo=0x7ffc7f4732c0 {NSFilePath=/Users/thomaskilian/Library/Developer/Xcode/DerivedData/CaLister-evdxmqajatsxzqeosqkzlmfglmva/Build/Intermediates/CaLister.build/Debug/CaLister.build/Objects-normal/x86_64/ShiftedCell.d, NSUnderlyingError=0x7ffc7f4741b0 "The operation couldn’t be completed. No such file or directory"}. User info: {
NSFilePath = "/Users/thomaskilian/Library/Developer/Xcode/DerivedData/CaLister-evdxmqajatsxzqeosqkzlmfglmva/Build/Intermediates/CaLister.build/Debug/CaLister.build/Objects-normal/x86_64/ShiftedCell.d";
NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\"";
}.
Function: void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *__strong, void (^__strong)(NSString *__strong))
Thread: <NSThread: 0x7ffc7b799b60>{number = 2, name = (null)}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
-> 看我自己的回答
事实证明,Instruments 是正在进行的名为 Swift 的 Alpha 研究的一部分,Apple 目前正在开展这项研究 "Developers, developers, developers"。谢谢你,苹果!