Create Swift Framework ,
Geolens.swift
When i am trying to access in Objective-C project , cannot call 2 methods
createuser
& startSessionForUser
Getting error like this
Method cannot be marked @objc because the type of the parameter cannot be represented in Objective-C
Your problem is in errorCode: Int?
in UserCompletionBlock
.
Int
is value type
, and Objective C
cannot represent Optional
of value type
, only reference types
such as class
will.
So you have to either:
NSNumber
or your own wrapper