iOS调试技巧

xcodebuild自动打包报错

2017-11-21  本文已影响46人  loongod
2017-11-21 16:31:05.628 xcodebuild[13268:34040] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/qj/n7prngwd6x3cyrm_0cvtph500000gn/T/QDMainApp_2017-11-21_16-31-05.627.xcdistributionlogs'.
error: exportArchive: “*.ipa” couldn’t be copied because you don’t have permission to access “Macintosh HD”.

Error Domain=NSCocoaErrorDomain Code=513 "“*.ipa” couldn’t be copied because you don’t have permission to access “Macintosh HD”." UserInfo={NSSourceFilePathErrorKey=/var/folders/qj/n7prngwd6x3cyrm_0cvtph500000gn/T/XcodeDistPipeline.M2X/Packages/*.ipa, NSUserStringVariant=(
    Copy
), NSDestinationFilePath=/*.ipa, NSFilePath=/var/folders/qj/n7prngwd6x3cyrm_0cvtph500000gn/T/XcodeDistPipeline.M2X/Packages/*.ipa, NSUnderlyingError=0x7fd1770ed8c0 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}

** EXPORT FAILED **

最后排查问题原因是:导出的路径设置错误 只设置了/

xcodebuild -exportArchive -archivePath ${archivePath} -exportPath ${exportPath} -exportOptionsPlist ./ExportPlist.plist

把exportPath路径设置一个正确的路径就OK了

从开发者网站创建的描述文件下载本地后,本地描述文件名字改变问题

最近写自动打包脚本,脚本配置里写好描述文件名称,然后用命令获取描述文件的UUID,发现从网站上下载到本地的文件名是变了,比如:我在开发者网站上创建了描述文件名为:com.aaa.www_develement,但是下载到本地后文件名会变成comaaawww_develement.mobileprovision,还有如果带"(" ")"左右括弧的话,也会删除掉的。

** ARCHIVE FAILED **


The following build commands failed:
    CompileC /Users/ddfish/Library/Developer/Xcode/DerivedData/qding-gifjmyptimrvtmfjijswgkqcduad/Build/Intermediates.noindex/ArchiveIntermediates/QDMainApp/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/BYStatistics.build/Objects-normal/armv7/BYStatDataHandleManager+DeleteData.o 
BYStatistics/BYStat/BYStatFiles/Category/BYStatDataHandleManager+DeleteData.m 
normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

archive失败 是因为少了这个类别

上一篇下一篇

猜你喜欢

热点阅读