Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find 'EDOHostPort' in scope #1967

Open
ken4ward opened this issue Aug 21, 2023 · 2 comments
Open

Cannot find 'EDOHostPort' in scope #1967

ken4ward opened this issue Aug 21, 2023 · 2 comments

Comments

@ken4ward
Copy link

Recently, whenever I want to intsall EarlGrey it always return this errors:

  1. EarlGrey.swift:183:18 Cannot find 'EDOHostPort' in scope
  2. EarlGrey.swift:183:54 'nil' requires a contextual type
  3. EarlGrey.swift:183:79 'nil' requires a contextual type
  4. EarlGrey.swift:184:27 Cannot find 'remoteClassObject' in scope

I'm wondering if anything has changed recently in the installation process?

@ganapathy-shan
Copy link

ganapathy-shan commented Aug 31, 2023

@ken4ward I faced similar issues and I found that below changes resolve the issues.

  • Add #import "../eDistantObject/Channel/Sources/EDOHostPort.h" in the bridging header of Test target.
  • Replace remoteClassObject with the classObject as below snippet.
    guard let remoteClass: T.Type = EDOClientService<AnyObject>.classObject(withName: String(describing: T.self), hostPort: hostPort) as? T.Type

@mcorner
Copy link

mcorner commented Oct 17, 2023

Nice, thanks for this.

In my case, I am using pods, so:
#import "../Pods/eDistantObject/Channel/Sources/EDOHostPort.h"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants