< PBXResourcesBuildPhase UUID = ..>尝试初始化具有未知UUID的对象 [英] <PBXResourcesBuildPhase UUID=..> attempted to initialize an object with an unknown UUID

查看:111
本文介绍了< PBXResourcesBuildPhase UUID = ..>尝试初始化具有未知UUID的对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为一个项目进行了SVN签到。之后,我通过 terminal 安装了pod。安装pod后,几乎没有警告提示

I have taken SVN check-in for a project. Thereafter I have installed pod via terminal. After installation of pod there are few warning stating

    <PBXResourcesBuildPhase UUID=...> attempted to initialise an 
    object with an unknown UUID.


可能是什么原因? 此警告是否紧急

推荐答案

在我的案例中发生的原因是某个开发人员更新了pod一段时间后,我安装了一个新的Pod B(没有更新的Pod A)。因此,当我合并他的代码时,我得到了警告。

The reason that happened in my case was some developer updated a pod A while I installed a new pod B (without updated pod A). So when I merged his codes I got the warning.

一种简单的解决方法是

1. remove libPods.a from General->Linked Frameworks and libraries 
2. run `pod install` or `pod update "an-existing-pod"` again. 

步骤2的目的是更新.xcodeproj文件,而不是再次安装pod。如果pod已经存在,cocoapods只会更新.xcodeproj文件。

For step #2 the purpose is to update .xcodeproj file not to install pod again. If pod is already there cocoapods will just update .xcodeproj file.

这篇关于&lt; PBXResourcesBuildPhase UUID = ..&gt;尝试初始化具有未知UUID的对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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