2016-11-09 18 views
7

मैंने अपने आईओएस-स्विफ्ट एप्लिकेशन के निर्माण के लिए जेनकींस को कॉन्फ़िगर किया है। मैंने xcode संस्करण 8.1 और स्विफ्ट संस्करण 3 का उपयोग किया है। मैं जेनकींस में नया हूं और एकीकरण प्रक्रिया जारी रखता हूं। मेरे कंसोल आउटपुट के आधार पर, मुझे लगता है कि बिल्ड सफल है। bacause सांत्वना उत्पादन इसगुम आवश्यक मॉड्यूल फ़ायरबेस - जेनकींस त्रुटि त्रुटि

Touch build/testinng.app 
     cd /Users/Shared/Jenkins/Home/workspace/testinng_Bit_Test 
     export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" 
     /usr/bin/touch -c /Users/Shared/Jenkins/Home/workspace/testinng_Bit_Test/build/testinng.app 

    CodeSign build/testinng.app 
     cd /Users/Shared/Jenkins/Home/workspace/testinng_Bit_Test 
     export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate 
     export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" 

    Signing Identity:  "-" 

     /usr/bin/codesign --force --sign - --timestamp=none /Users/Shared/Jenkins/Home/workspace/testinng_Bit_Test/build/testinng.app 

    ** BUILD SUCCEEDED ** 

    2016-11-09 19:51:39.300 xcodebuild[2659:26623] [MT] IDETestOperationsObserverDebug: (E99CCCC3-8EED-4FBA-8A00-2CD3C0D7273F) Beginning test session testinngUITests-E99CCCC3-8EED-4FBA-8A00-2CD3C0D7273F at 2016-11-09 19:51:39.299 with Xcode 8B62 on target <DVTiPhoneSimulator: 0x7f9dce6bc690> { 
      SimDevice: SimDevice : iPhone 7 (223F7310-19DF-4FA7-B147-73AB8B48454F) : state={ Booted } deviceType={ SimDeviceType : com.apple.CoreSimulator.SimDeviceType.iPhone-7 } runtime={ SimRuntime : 10.1 (14B72) - com.apple.CoreSimulator.SimRuntime.iOS-10-1 } 
    } (10.1 (14B72)) 

की तरह लेकिन इस सांत्वना उत्पादन प्रिंट विफलता संदेश के बाद मुद्रित करें।

failed to import required module: 'Firebase'. 

मैं इस तरह गोफिनल कंसोल आउटपुट।

Touch build/testinng.app 
     cd /Users/Shared/Jenkins/Home/workspace/testinng_Bit_Test 
     export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" 
     /usr/bin/touch -c /Users/Shared/Jenkins/Home/workspace/testinng_Bit_Test/build/testinng.app 

    CodeSign build/testinng.app 
     cd /Users/Shared/Jenkins/Home/workspace/testinng_Bit_Test 
     export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate 
     export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" 

    Signing Identity:  "-" 

     /usr/bin/codesign --force --sign - --timestamp=none /Users/Shared/Jenkins/Home/workspace/testinng_Bit_Test/build/testinng.app 

    ** BUILD SUCCEEDED ** 

    2016-11-09 19:51:39.300 xcodebuild[2659:26623] [MT] IDETestOperationsObserverDebug: (E99CCCC3-8EED-4FBA-8A00-2CD3C0D7273F) Beginning test session testinngUITests-E99CCCC3-8EED-4FBA-8A00-2CD3C0D7273F at 2016-11-09 19:51:39.299 with Xcode 8B62 on target <DVTiPhoneSimulator: 0x7f9dce6bc690> { 
      SimDevice: SimDevice : iPhone 7 (223F7310-19DF-4FA7-B147-73AB8B48454F) : state={ Booted } deviceType={ SimDeviceType : com.apple.CoreSimulator.SimDeviceType.iPhone-7 } runtime={ SimRuntime : 10.1 (14B72) - com.apple.CoreSimulator.SimRuntime.iOS-10-1 } 
    } (10.1 (14B72)) 


