{"action":"opened","issue":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/16591","repository_url":"https://api.github.com/repos/lionheart/openradar-mirror","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/16591/labels{/name}","comments_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/16591/comments","events_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/16591/events","html_url":"https://github.com/lionheart/openradar-mirror/issues/16591","id":197070713,"number":16591,"title":"29779788: WCSession doesn’t inform delegate of success/failure of file transfer with breakpoint on main queue","user":{"login":"openradar-mirror","id":13605213,"avatar_url":"https://avatars.githubusercontent.com/u/13605213?v=3","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"labels":[{"id":243427767,"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/classification:serious%20bug","name":"classification:serious bug","color":"e11d21","default":false},{"id":243427737,"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/reproducible:always","name":"reproducible:always","color":"5319e7","default":false},{"id":243427744,"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/status:open","name":"status:open","color":"009800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/5","html_url":"https://github.com/lionheart/openradar-mirror/milestone/5","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/5/labels","id":1237419,"number":5,"title":"watchOS SDK","description":null,"creator":{"login":"openradar-mirror","id":13605213,"avatar_url":"https://avatars.githubusercontent.com/u/13605213?v=3","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"open_issues":32,"closed_issues":0,"state":"open","created_at":"2015-08-03T02:08:32Z","updated_at":"2016-12-22T01:01:49Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-12-22T01:01:49Z","updated_at":"2016-12-22T01:01:49Z","closed_at":null,"body":"#### Description\n\nSummary:\r\nUsing `transferFile:metadata:` on `WCSession` doesn’t provide the `session:didFinishFileTransfer:error:` callback and doesn’t update `outstandingFileTransfers` property even though the file is transferred to the counterpart iOS app when a breakpoint is applied in during the operation of sending the file.\r\n\r\nAttached screenshots show the out of sync data because there was no success/failure callback on the watchOS device.\r\n\r\nThis causes extreme difficulty in debugging logic around WatchConnectivity transfers on watchOS.\r\n\r\nSample project available [here](https://github.com/mattrobmattrob/WatchConnectivityTransferFileTest).\r\n\r\nSteps to Reproduce:\r\n1. Open sample project and build `WatchConnectivity WatchApp` for simulator or device.\r\n2. Open the Apple Watch app and the iOS app at the same time.\r\n3. Tap the 1, 2, 3, and “All Files” buttons in any order or frequency.\r\n4. See the watchOS and iOS labels updated as expected as files are sent between the devices based on the button presses.\r\n5. Add a breakpoint at `InterfaceController.m::95` with `po self.session.outstandingFileTransfers.count` or something with a  more complicated print out.\r\n6. Tap the 1, 2, 3, and “All Files” buttons in any order or frequency.\r\n\r\nExpected Results:\r\nSee the watchOS and iOS labels updated as expected as files are sent between the devices based on the button presses and confirmation is received from `WCSession`.\r\n\r\nActual Results:\r\niOS labels and watchOS’s attempted labels update as expected. The `session:didFinishFileTransfer:error:` is never received for some or all files.\r\n\r\nVersion:\r\nXcode Version 8.2 (8C38)\r\n\r\nDevices:\r\niPhone 7, iOS 10.2 (14C92)\r\nApple Watch Series 2, 38 mm, watchOS 3.1 (14S471)\r\n\r\nSimulators:\r\niPhone 7 Plus Simulator, iOS 10.2 (14C89)\r\nApple Watch Series 2 Simulator, 48 mm, watchOS 3.1 (14S471a)\r\n\r\nNotes:\r\n\r\n\r\nConfiguration:\r\nDoesn't occur without a breakpoint set. Begins dropping delegate callbacks when breakpoint is set.\r\n\r\nAttachments:\r\n'Simulator Screen Shot Dec 21, 2016, 4.13.06 PM.png', 'Simulator Screen Shot Dec 21, 2016, 4.13.05 PM.png' and 'WatchConnectivityBug.zip' were successfully uploaded.\n\n-\nProduct Version: watchOS 3.1\nCreated: 2016-12-22T00:24:15.031970\nOriginated: 2016-12-21T00:00:00\nOpen Radar Link: http://www.openradar.me/29779788"}}
{"actor":{"display_login":"openradar-mirror"}}