美文网首页
attempted to initialize an objec

attempted to initialize an objec

作者: Sweet丶 | 来源:发表于2021-08-17 15:43 被阅读0次

在执行了合并分支代码后,我们可能误操作了文件,然后执行pod install,会有黄色警告:
[!]<PBXSourcesBuildPhase UUID=50E88F042645BE51004E4ED1>attempted to initialize an object with an unknown UUID.04986479265CF44100421F86for attribute:files. This can be the result of a merge and the unknown UUID is being discarded.

解决方式就是在项目文件夹下命令行执行指令:

cat xxxApp.xcodeproj/project.pbxproj | grep 04986479265CF44100421F86
结果:
04986479265CF44100421F86 /* Meta.m in Sources */,

我们根据自己的情况去修改好再执行pod install就可以了。

我的改法是找到xxxApp.xcodeproj -> 右击显示包内容 -> 打开project.pbxproj文件 -> 把unknown的UUID复制(比如上面的04986479265CF44100421F86)查找到 -> 去掉这行 -> 运行测试没问题 -> ok

pbxproj分析笔记

相关文章

网友评论

      本文标题:attempted to initialize an objec

      本文链接:https://www.haomeiwen.com/subject/arkibltx.html