Xcode中Pods.debug.xcconfig的路径不正确? [英] Incorrect path for Pods.debug.xcconfig in Xcode?

查看:296
本文介绍了Xcode中Pods.debug.xcconfig的路径不正确?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我在使用CocoaPods的Xcode项目中使用了 Venmo / Synx ,它完全搞砸了一切。

so I used Venmo/Synx on my Xcode project with CocoaPods, and it completely screwed everything up.

我能够修复Manifest.lock和Podfile.lock错误,但是现在我得到了这个错误:

I was able to fix the Manifest.lock and Podfile.lock errors, but now I am getting this error:


无法打开文件 Pods.debug.xcconfig,因为没有这样的文件。 (/ Users / user / GitHub / xxxxxx / Pods / Pods / Target Support Files / Pods / Pods.debug.xcconfig)

The file "Pods.debug.xcconfig" couldn’t be opened because there is no such file. (/Users/user/GitHub/xxxxxx/Pods/Pods/Target Support Files/Pods/Pods.debug.xcconfig)

As您会看到路径不正确,因为没有 Pods / Pods 目录(有一个额外的Pod)。

As you can see, the path is incorrect, as there is no Pods/Pods directory (there is one extra pod).

我该如何解决?我只将 PODS_ROOT 添加到用户定义的变量中,因为它固定了我的Podfile和Manifest.lock文件。

How can I fix this? I have only added PODS_ROOT to the user-defined variable, as that fixed my Podfile and Manifest.lock files.

任何帮助将不胜感激!

编辑:

添加PODS_ROOT之后,运行 pod install 时会得到此提示。

After adding PODS_ROOT, I get this when running pod install.

[!] The `Project [Debug]` target overrides the `PODS_ROOT` build setting defined in `Pods/Target Support Files/Pods/Pods.debug.xcconfig'. This can lead to problems with the CocoaPods installation
    - Use the `$(inherited)` flag, or
    - Remove the build settings from the target.


推荐答案

我在Xcode 6.1.1中遇到了相同的问题。我执行以下操作来解决它:

I had the same problem in Xcode 6.1.1. I did the following to solve it:


  1. 为Pods相关目标设置配置文件设置*无。

  2. 关闭.xcworkspace。

  3. 再次运行pod安装

  4. 现在打开并构建您的.xcworkspace

  1. Set the configuration file setting* "None" for the Pods related target.
  2. Close the .xcworkspace.
  3. run pod install again
  4. now open and build your .xcworkspace

*通过选择项目(而非目标)然后选择信息选项卡,可以找到配置文件设置。

*The configuration file setting is found by selecting the project (not the target) and then the Info tab.

这篇关于Xcode中Pods.debug.xcconfig的路径不正确?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