HTML5   发布时间:2022-04-27  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了xcode – 打开模块的导入文件:权限被拒绝大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我在另一台计算机上设置了一个远程 Git存储库和Xcode Server,然后在xcode中创建了一个bot.
每次我尝试进行新的集成时,都会失败并出现如下错误
Assertion: opening import file for module 'Accelerate': Permission denied
     File: <filename>.swift:9

如果我评论文件中的所有内容,bot会开始为另一个框架(以及另一个.swift文件)显示相同的错误.它可以是Swift或Objective-C框架.

此项目的搜索路径为:$(PROjeCT_DIR),并且“始终搜索用户路径”设置为“是”

我正在使用Xcode 7.2 beta 2,但我在App Store中遇到了与Xcode 7.1相同的问题.我尝试重新启动Xcode以及服务器和开发Mac,它没有帮助.该项目在我的开发机器上成功编译和运行.

服务器日志:(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 scheR_683_11845@e-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","-scheR_683_11845@e",NewsFeeder,"-skipUnavailableActions","-project","/Library/Developer/XcodeServer/Integrations/Caches/1770e1afb8f775d8c92855beba002640/source/NewsFeeder/NewsFeeder.xcodeproj","-derivedDataPath","/Library/Developer/XcodeServer/Integrations/Caches/1770e1afb8f775d8c92855beba002640/DerivedData","-skipUnsupportedDesTinations","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 -scheR_683_11845@e 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] scheR_683_11845@e actions record is needed but not loaded yet,fetching.
[Buildservice] scheR_683_11845@e 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","deviCEType":"com.apple.iphone-simulator","revision":"6-71966f4a54eb01b83604036d5b31c53c","modelUTI":"com.apple.iphone-6-plus-b4b5b9","ID":"11f2b4085b58a3769cd320245b004ab9","reTina":"NO","TinyID":"37889F2"}

[Buildservice] Processing device: <XCSDevice 0x7fc77e398d70>
{"osVersion":"9.2","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

解决方法

当我尝试在持续集成服务器(Xcode service Bots)上构建和运行我自己的框架的测试时,我遇到了同样的错误.将我的服务器应用程序升级到版本5.1(15S5127)和Xcode升级到版本7.3(7D175)后,首先发现了该问题.

在我的情况下,解决方案结果非常令人惊讶.我花了很多时间才意识到问题只会在我使用Nimble框架时出现.当我从测试中删除导入Nimble并使用标准的XCTest断言时,问题就消失了.

在我的案例中有助于确保在集成之前,重建Nimble框架.我使用Nimble with Carthage,所以我只需要在BeforE integration trigger中添加以下命令:

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

另见截图:

之后,它构建并成功运行测试.

从您的日志中我无法看到您是否正在使用Nimble – 如果您不使用Nimble,那么这意味着问题出在其他地方并且我刚刚经历了另一个启示.

我仍然不明白为什么问题只发生在集成期间构建服务器上.即使我登录到构建机器,查看源代码,然后使用Xcode构建它 – 一切都很好.它只在集成期间在bot上失败.解决方案不是理想的另一个原因:Nimble必须在每次集成之前重建,并且不能只包含在源代码中(如果发现这是一种更好的方法).

如果我希望其他人能找到实际的解决方案.我不怪Nimble–这是最确定的事情组合.

我创建了一个示例项目,其中更详细地描述了问题和解决方案.它可以在这里找到:https://github.com/mczenko/NimbleCarthageProblem.

大佬总结

以上是大佬教程为你收集整理的xcode – 打开模块的导入文件:权限被拒绝全部内容,希望文章能够帮你解决xcode – 打开模块的导入文件:权限被拒绝所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。