EarlGrey icon indicating copy to clipboard operation
EarlGrey copied to clipboard

Crash happened after upgrading to Earlgrey 2.0 via CocoaPods

Open TLiu2121999 opened this issue 4 years ago • 9 comments

I upgrated from EarlGrey 1 to 2.0 by changing Podfile, following the doc here: https://chromium.googlesource.com/external/github.com/google/EarlGrey/+/earlgrey2/docs/cocoapods-setup.md

But after that, every time I build my app, it crashed with these logs: 2020-09-01 12:38:18.726560-0700 Chatter[68904:10543992] Fatal failure: EarlGrey's app component has been launched without edoPort assigned. You are probably running the application under test by itself, which does not work since the embedded EarlGrey component needs its test counterpart present. in /Users/brettfazio/dev/build/EarlGrey/AppFramework/DistantObject/GREYHostApplicationDistantObject.m:96 (lldb)

Should I change any other configurations besides the podfile?

TLiu2121999 avatar Sep 01 '20 20:09 TLiu2121999

I believe pinning eDO to 1.0.0 in your podfile and making sure EarlGreyApp is added to the application component as well should fix this. Maybe adding your Podfile would help here.

tirodkar avatar Sep 01 '20 20:09 tirodkar

@tirodkar Please see my changes in podfile and .lock: Podfile: image

Podfile.lock: image

TLiu2121999 avatar Sep 01 '20 21:09 TLiu2121999

also what do you mean by saying "making sure EarlGreyApp is added to the application component"? @tirodkar

TLiu2121999 avatar Sep 01 '20 21:09 TLiu2121999

could you add me to the slack channel or google room please? I'm not able to open either of them

TLiu2121999 avatar Sep 01 '20 21:09 TLiu2121999

eDistantObject is both in the app and test, though the Podfile.lock should apply to both of them. Adding you to the channel.

tirodkar avatar Sep 01 '20 21:09 tirodkar

hi @tirodkar i'm having this issue as well, is it the same root cause with #971 ?

teddysantyaa avatar Sep 02 '20 15:09 teddysantyaa

hi @tirodkar I am also tracking this issue. can you please add me to the slack channel or google room?

githubist16 avatar May 02 '21 08:05 githubist16

Hi @tirodkar same as above please I have been stuck with this issue for a while

kgpmurray avatar May 11 '21 19:05 kgpmurray

This issue is fixed. See this comment in issue #971.

adil-hussain-84 avatar Jan 05 '22 15:01 adil-hussain-84