google / google/EarlGrey

Using GREYHostApplicationDistantObject with CocoaPods Setup

Open
#1,201 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
5.7k
Forks
737
Avg merge
1d 20h
Merged PRs (30d)
5

Description

I've setup EG2 using CocoaPods, and ensured the base functionality works. I then followed the instructions for the [whitebox setup.
](https://github.com/google/EarlGrey/blob/earlgrey2/docs/swift-white-boxing.md)

When attempting to interact with the target app, I get the following error: `caught "NSInvalidArgumentException", "*** -[NSProxy doesNotRecognizeSelector:] called!"`

With the CocoaPods setup, do I need to create the helper bundle, and add all of the linking as specified in the other instructions? Could someone add some clarity around this?

Contributor guide

Open the contributing guide

Research direction

Start with docs/swift-white-boxing.md and compare its helper-bundle and linking instructions with the CocoaPods setup described in the issue. Reproduce the NSProxy error if possible, then clarify whether those steps are required for CocoaPods and update the setup guidance accordingly.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, objective-c
Domain
documentation, mobile-dev, testing
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.