payload: {"action":"created","issue":{"url":"https://api.github.com/repos/clover/remote-pay-ios-go/issues/3","repository_url":"https://api.github.com/repos/clover/remote-pay-ios-go","labels_url":"https://api.github.com/repos/clover/remote-pay-ios-go/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/clover/remote-pay-ios-go/issues/3/comments","events_url":"https://api.github.com/repos/clover/remote-pay-ios-go/issues/3/events","html_url":"https://github.com/clover/remote-pay-ios-go/issues/3","id":469794004,"node_id":"MDU6SXNzdWU0Njk3OTQwMDQ=","number":3,"title":"Example not working on all three active branches","user":{"login":"Pranit-Harekar","id":17886017,"node_id":"MDQ6VXNlcjE3ODg2MDE3","avatar_url":"https://avatars2.githubusercontent.com/u/17886017?v=4","gravatar_id":"","url":"https://api.github.com/users/Pranit-Harekar","html_url":"https://github.com/Pranit-Harekar","followers_url":"https://api.github.com/users/Pranit-Harekar/followers","following_url":"https://api.github.com/users/Pranit-Harekar/following{/other_user}","gists_url":"https://api.github.com/users/Pranit-Harekar/gists{/gist_id}","starred_url":"https://api.github.com/users/Pranit-Harekar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pranit-Harekar/subscriptions","organizations_url":"https://api.github.com/users/Pranit-Harekar/orgs","repos_url":"https://api.github.com/users/Pranit-Harekar/repos","events_url":"https://api.github.com/users/Pranit-Harekar/events{/privacy}","received_events_url":"https://api.github.com/users/Pranit-Harekar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-07-18T14:13:29Z","updated_at":"2019-07-18T19:16:52Z","closed_at":null,"author_association":"NONE","body":"**Brief Description**: Code example not working\r\n\r\n**Environment**: \r\n- Xcode 10.2 (10E125)\r\n- iOS 12\r\n- Swift 4.2, 5\r\n\r\n**Issues per branches:**\r\nThere are three active branches on this repository. I tried all of them and here is the result,\r\n\r\n**1. `master`** \r\n\r\nI believe the `master` branch contains outdated dependencies like ObjectMapper. Here is screenshot after building the project. \r\n\r\n<img width=\"1278\" alt=\"Screen Shot 2019-07-18 at 8 36 35 AM\" src=\"https://user-images.githubusercontent.com/17886017/61460579-009e8a00-a93d-11e9-89ac-5cb6ee7de03f.png\">\r\n\r\n**2. `CloverGo_Swift4.2`** \r\n\r\nThis branch contains incompatible peer dependencies/modules. Here is the screenshot after building the project. I tried both swift 4.2 & 5 compiler options from the build settings but none of them worked.\r\n\r\n<img width=\"1278\" alt=\"Screen Shot 2019-07-18 at 8 46 59 AM\" src=\"https://user-images.githubusercontent.com/17886017/61460743-61c65d80-a93d-11e9-8f3c-69480fee53ab.png\">\r\n\r\n**3. `CloverGo_Swift5.0`** \r\n\r\nThis branch builds source code however throws error while linking frameworks. It threw following error,\r\n`Library not found for -lstdc++.6.0.9`\r\n\r\n<img width=\"1279\" alt=\"Screen Shot 2019-07-18 at 8 54 17 AM\" src=\"https://user-images.githubusercontent.com/17886017/61461295-6c352700-a93e-11e9-8142-9436bc0cb878.png\">\r\n\r\nFrom my research, I found out that lstdc++ is deprecated in iOS 12. So the only way to fix this issue was to delete (not sure if I'm suppose to replace it instead of just deleting it) the framework reference from `Other Linker Flags` as follows,\r\n\r\n<img width=\"1280\" alt=\"Screen Shot 2019-07-18 at 9 05 25 AM\" src=\"https://user-images.githubusercontent.com/17886017/61461302-6e978100-a93e-11e9-99b8-ae2e4673fdfb.png\">\r\n\r\nAfter this, I was able to get the example up and running. However I faced connectivity issues. \r\n\r\nNote: I made sure the API key, secret and a correct access token was passed to the application.\r\n\r\nHere's what I did,\r\n- After running the app, clicked on _Clover Go_ button\r\n- Selected _Demo Mode_\r\n- Clicked on _Connect_ under RP450X label\r\n- App prompted for pair request, clicked on _Pair_ button\r\n- App still showed \"No 450 Reader connected\"\r\n\r\n\r\nAfter debugging I found that sdk threw error:\r\n```\r\n2019-07-18 09:40:45.660777-0400 CloverConnector_Example[433:42754] [CoreBluetooth] XPC connection invalid\r\nReader S.No: Optional(\"17017RP10000242\"), Update Required: nil\r\n2019-07-18 09:40:47.926260-0400 CloverConnector_Example[433:42852] [CoreBluetooth] XPC connection invalid\r\n\"Error Occured while connecting to Reader\"\r\n```\r\nAs you can see, the sdk correctly discovers the device (since it shows the serial number) and connects to it (since it shows _connected_ in iPad's settings > bluetooth) but then something happens that doesn't maintain the connection.\r\n\r\nUpon setting a breakpoint in `onDeviceError` method, I found that the exact error message was `reader_data_not_avaliable`\r\n```\r\n(lldb) po deviceErrorEvent.message\r\n\"reader_data_not_avaliable\"\r\n\r\n(lldb) po deviceErrorEvent.code\r\n▿ Optional<Int>\r\n  - some : 500\r\n\r\n(lldb) po deviceErrorEvent.errorType\r\nGoConnector.CloverDeviceErrorType.EXCEPTION\r\n```\r\nUpon looking at the error in detail,\r\n\r\n<img width=\"695\" alt=\"image\" src=\"https://user-images.githubusercontent.com/17886017/61462775-3cd3e980-a941-11e9-8960-a34bbcdf3386.png\">\r\n\r\n> Unable to retrive EMV configuration parameters. Please check your network connectivity\r\n\r\nNot sure where to go from here, but I did go through the clover go troubleshooting guide, https://www.clover.com/us/en/help/troubleshoot-clover-go/. Unfortunately it doesn't help!\r\n\r\nBy the way, I tried adding `-lc++` to `Other Linker Flags` since I deleted `lstdc++` (explained above) but that didn't work either.\r\n\r\nLet me know if I can provide more details to help you debug this issue. I'm stuck and getting Clover Go integration done is really important for me and my company. Please make this a priority. I am happy schedule a pairing session via video call just so we can expedite this process. Thank you."},"comment":{"url":"https://api.github.com/repos/clover/remote-pay-ios-go/issues/comments/512950489","html_url":"https://github.com/clover/remote-pay-ios-go/issues/3#issuecomment-512950489","issue_url":"https://api.github.com/repos/clover/remote-pay-ios-go/issues/3","id":512950489,"node_id":"MDEyOklzc3VlQ29tbWVudDUxMjk1MDQ4OQ==","user":{"login":"Pranit-Harekar","id":17886017,"node_id":"MDQ6VXNlcjE3ODg2MDE3","avatar_url":"https://avatars2.githubusercontent.com/u/17886017?v=4","gravatar_id":"","url":"https://api.github.com/users/Pranit-Harekar","html_url":"https://github.com/Pranit-Harekar","followers_url":"https://api.github.com/users/Pranit-Harekar/followers","following_url":"https://api.github.com/users/Pranit-Harekar/following{/other_user}","gists_url":"https://api.github.com/users/Pranit-Harekar/gists{/gist_id}","starred_url":"https://api.github.com/users/Pranit-Harekar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pranit-Harekar/subscriptions","organizations_url":"https://api.github.com/users/Pranit-Harekar/orgs","repos_url":"https://api.github.com/users/Pranit-Harekar/repos","events_url":"https://api.github.com/users/Pranit-Harekar/events{/privacy}","received_events_url":"https://api.github.com/users/Pranit-Harekar/received_events","type":"User","site_admin":false},"created_at":"2019-07-18T19:16:52Z","updated_at":"2019-07-18T19:16:52Z","author_association":"NONE","body":"@madhavsahuclover Thank you. I sent a calendar invite for tomorrow morning 10-11 AM EST. Let me know if you received it. Also, if you are busy, feel free to suggest another timings. Thanks again,\r\n-- Pranit Harekar"}}
other: {"actor":{"display_login":"Pranit-Harekar"}}