2015-11-03 4 views
7

मैंने किसी अन्य कंप्यूटर पर रिमोट गिट रिपॉजिटरी और एक्सकोड सर्वर स्थापित किया, फिर एक्सकोड में एक बॉट बनाया। हर बार जब मैं एक नया एकीकरण करने की कोशिश, यह इस तरह एक त्रुटि के साथ विफल:मॉड्यूल <framework> के लिए आयात फ़ाइल खोलना: अनुमति अस्वीकार

Assertion: Opening import file for module 'Accelerate': Permission denied 
    File: <filename>.swift:9 

मैं इस फ़ाइल में सब कुछ टिप्पणी करते हैं, तो बॉट एक और ढांचे (और एक अन्य .swift फ़ाइल) के लिए एक ही त्रुटि दिखा रहा शुरू होता है। यह या तो स्विफ्ट या उद्देश्य-सी ढांचा हो सकता है।

Search Paths इस परियोजना के लिए है: $(PROJECT_DIR), और Always Search User Paths मैं Xcode 7.2 का उपयोग कर रहा बीटा 2 Yes

के लिए निर्धारित है, लेकिन मैं App स्टोर से Xcode 7.1 पर एक ही मुद्दे का सामना करना पड़ रहा था। मैंने एक्सकोड और सर्वर और विकास मैक दोनों को पुनरारंभ करने का प्रयास किया, यह मदद नहीं करता है। प्रोजेक्ट संकलित करता है और मेरी विकास मशीन पर सफलतापूर्वक चलता है।

सर्वर लॉग: (xcsbuildd.log)

[BuildService] Previous integration is needed but not loaded yet, fetching. 
[BuildService] Previous integration loaded successfully. 
[BuildService] Completed integration step XCSCheckoutIntegrationStep without error 
[BuildService, Info] Asset packs will be hosted at <server url here> 
[BuildService] Current server devices are needed but not loaded yet, fetching. 
[BuildService] Devices loaded successfully. 
[BuildService, Info] Current server platforms are needed but not loaded yet, fetching. 
[BuildService, Info] Platforms loaded successfully. 
[BuildService] Creating arguments list for integrate 
[BuildService] Integration will not perform analyze action 
[BuildService] Integration will perform test action 
[BuildService] Integration use scheme-level code coverage enabled setting 
[BuildService] Additional build arguments are "(
)" 
[BuildService, Info] Creating test device destination arguments for device testing 
[BuildService, Info] Create test device destination arguments from device specification 
[BuildService, Info] Including device iPhone 6 Plus (A3E8ED2D-4D13-420E-8CE1-6D484E65CD03) 
[BuildService, Info] Destination arguments are (
    "-skipUnsupportedDestinations", 
    "-destination-timeout", 
    30, 
    "-DVTDeviceLogLevel=3", 
    "-DVTDeviceSearchLogLevel=3", 
    "-iPhoneSimulatorLogLevel=3", 
    "-iPhoneConnectLogLevel=3", 
    "-destination", 
    "id=A3E8ED2D-4D13-420E-8CE1-6D484E65CD03" 
) 
[BuildService] Integrate arguments list is (
    "/usr/bin/xcrun", 
    xcodebuild, 
    test, 
    "-IDETestOperationsObserverDebugLogLevel=3", 
    "-IDEBuildOperationMaxPercentageOfConcurrentCompileTasks=80", 
    "-IDEBuildOperationQueueSetResourceManagementLogLevel=2", 
    "-DTDKSupportWirelessDevices=NO", 
    "-IDEPostProgressNotifications=YES", 
    "-DVTAllowServerCertificates=YES", 
    "-DVTSigningCertificateSourceLogLevel=3", 
    "-DVTSigningCertificateManagerLogLevel=3", 
    "-DTDKProvisioningProfileExtraSearchPaths=/Library/Developer/XcodeServer/ProvisioningProfiles", 
    "-DTDKDisableSymbolCopying=YES", 
    "-scheme", 
    Newsfeeder, 
    "-skipUnavailableActions", 
    "-project", 
    "/Library/Developer/XcodeServer/Integrations/Caches/1770e1afb8f775d8c92855beba002640/Source/Newsfeeder/Newsfeeder.xcodeproj", 
    "-derivedDataPath", 
    "/Library/Developer/XcodeServer/Integrations/Caches/1770e1afb8f775d8c92855beba002640/DerivedData", 
    "-skipUnsupportedDestinations", 
    "-destination-timeout", 
    30, 
    "-DVTDeviceLogLevel=3", 
    "-DVTDeviceSearchLogLevel=3", 
    "-iPhoneSimulatorLogLevel=3", 
    "-iPhoneConnectLogLevel=3", 
    "-destination", 
    "id=A3E8ED2D-4D13-420E-8CE1-6D484E65CD03", 
    "-DVTSuppressExternalDeviceLocation=NO", 
    "-resultBundlePath", 
    "/Library/Developer/XcodeServer/Integrations/Integration-1770e1afb8f775d8c92855beba008e0d/xcodebuild_result.bundle" 
) 

[BuildService] NSTask environment: { 
    "DEVELOPER_DIR" = "/Library/Developer/XcodeServer/CurrentXcodeSymlink/Contents/Developer"; 
    PATH = "/Applications/Xcode-beta.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"; 
    XCS = 1; 
    "XCS_BOT_ID" = 1770e1afb8f775d8c92855beba002640; 
    "XCS_BOT_NAME" = "Newsfeeder Bot"; 
    "XCS_BOT_TINY_ID" = 8466E19; 
    "XCS_DERIVED_DATA_DIR" = "/Library/Developer/XcodeServer/Integrations/Caches/1770e1afb8f775d8c92855beba002640/DerivedData"; 
    "XCS_INTEGRATION_ID" = 1770e1afb8f775d8c92855beba008e0d; 
    "XCS_INTEGRATION_NUMBER" = 2; 
    "XCS_INTEGRATION_RESULT" = unknown; 
    "XCS_INTEGRATION_TINY_ID" = B989BD8; 
    "XCS_OUTPUT_DIR" = "/Library/Developer/XcodeServer/Integrations/Integration-1770e1afb8f775d8c92855beba008e0d"; 
    "XCS_SOURCE_DIR" = "/Library/Developer/XcodeServer/Integrations/Caches/1770e1afb8f775d8c92855beba002640/Source"; 
    "XCS_XCODEBUILD_LOG" = "/Library/Developer/XcodeServer/Integrations/Integration-1770e1afb8f775d8c92855beba008e0d/xcodebuild.log"; 
} 

[BuildService] Running task /usr/bin/nice /usr/bin/xcrun xcodebuild test -IDETestOperationsObserverDebugLogLevel=3 -IDEBuildOperationMaxPercentageOfConcurrentCompileTasks=80 -IDEBuildOperationQueueSetResourceManagementLogLevel=2 -DTDKSupportWirelessDevices=NO -IDEPostProgressNotifications=YES -DVTAllowServerCertificates=YES -DVTSigningCertificateSourceLogLevel=3 -DVTSigningCertificateManagerLogLevel=3 -DTDKProvisioningProfileExtraSearchPaths=/Library/Developer/XcodeServer/ProvisioningProfiles -DTDKDisableSymbolCopying=YES -scheme Newsfeeder -skipUnavailableActions -project /Library/Developer/XcodeServer/Integrations/Caches/1770e1afb8f775d8c92855beba002640/Source/Newsfeeder/Newsfeeder.xcodeproj -derivedDataPath /Library/Developer/XcodeServer/Integrations/Caches/1770e1afb8f775d8c92855beba002640/DerivedData -skipUnsupportedDestinations -destination-timeout 30 -DVTDeviceLogLevel=3 -DVTDeviceSearchLogLevel=3 -iPhoneSimulatorLogLevel=3 -iPhoneConnectLogLevel=3 -destination id=A3E8ED2D-4D13-420E-8CE1-6D484E65CD03 -DVTSuppressExternalDeviceLocation=NO -resultBundlePath /Library/Developer/XcodeServer/Integrations/Integration-1770e1afb8f775d8c92855beba008e0d/xcodebuild_result.bundle 

[BuildService, Info] Monitoring /Library/Developer/XcodeServer/Integrations/Integration-1770e1afb8f775d8c92855beba008e0d/xcodebuild.log for activity. 

[BuildService, Info] Done monitoring xcodebuild.log for activity. 
[BuildService] Scheme actions record is needed but not loaded yet, fetching. 
[BuildService] Scheme actions record loaded successfully. 
[BuildService] Completed integration step XCSBuildIntegrationStep without error 
[BuildService] Last integration with build results is needed but not loaded yet, fetching. 
[BuildService] Last integration with build results loaded successfully. 
[BuildService] Build results summary: { 
    analyzerWarningChange = 0; 
    analyzerWarningCount = 0; 
    codeCoveragePercentage = 0; 
    codeCoveragePercentageDelta = 0; 
    errorChange = 0; 
    errorCount = 1; 
    improvedPerfTestCount = 0; 
    regressedPerfTestCount = 0; 
    testFailureChange = 0; 
    testFailureCount = 0; 
    testsChange = 0; 
    testsCount = 0; 
    warningChange = 0; 
    warningCount = 0; 
} 

[BuildService] Integration commit history are needed but not loaded yet, fetching. 
[BuildService] Integration commits loaded successfully. 
[BuildService] Completed integration step XCSProcessBuildResultsIntegrationStep without error 
[BuildService] Matched device <XCSDevice 0x7fc77e82eaf0> 
{"modelUTI":"com.apple.iphone-6-plus-b4b5b9","connected":"YES","modelCode":"iPhone7,1","simulator":"YES","osVersion":"9.2","modelName":"iPhone 6 Plus","supported":"YES","deviceUDID":"A3E8ED2D-4D13-420E-8CE1-6D484E65CD03","identifier":"A3E8ED2D-4D13-420E-8CE1-6D484E65CD03","enabledForDevelopment":"YES","architecture":"x86_64","isServer":"NO","tinyID":"A3E8ED2","doc_type":"device","trusted":"YES","platformIdentifier":"com.apple.platform.iphonesimulator","name":"iPhone 6 Plus","retina":"YES"} to server device <XCSDevice 0x7fc77e398d70> 
{"osVersion":"9.2","connected":"YES","simulator":"YES","modelCode":"iPhone7,1","deviceType":"com.apple.iphone-simulator","modelName":"iPhone 6 Plus","revision":"6-71966f4a54eb01b83604036d5b31c53c","modelUTI":"com.apple.iphone-6-plus-b4b5b9","doc_type":"device","trusted":"YES","name":"iPhone 6 Plus","supported":"YES","identifier":"A3E8ED2D-4D13-420E-8CE1-6D484E65CD03","enabledForDevelopment":"YES","platformIdentifier":"com.apple.platform.iphonesimulator","ID":"11f2b4085b58a3769cd320245b004ab9","architecture":"x86_64","retina":"NO","isServer":"NO","tinyID":"37889F2"} 

[BuildService] Processing device: <XCSDevice 0x7fc77e398d70> 
{"osVersion":"9.2","connected":"YES","simulator":"YES","modelCode":"iPhone7,1","deviceType":"com.apple.iphone-simulator","modelName":"iPhone 6 Plus","revision":"6-71966f4a54eb01b83604036d5b31c53c","modelUTI":"com.apple.iphone-6-plus-b4b5b9","doc_type":"device","trusted":"YES","name":"iPhone 6 Plus","supported":"YES","identifier":"A3E8ED2D-4D13-420E-8CE1-6D484E65CD03","enabledForDevelopment":"YES","platformIdentifier":"com.apple.platform.iphonesimulator","ID":"11f2b4085b58a3769cd320245b004ab9","architecture":"x86_64","retina":"NO","isServer":"NO","tinyID":"37889F2"} 
[BuildService] Completed integration step XCSProcessTestResultsIntegrationStep without error 
    adding: xcodebuild_result.bundle/ (stored 0%) 
    adding: xcodebuild_result.bundle/1_Test/ (stored 0%) 
    adding: xcodebuild_result.bundle/1_Test/action.xcactivitylog (stored 0%) 
    adding: xcodebuild_result.bundle/1_Test/build.xcactivitylog (deflated 1%) 
    adding: xcodebuild_result.bundle/Info.plist (deflated 79%) 
