本文介绍了升级到swift 2,并且cocoapods -.38.2现在出现构建错误命令/bin/sh失败,退出代码为23的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何诊断此错误Command /bin/sh failed with exit code 23

sent 130971 bytes  received 42 bytes  262026.00 bytes/sec
total size is 130816  speedup is 1.00
rsync -auv "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftSecurity.dylib" "/Users/jinteki/Library/Developer/Xcode/DerivedData/MyApp-xyz/Build/Products/Debug-iphonesimulator/MyApp.app/Frameworks"
building file list ... rsync: link_stat "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftSecurity.dylib" failed: No such file or directory (2)
done

sent 29 bytes  received 20 bytes  98.00 bytes/sec
total size is 0  speedup is 0.00
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-45/rsync/main.c(992) [sender=2.6.9]
Command /bin/sh failed with exit code 23

推荐答案

我遇到了同样的问题,并通过以下方式清理了构建文件夹:

I had this same issues and I cleaned the Build Folder via:

产品->按住ALT键->清理生成文件夹

Product -> hold ALT pressed -> Clean Build Folder

这篇关于升级到swift 2,并且cocoapods -.38.2现在出现构建错误命令/bin/sh失败,退出代码为23的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 09:22