Failed to build project for debug: `Cannot find type 'JSONRPC' in scope`
Andoran90 opened this issue · 3 comments
Andoran90 commented
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:
- Add pod 'WalletConnectSwiftV2', :git => 'https://github.com/WalletConnect/WalletConnectSwiftV2', :tag => '1.19.0'
- Click on Build button
- See error
Cannot find type 'JSONRPC' in scope
Expected behavior
Build successful
llbartekll commented
hey, I would guess it's some xcode issue, have you been able to resolve?
Andoran90 commented
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 commented
@llbartekll hello.
Is there any updates on this?