diff: /../Podfile.lock: 没有那个文件或目录

diff: /../Podfile.lock: No such file or directory

我是 iPhone 应用程序的新手 development.when 我在 运行 应用程序中收到波纹管错误。

diff: /../Podfile.lock: 没有那个文件或目录 diff: /Manifest.lock: 没有那个文件或目录 错误:沙箱与 Podfile.lock 不同步。 运行 'pod install' 或更新您的 CocoaPods 安装。

错误消息显示了解决方案,没有构建 pods。
打开终端,转到项目的根目录,然后 运行:

pod install

如果你没有安装 cocoapods,首先 运行

sudo gem install cocoapods

然后重复之前的命令

在主项目的 xcconfig 文件中包含来自 Pods 项目的 xcconfig 文件解决了这个问题。

  1. 在Xcode中使用"Open Quickly"并输入“release.xcconfig”,
  2. 可以显示两个结果,Pods 项目的通讯员可以很容易地用前缀“Pods
  3. 来识别
  4. 将 "Pods-xyz.release.xcconfig" 包含到主项目的 realease.xcconfig 中。
  5. 对“debug.xcconfig”执行上述步骤。