[BuildService] Uploading file /Library/Developer/XcodeServer/Integrations/Integration-1770e1afb8f775d8c92855beba008e0d/xcodebuild_result.bundle.zip 
[BuildService] Uploading file /Library/Developer/XcodeServer/Integrations/Integration-1770e1afb8f775d8c92855beba008e0d/buildService.log 
[BuildService] Uploading file /Library/Developer/XcodeServer/Integrations/Integration-1770e1afb8f775d8c92855beba008e0d/xcodebuild.log 
[BuildService] Uploading file /Library/Developer/XcodeServer/Integrations/Integration-1770e1afb8f775d8c92855beba008e0d/sourceControl.log 
[BuildService] Uploading file /Library/Developer/XcodeServer/Integrations/Integration-1770e1afb8f775d8c92855beba008e0d/Session-2015-11-04_16:54:03-zpFYIF.log to relative path (null) 
[BuildService] Completed integration step XCSUploadFilesIntegrationStep without error 
[BuildService] Integration executor is finished. Exiting. 
[BuildService] Registering build service socket listeners 
[BuildService] Done registering build service socket listeners 
+0

मेरे लिए वही। क्या आप कार्थेज या कोकोपोड्स का उपयोग कर रहे हैं? – beseder

+0

@beseder नहीं, मैं किसी भी निर्भरता प्रबंधक का उपयोग नहीं कर रहा हूं। –

+0

यदि आप लाइब्रेरी/डेवलपर/एक्सकोड सर्वर में एक्सकोड सर्वर फ़ोल्डर में जाते हैं तो एक लॉग फ़ोल्डर होता है और आप बिल्ड लॉग खोल सकते हैं और – bolnad

उत्तर

2

मैं जब मैं निर्माण और सतत एकीकरण सर्वर (Xcode सेवा बॉट) पर अपने खुद के ढांचे के लिए परीक्षण चलाने के लिए करने की कोशिश की एक ही त्रुटि थी। समस्या को सबसे पहले मेरे सर्वर ऐप को संस्करण 5.1 (15S5127) और Xcode से संस्करण 7.3 (7D175) में अपग्रेड करने के बाद देखा गया था।

मेरे मामले में समाधान काफी आश्चर्यजनक साबित हुआ। मुझे यह महसूस करने में बहुत समय लगा कि समस्या तब होती है जब मैं निंबल ढांचे का उपयोग करता हूं। जब मैं अपने परीक्षण से import Nimble हटाता हूं और मानक XCTest दावे का उपयोग करता हूं, तो समस्या दूर हो जाती है।

मेरे मामले में क्या मदद मिली यह सुनिश्चित करने से पहले कि एकीकरण से पहले, निंबल ढांचे का पुनर्निर्माण किया जाता है। मैं Nimble with Carthage उपयोग कर रहा हूँ, इसलिए मैं केवल एकता उत्प्रेरक पहले में निम्न आदेश जोड़ने के लिए किया था:

cd NimbleCarthageProblem && /usr/local/bin/carthage bootstrap --platform iOS 

भी देखें स्क्रीनशॉट:

BeforeTrigger

के बाद यह बनाता है और परीक्षण सफलतापूर्वक चला कि ।

आपके लॉग से मैं नहीं देख सकता कि आप निंबल का उपयोग कर रहे हैं - यदि आप नहीं करते हैं, तो इसका मतलब यह है कि समस्या कहीं और है और मैंने अभी इसका एक और प्रकाशन अनुभव किया है।

मुझे अभी भी समझ में नहीं आता है कि एकीकरण के दौरान केवल बिल्ड सर्वर पर समस्या क्यों हो रही है। भले ही मैं बिल्ड मशीन में लॉग इन करता हूं, स्रोत कोड देखें, और इसे एक्सकोड के साथ वहां बनाएं - सब कुछ ठीक है। यह केवल एकीकरण के दौरान बॉट पर विफल रहता है। समाधान किसी अन्य कारण से आदर्श नहीं है: प्रत्येक एकीकरण से पहले निंबल का पुनर्निर्माण किया जाना चाहिए और इसे केवल स्रोत कोड में शामिल नहीं किया जा सकता है (यदि कोई इसे बेहतर दृष्टिकोण पाता है)।

यदि मुझे आशा है कि किसी और को वास्तविक समाधान मिलेगा। मैं निंबल को दोष नहीं देता - यह निश्चित रूप से चीजों का संयोजन है।

मैंने एक उदाहरण प्रोजेक्ट बनाया जहां समस्या और समाधान को अधिक जानकारी में वर्णित किया गया है। यह यहां पाया जा सकता है: https://github.com/mczenko/NimbleCarthageProblem

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