ios - How to know why file isn't transferring? -


i'm transferring file ios watchos. applicationcontext , userinfo transfers work fine. when run following code, nothing transferred. filetransfer.transferred == false.

let filetransfer = wcsession.defaultsession().transferfile(fileurl, metadata: dict) 

i can see of attempts queued when at:

let transfers = wcsession.defaultsession().outstandingfiletransfers 

is there can check provide feedback why nothing getting transferred? i'm using simulators. file plist file. i'm accessing this:

let fileurl = nsurl(fileurlwithpath: nsbundle.mainbundle().pathforresource("myfile", oftype: "plist")!) 

fileurl return file path.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -