在 PFTLoadPlugins();这一句中 crash 了,下面是回溯,请问这是什么原因呢?我的是 Xcode7.3,是不是 Xcode6 之前才可以?
2016-04-08 15:11:36.017 TraceUtility[79428:2047286] [MT] DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-10174/DVTFoundation/DeveloperStructure/DVTDeveloperPaths.m:58
Details: +[DVTDeveloperPaths applicationDirectoryName] was called, but +initializeApplicationDirectoryName: has not been called yet. Your process must initialize the application directory name if you use this class.
Object:
Method: +applicationDirectoryName
Thread: {number = 1, name = main}
Hints: None
Backtrace:
0 -DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:
1 _DVTAssertionHandler (in DVTFoundation)
2 _DVTAssertionFailureHandler (in DVTFoundation)
3 +DVTDeveloperPaths applicationDirectoryName
4 -DVTDeveloperPaths sourceSpecificationSearchPathForPlatform:
5 +DVTSourceSpecification searchForAndRegisterAllAvailableSpecifications
6 __PFTLoadPlugins_block_invoke (in InstrumentsPlugIn)
7 _dispatch_client_callout (in libdispatch.dylib)
8 dispatch_once_f (in libdispatch.dylib)
9 PFTLoadPlugins (in InstrumentsPlugIn)
10 main at /Users/yemingyu/Desktop/InstrumentParse/TraceUtility-master/TraceUtility/main.m:13 (in TraceUtility)
11 start (in libdyld.dylib)
调用 PFTLoadPlugins();时总是 crash 掉