【问题标题】:upgraded to swift 2, and cocoapods -.38.2 now getting build error Command /bin/sh failed with exit code 23升级到 swift 2,cocoapods -.38.2 现在出现构建错误 Command /bin/sh failed with exit code 23
【发布时间】:2015-09-15 12:29:45
【问题描述】:

如何诊断此错误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

【问题讨论】:

标签: xcode swift2


【解决方案1】:

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

产品 -> 按住 ALT -> 清理构建文件夹

【讨论】:

  • 谢谢!!但是为什么首先出现这个错误呢?我说:xcode rsync 错误:无法在 /SourceCache/rsync/rsync-45/rsync/main.c(992) [sender=2.6.9] 命令 /bin/sh 传输某些文件(代码 23)退出代码 23
  • 看起来 rsync 出了点问题,通常当目标中没有空间时会抛出错误 23。不知道为什么会在这里发生。无论如何,谢谢你,它也对我有用。
【解决方案2】:

删除派生数据也可以 Xcode -> Preferences -> Locations -> 点击派生数据箭头 -> 将派生数据文件夹拖到垃圾桶

【讨论】:

    【解决方案3】:

    我也有同样的情况,但没有任何帮助。我从项目中删除了 Pods 文件夹并再次运行 pod install。成功了……

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-06-09
      • 2020-02-23
      • 2019-03-27
      • 2012-10-11
      • 1970-01-01
      • 1970-01-01
      • 2020-07-30
      • 1970-01-01
      相关资源
      最近更新 更多