=== BUILD TARGET testinngTests OF PROJECT testinng WITH CONFIGURATION Debug === 

Check dependencies 

Create product structure 
/bin/mkdir -p /Users/Shared/Jenkins/Home/workspace/testinng_Bit_Test/build/testinng.app/PlugIns/testinngTests.xctest 

ProcessInfoPlistFile build/testinng.app/PlugIns/testinngTests.xctest/Info.plist testinngTests/Info.plist 
    cd /Users/Shared/Jenkins/Home/workspace/testinng_Bit_Test 
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" 
    builtin-infoPlistUtility /Users/Shared/Jenkins/Home/workspace/testinng_Bit_Test/testinngTests/Info.plist -expandbuildsettings -format binary -platform iphonesimulator -o /Users/Shared/Jenkins/Home/workspace/testinng_Bit_Test/build/testinng.app/PlugIns/testinngTests.xctest/Info.plist 

CompileSwift normal x86_64 /Users/Shared/Jenkins/Home/workspace/testinng_Bit_Test/testinngTests/testinngTests.swift 
    cd /Users/Shared/Jenkins/Home/workspace/testinng_Bit_Test 
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c -primary-file /Users/Shared/Jenkins/Home/workspace/testinng_Bit_Test/testinngTests/testinngTests.swift -target x86_64-apple-ios10.0 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.1.sdk -I /Users/Shared/Jenkins/Home/workspace/testinng_Bit_Test/build -F /--akyiibisusqoudfyyfxubyhwzzgz/Build/Intermediates/testinng.build/Debug-iphonesimulator/testinngTests.build/Objects-normal/x86_64/testinngTests.swiftdeps -o /Users/Shared/Jenkins/Library/Developer/Xcode/DerivedData/testinng-akyiibisusqoudfyyfxubyhwzzgz/Build/Intermediates/testinng.build/Debug-iphonesimulator/testinngTests.build/Objects-normal/x86_64/testinngTests.o 
/Users/Shared/Jenkins/Home/workspace/testinng_Bit_Test/testinngTests/testinngTests.swift:10:18: error: missing required module 'Firebase' 
@testable import testinng 
       ^

2016-11-09 19:51:48.418 xcodebuild[2659:26623] Error Domain=IDETestOperationsObserverErrorDomain Code=3 "Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/Shared/Jenkins/Library/Developer/Xcode/DerivedData/testinng-akyiibisusqoudfyyfxubyhwzzgz/Logs/Test/B554B7BB-8F73-4B3F-8B9B-B07918ED46AB/Session-testinngUITests-2016-11-09_195139-CXzaIj.log" UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/Shared/Jenkins/Library/Developer/Xcode/DerivedData/testinng-akyiibisusqoudfyyfxubyhwzzgz/Logs/Test/B554B7BB-8F73-4B3F-8B9B-B07918ED46AB/Session-testinngUITests-2016-11-09_195139-CXzaIj.log} 
2016-11-09 19:51:48.418 xcodebuild[2659:26623] Error Domain=IDETestOperationsObserverErrorDomain Code=3 "Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/Shared/Jenkins/Library/Developer/Xcode/DerivedData/testinng-akyiibisusqoudfyyfxubyhwzzgz/Logs/Test/B554B7BB-8F73-4B3F-8B9B-B07918ED46AB/Session-testinngTests-2016-11-09_195139-NdHjC1.log" UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/Shared/Jenkins/Library/Developer/Xcode/DerivedData/testinng-akyiibisusqoudfyyfxubyhwzzgz/Logs/Test/B554B7BB-8F73-4B3F-8B9B-B07918ED46AB/Session-testinngTests-2016-11-09_195139-NdHjC1.log} 
2016-11-09 19:51:48.419 xcodebuild[2659:27966] Connection peer refused channel request for "dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface"; channel canceled <DTXChannel: 0x7f9dceef3b20> 
2016-11-09 19:51:48.419 xcodebuild[2659:26664] Connection peer refused channel request for "dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface"; channel canceled <DTXChannel: 0x7f9dcee7ded0> 

