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

Failed to build project for debug: Cannot find type 'JSONRPC' in scope #1390

Open
Andoran90 opened this issue Jul 23, 2024 · 3 comments
Open
Labels
bug Something isn't working

Comments

@Andoran90
Copy link

Describe the bug
When upgrading to 1.19.0 and higher failed to build project in debug, because of Cannot find type 'JSONRPC' in scope.

func getSessionRequest(id: JSONRPC.RPCID) -> (request: Request, context: VerifyContext?)? {
    fatalError("Unimplemented")
}

Remove JSONRPC. so the project can be build in debug

SDK Version

  • Client: Swift
  • Version 1.19.0 and higher

To Reproduce
Steps to reproduce the behavior:

  1. Add pod 'WalletConnectSwiftV2', :git => 'https://github.com/WalletConnect/WalletConnectSwiftV2', :tag => '1.19.0'
  2. Click on Build button
  3. See error Cannot find type 'JSONRPC' in scope

Expected behavior
Build successful

Screenshots
image

@Andoran90 Andoran90 added the bug Something isn't working label Jul 23, 2024
@llbartekll
Copy link
Contributor

hey, I would guess it's some xcode issue, have you been able to resolve?

@Andoran90
Copy link
Author

there is preprocessor #if Debug, so this code compiling for Debug builds. To resolve this I need to navigate to this file and remove JSONRPC., because this doesn't exist. Swift doesn't support namespaces and there are no entity JSONRPC, so this is definitely should be removed.

@Andoran90
Copy link
Author

@llbartekll hello.
Is there any updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants