cocoa programming pods error diff:/../Podfile.lock...

来源:互联网 发布:注册域名流程 知乎 编辑:程序博客网 时间:2024/06/03 21:16

If you had encountered this problem, and use common way to handle it without result, you can try the following way.

Everything appears correct in the project info:

enter image description here

However, when I go to the target's User-Defined Build Settings, the PODS_ROOT entry is either entirely missing or is empty for one or more configurations. Which causes the following error on build:

enter image description here

The simplest fix is to close the project in Xcode and reopen it.

If you go to the target's Build Settings and filter on All, you will now see the PODS_ROOT entry with no errors:

enter image description here

It should now build with no errors.


Note: Even Cocoa Pods' official AFNetworking iOS Example has this problem, which leads me to believe that it is a bug with Xcode.

An alternative fix is to manually change the configuration to None, then back to its original value:

enter image description here


0 0
原创粉丝点击