Testing failed: 
    Missing required module 'Firebase' 
** TEST FAILED ** 


The following build commands failed: 
    CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler 
    CompileSwift normal x86_64 /Users/Shared/Jenkins/Home/workspace/testinng_Bit_Test/testinngTests/testinngTests.swift 
(2 failures) 
Build step 'Xcode' marked build as failure 

इस के साथ संबंधित मुद्दा क्या है?

+1

मुझे भी एक ही समस्या का सामना करना पड़ रहा है। पिछले दो दिनों से मेरा सिर कताई हो गया। पूरे इंटरनेट की खोज की, एसओ, हर जगह गूगल। सभी प्रस्तावित समाधानों का पालन किया। लेकिन सफल नहीं हुआ। मुझे उम्मीद है कि गहरे ज्ञान वाले किसी व्यक्ति को इस मुद्दे को हल करने में मदद मिल सकती है। – sreejesh

उत्तर

10

एक व्यापक शोध के बाद, मुझे अंत में इस समस्या का समाधान मिला। Runpath Search Paths में मैंने जो दूसरा संशोधन किया है, मेरा मानना ​​है कि वास्तव में इस समस्या को हल किया गया है। नीचे दी गई चीजें हैं जो मैंने की/संशोधित की हैं। के रूप में नीचे .:

target 'MyAppTests' do 
    inherit! :search_paths 
    pod 'Firebase' 
end 

2.configure Runpath Search Paths दिखाया करने के लिए सभी को $(FRAMEWORK_SEARCH_PATHS)

3.In अलावा बात करने के लिए

1.I फली फ़ाइल में अपने परीक्षण लक्षित करने के लिए फली 'Firebase' ले जाया गया उपर्युक्त, मैंने अपने पुराने कोकोपॉड (1.0.2) को अनइंस्टॉल किया और नवीनतम संस्करण (1.1.1) स्थापित किया, फायरबेस को हटा दिया, इसे पुनः स्थापित किया .. फिर pod installed और pod updated टर्मिनल में।

0

ठीक है, इसलिए आपका यूनिट परीक्षण चरण विफल हो रहा है। ऐसा लगता है कि नेटवर्किंग समस्या हो सकती है। यह कहना मुश्किल है कि कंसोल आउटपुट से क्या हो रहा है। जब जेनकींस सर्वर के लिए पर्यावरण की बात आती है तो बहुत भिन्नता होती है। जब कोई समस्या होती है तो जेनकिन्स इंगित करता है कि लॉग को देखना हमेशा अच्छा होता है।

@testable import testinng से नीचे की रेखाओं को देखें। वे आपको कुछ लॉग पर इंगित करते हैं।

आप तुरंत काम करने के लिए अपने जेनकींस नौकरी पाने के लिए देख रहे हैं, तो आप हमेशा के लिए अब इकाई परीक्षण चलाने में छोड़ सकते हैं और भविष्य में वह हिस्सा तय करने के लिए वापस आ सकते हैं। इसके साथ जोखिम भरा हुआ है, लेकिन यदि आप अपने काम ASAP को ठीक करने की सोच रहे हैं, तो शायद यह संभवतः जाने का मार्ग है यदि आप इस मुद्दे को जल्द से जल्द डीबग नहीं कर सकते हैं।

यह वास्तव में कैसे लॉग को देख या कम से कम एक छोटे से अधिक संदर्भ प्राप्त किए बिना आपकी समस्या को ठीक करने के लिए है, लेकिन मैं अपने लॉग साझा नहीं सुझाव है कि कहने के लिए मुश्किल है।

+0

मैंने जेनकिंस पोस्ट बिल्ड एक्शन में यूनिट परीक्षण नहीं जोड़ा। लेकिन परियोजना निर्माण के समय, मैंने एक्सकोड विचार पर यूनिट परीक्षण विकल्प चुना है। –

संबंधित मुद्दे