cocoapods - 命令/bin/sh 失败,退出代码为 23

标签 cocoapods xcode7

我尝试将应用程序从 Swift 1.2 更新到 iOS 9.0、Xcode 7 和 Swift 2.0 - 但当我尝试编译该应用程序时,我的 pod 遇到了一些问题。

我收到以下错误:

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

已经检查了一些解决方案,但没有任何对我有用:

已经尝试过:

  • 删除所有 Pod,然后重新安装
  • 使用 sudo gem update cocoapods --pre 更新了 cocoapods(至测试版)
  • 删除了 cocoapods 并重新安装
  • 尝试过“use_frameworks!”对于所有 pod,并且没有

但是还是同样的错误。有任何想法吗?

最佳答案

我解决了同样的问题,我在项目中删除了一次“Build”文件夹。

同样的问题:upgraded to swift 2, and cocoapods -.38.2 now getting build error Command /bin/sh failed with exit code 23

但我无法使用“清理构建文件夹”,因此我在 Mac Finder 中删除了“构建”文件夹。

关于cocoapods - 命令/bin/sh 失败,退出代码为 23,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32653367/

相关文章:

ios - 在 github 之外创建私有(private) cocoapods 仓库

ios - Cocoa Pods 需要完全重新安装

swift - 背景颜色清晰的 UIToolbar 在 iOS 10 中变为白色

iOS 9 : low energy -> do developers have to prepare for that?

ios - 该应用程序正在从后台线程修改自动布局引擎。

ios - 为 iOS 9 启用 Bitcode 会使 IPA 大小增加 3 倍,这是 App Store 上的大小吗?

ios - 使用 Swift 和 Objective-C 构建 Cocoapod : How to Deal with Umbrella Header Issues?

ios - pod install CocoaPods 找不到 pod "React/Core"的兼容版本

ios - "Google/Analytics.h file not found"将 pod 更新到 GoogleAnalytics 后

ios - 无法将时间 'Int' 的值转换为 Swift 2 中的预期参数类型 'NSPropertyListReadOptions'