मुझे एप्लिकेशन परीक्षण (यानी डिवाइस पर) चलाने पर, मेरे ओसीयूनीट परीक्षण सूट के साथ कुछ समस्याएं आ रही हैं। कभी-कभी, मुझे एक मुश्किल त्रुटि मिलती है जो ओसीयूनीट कक्षाओं से फेंक दिया जाता है। मैं टेस्ट सूट में जोड़े गए फाइलों को देखने की कोशिश कर रहा हूं, लेकिन मेरे सिर को इसके चारों ओर नहीं मिल सकता है।डिवाइस पर OCUnit अनुप्रयोग परीक्षण सूट चलाते समय कभी-कभी त्रुटियां
मैं एप्पल प्रलेखन का पालन किया और अन्य ट्यूटोरियल को देखा जब तक अपने परीक्षण लक्ष्य निर्धारित करने के लिए, निम्न लक्ष्य (और दांतेदार निर्भरता) में जिसके परिणामस्वरूप है:
MyApp LogicTests
LogicTests ApplicationTests MyApp
MyAppTesting ApplicationTests
अंतिम (MyAppTesting) वह है जिसे मैं परीक्षण सूट शुरू करने के लिए डिवाइस पर चलाता हूं।
और के रूप में उल्लेख किया है, परीक्षण कभी कभी मुझे कंसोल में निम्न उत्पादन फेंकने शुरू करने के लिए असफल:
2010-11-17 12:02:48.537 VCCTesting[12018:307] *** Assertion failure in -[SenTestClassEnumerator init], /SourceCache/OCUnit/OCUnit-1685/SourceCode/SenTestingKit/SenTestClassEnumerator.m:137
2010-11-17 12:02:48.556 VCCTesting[12018:307] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'objc_getClassList returned more classes than it should have.'
*** Call stack at first throw:
(
0 CoreFoundation 0x30897ed3 __exceptionPreprocess + 114
1 libobjc.A.dylib 0x3002f811 objc_exception_throw + 24
2 CoreFoundation 0x30897d15 +[NSException raise:format:arguments:] + 68
3 Foundation 0x349f932f -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 62
4 SenTestingKit 0x20107c29 -[SenTestClassEnumerator init] + 292
5 SenTestingKit 0x201079fd +[SenTestClassEnumerator classEnumerator] + 24
6 SenTestingKit 0x2010777d +[NSObject(SenTestRuntimeUtilities) senAllSubclasses] + 92
7 SenTestingKit 0x201067b5 +[SenTestSuite updateCache] + 28
8 SenTestingKit 0x20106753 +[SenTestSuite suiteForBundleCache] + 54
9 SenTestingKit 0x201065db +[SenTestSuite structuredTests] + 14
10 SenTestingKit 0x201065a1 +[SenTestSuite allTests] + 40
11 SenTestingKit 0x20106573 +[SenTestSuite defaultTestSuite] + 14
12 SenTestingKit 0x201057a3 +[SenTestProbe specifiedTestSuite] + 106
13 SenTestingKit 0x20105d83 +[SenTestProbe runTests:] + 94
14 Foundation 0x349c7e8d __NSFireDelayedPerform + 368
15 CoreFoundation 0x3084e7fb __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 14
16 CoreFoundation 0x3084e2ad __CFRunLoopDoTimer + 860
17 CoreFoundation 0x3081f7a5 __CFRunLoopRun + 1088
18 CoreFoundation 0x3081f277 CFRunLoopRunSpecific + 230
19 CoreFoundation 0x3081f17f CFRunLoopRunInMode + 58
20 GraphicsServices 0x31e445f3 GSEventRunModal + 114
21 GraphicsServices 0x31e4469f GSEventRun + 62
22 UIKit 0x31e51123 -[UIApplication _run] + 402
23 UIKit 0x31e4f12f UIApplicationMain + 670
24 VCCTesting 0x000234ff main + 70
25 VCCTesting 0x00002538 start + 40
)
terminate called after throwing an instance of 'NSException'
किसी को क्या गलत हो सकता है पता है?
किसी भी मदद के लिए शुक्रगुज़ार, Kristofer
पी.एस. मैंने इसे ऐप देव मंचों पर पोस्ट किया है, लेकिन इसके साथ अभी तक कोई भाग्य नहीं है: https://devforums.apple.com/message/333890
बस एक स्वच्छ और उसके बाद काम फिर से प्रयास मेरे लिए किसी भी तरह इस हिट ..। – canhazbits