पर आईओएस यूनिट परीक्षण चलाने का मुद्दा मैं सीआई (जेनकींस) में चलाने के लिए यूनिट परीक्षण प्राप्त करने की कोशिश कर रहा हूं। मैं कमांड लाइन में चल रहे परीक्षण प्राप्त करने के लिए कुछ हैक्स के साथ इस a article ऑनलाइन पर आया था। मैंने यूनिट परीक्षणों के लिए डिफ़ॉल्ट सेटअप के साथ एक खाली प्रोजेक्ट पर कोशिश की और निर्देश वहां ठीक काम करते हैं, लेकिन जब मैं इसे मौजूदा प्रोजेक्ट पर करने की कोशिश करता हूं जिसमें यूनिट परीक्षण सेटअप होता है तो मुझे एक अस्पष्ट त्रुटि मिल रही है:कमांड लाइन (ओसीयूनीट + ओसीएमॉक)
/bin/sh -c /Users/jzhwu/smule/magicpiano/build/MagicPiano.build/Debug-iphonesimulator/MagicPianoTest.build/Script-7C0B24BE155310BE001AC942.sh
/Applications/Xcode.app/Contents/Developer/Tools/RunPlatformUnitTests.include:266: note: Started tests for architectures 'i386'
Run unit tests for architecture 'i386' (GC OFF)
/Applications/Xcode.app/Contents/Developer/Tools/RunPlatformUnitTests.include:273: note: Running tests for architecture 'i386' (GC OFF)
UIPasteboard - failed to launch pasteboardd. Make sure it's installed in UIKit.framework/Support
UIPasteboard - failed to launch pasteboardd. Make sure it's installed in UIKit.framework/Support
UIPasteboard - failed to launch pasteboardd. Make sure it's installed in UIKit.framework/Support
UIPasteboard - failed to launch pasteboardd. Make sure it's installed in UIKit.framework/Support
UIPasteboard - failed to launch pasteboardd. Make sure it's installed in UIKit.framework/Support
UIPasteboard - failed to launch pasteboardd. Make sure it's installed in UIKit.framework/Support
UIPasteboard - failed to launch pasteboardd. Make sure it's installed in UIKit.framework/Support
UIPasteboard - failed to launch pasteboardd. Make sure it's installed in UIKit.framework/Support
UIPasteboard - failed to launch pasteboardd. Make sure it's installed in UIKit.framework/Support
UIPasteboard - failed to launch pasteboardd. Make sure it's installed in UIKit.framework/Support
UIPasteboard - failed to launch pasteboardd. Make sure it's installed in UIKit.framework/Support
UIPasteboard - failed to launch pasteboardd. Make sure it's installed in UIKit.framework/Support
UIPasteboard - failed to launch pasteboardd. Make sure it's installed in UIKit.framework/Support
UIPasteboard - failed to launch pasteboardd. Make sure it's installed in UIKit.framework/Support
UIPasteboard - failed to launch pasteboardd. Make sure it's installed in UIKit.framework/Support
UIPasteboard - failed to launch pasteboardd. Make sure it's installed in UIKit.framework/Support
UIPasteboard - failed to launch pasteboardd. Make sure it's installed in UIKit.framework/Support
UIPasteboard - failed to launch pasteboardd. Make sure it's installed in UIKit.framework/Support
UIPasteboard - failed to launch pasteboardd. Make sure it's installed in UIKit.framework/Support
UIPasteboard - failed to launch pasteboardd. Make sure it's installed in UIKit.framework/Support
UIPasteboard - failed to launch pasteboardd. Make sure it's installed in UIKit.framework/Support
UIPasteboard - failed to launch pasteboardd. Make sure it's installed in UIKit.framework/Support
2012-05-11 15:10:39:247 MP-Debug[24398:17003] loading model magic
2012-05-11 15:10:39:250 MP-Debug[24398:17003] loading model magic-analytics
2012-05-11 15:10:39.264 MP-Debug[24398:17003] Unresolved error Error Domain=NSCocoaErrorDomain Code=512 "The operation couldn’t be completed. (Cocoa error 512.)" UserInfo=0xa2c5ce0 {reason=Failed to create file; code = 2}, {
reason = "Failed to create file; code = 2";
}
2012-05-11 15:10:39.264 MP-Debug[24398:17003] Try deleting and reinstalling the app to fix this issue
/Applications/Xcode.app/Contents/Developer/Tools/RunPlatformUnitTests.include: line 269: 24398 Abort trap: 6 "${TEST_HOST}" ${TEST_HOST_FLAGS} ${OTHER_TEST_FLAGS}
/Applications/Xcode.app/Contents/Developer/Tools/RunPlatformUnitTests.include:339: error: Test host '/Users/jzhwu/smule/magicpiano/build/Debug-iphonesimulator/MP-Debug.app/MP-Debug' exited abnormally with code 134 (it may have crashed).
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution "Run Script" build/MagicPiano.build/Debug-iphonesimulator/MagicPianoTest.build/Script-7C0B24BE155310BE001AC942.sh
(1 failure)
पुन: इंस्टॉल करें ऐप भाग को अनदेखा करें। वह ऐप कोड से है। तो यह मुझे बताता है कि यह किसी बिंदु पर रनटाइम के दौरान दुर्घटनाग्रस्त हो गया। यूनिट परीक्षण Xcode 4 के ठीक ठीक चलते हैं, मैं इसे कमांड लाइन के साथ अच्छा खेलने के लिए नहीं मिल सकता। अगर यह किसी भी मदद की है तो मैं ओसीएमनेट के साथ ओसीयूनीट का उपयोग कर रहा हूं। धन्यवाद!
क्या आपको कभी इसके लिए समाधान मिला? मेरी भी यही समस्या है। कमांड लाइन से सीडर परीक्षण चलाने की कोशिश कर रहा है और मुझे वही मिलता है "फाइल बनाने में विफल; कोड = 2" त्रुटि – AFraser
दुर्भाग्यवश मुझे इसके लिए कोई समाधान नहीं मिला। मैंने लॉजिकल यूनिट परीक्षणों में परीक्षण (पहले आवेदन परीक्षण) को बदलना समाप्त कर दिया और वे ठीक से भाग गए। –