模块化日常:神奇的 pod repo push 失败
主角:CocoaPods
起因:昨天晚上在发布某个私有 CocoaPods 库的时候失败了,然后报的是 xcodebuild 失败,然后当时比较纳闷,因为命名 pod lib lint 是通过的,没道理啊,然后时间比较晚了没深究。
经过:今天再次进行了 pod repo push 操作,查找到了如下错误提示:
** BUILD FAILED ** The following build commands failed: CompileC /Users/eyrefree/Library/Developer/Xcode/DerivedData/App-ddvxltgpnwxwmveipfmtliutgvmh/Build/Intermediates.noindex/Pods.build/Release-iphonesimulator/YYCache.build/Objects-normal/x86_64/YYKVStorage.o YYCache/YYCache/YYKVStorage.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler Write auxiliary files (2 failures) 2018-02-01 10:42:19.254 xcodebuild[70694:5781552] Error saving log: Error Domain=NSPOSIXErrorDomain Code=28 "No space left on device" UserInfo={NSFilePath=/Users/eyrefree/Library/Developer/Xcode/DerivedData/App-ddvxltgpnwxwmveipfmtliutgvmh/Logs/Build/EAAA47AC-D38B-4A1C-9686-3F3DF1A40287.xcactivitylog, NSLocalizedDescription=No space left on device} | User info: { NSFilePath = "/Users/eyrefree/Library/Developer/Xcode/DerivedData/App-ddvxltgpnwxwmveipfmtliutgvmh/Logs/Build/EAAA47AC-D38B-4A1C-9686-3F3DF1A40287.xcactivitylog"; NSLocalizedDescription = "No space left on device"; }
所以是磁盘空间不足的原因导致的么,然后看了一下剩余空间,还剩 300M,emmmmmn,的确不是很多,清理出了十多 G 空间后发布成功。
结论:磁盘空间不足也会导致 CocoaPods 的 pod repo push 失败。
如有任何知识产权、版权问题或理论错误,还请指正。
https://juejin.im/post/5a7f07845188257a666f05f4
转载请注明原作者及以上信息。
相关推荐
远远的山 2020-11-09
kaidiphp 2020-10-13
JustHaveTry 2020-09-29
cloudvtech 2020-09-18
XiaoMuFireAnt 2020-09-02
BigDataMining 2020-08-21
IT兄弟团 2020-08-01
akcsdno 2020-07-21
孝平 2020-07-18
JustHaveTry 2020-07-17
kjh00abc 2020-07-08
Dxiaoru 2020-07-06
breezegao 2020-07-02
xiunai 2020-06-28
薛正华 2020-06-21
JustHaveTry 2020-06-21
丽丽 2020-06-14
shurenyun 2020-06-14
JustHaveTry 2020-06-12