如何使用EarlGrey处理PBXCp错误?

时间:2017-03-16 06:33:39

标签: earlgrey

enter image description here

最近,当我进行pod更新,pod安装,然后使用EarlGrey执行我的测试用例时,我一直收到此错误。 当我尝试使用终端解决路径时,我在该路径中没有任何内容,我的系统中也没有EarlGrey-1.0.0。 enter image description here

2 个答案:

答案 0 :(得分:2)

同样的答案似乎很简单。 虽然不得不经常挣扎找到很多与EarlGrey开发团队来回徘徊。

第一步是修复'podfile'。 详情如下:

我遇到问题时,我的podfile看起来像这样。

enter image description here

无法弄明白。重复删除'Podfile.lock'和'Pods'文件夹并执行'Pod update'和'Pod install'。没有运气。

然后我尝试通过直接从我的finder浏览“框架”来更改Build Phases中“EarlGrey Copy Files”中的路径。虽然这可以暂时解决我的问题,但它不是永久性的。我检查了我的方案,以确保没有任何东西搞砸了!

enter image description here enter image description here 如果所有这些都完好无损,那么问题就在于podfile。根据此处提到的说明:https://github.com/google/EarlGrey/blob/master/docs/install-and-run.md#step-2-add-earlgrey-as-a-framework-dependency

或者看看下面我修复的podfile: 按照安装后挂钩中的说明添加此行。然后执行pod安装和清理构建,应该解决问题。

答案 1 :(得分:0)

虽然上述更改可能会解决问题,但是在earlgrey gem 0.2发布之后,整合过程应该比你的Podfile中的任何post_installrequire更顺畅。

了解更多信息here