swift - Xcode 7.3 update error: "Use of unresolved identifier WLHttpMethodGet" -


i'm developing native ios swift application mobilefirst backend, , have integrated therefore mobilefirst api in xcode project.

since latest update xcode 7.3 , swift 2.2 i'm getting error: "use of unresolved identifier wlhttpmethodget" when calling adapters though wlhttpmethodget method in code:

    let request = wlresourcerequest(url: nsurl(string: "/adapters/sampleadapter/adaptermethod"), method: wlhttpmethodget)      request.setqueryparametervalue("...", forname: "..")      request.sendwithcompletionhandler { ( response: wlresponse,  error: nserror) -> void in         if(error != nil){             ...         }         else if(response != nil){             ...         }     } 

specifically in line:

let request = wlresourcerequest(url: nsurl(string: "/adapters/sampleadapter/adaptermethod"), method: wlhttpmethodget) 

is there existing solution issue?

this defect in product discovered using latest swift release (v2.2).

you may want open pmr (support ticket) in order track while development team investigating.

a workaround use string "get" in place of constant.


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -