{"action":"created","issue":{"url":"https://api.github.com/repos/BruceBuckland/SignIn-awsmhh/issues/4","repository_url":"https://api.github.com/repos/BruceBuckland/SignIn-awsmhh","labels_url":"https://api.github.com/repos/BruceBuckland/SignIn-awsmhh/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/BruceBuckland/SignIn-awsmhh/issues/4/comments","events_url":"https://api.github.com/repos/BruceBuckland/SignIn-awsmhh/issues/4/events","html_url":"https://github.com/BruceBuckland/SignIn-awsmhh/issues/4","id":186349758,"number":4,"title":"Can't integrate this work to own project","user":{"login":"Domsware","id":385357,"avatar_url":"https://avatars.githubusercontent.com/u/385357?v=3","gravatar_id":"","url":"https://api.github.com/users/Domsware","html_url":"https://github.com/Domsware","followers_url":"https://api.github.com/users/Domsware/followers","following_url":"https://api.github.com/users/Domsware/following{/other_user}","gists_url":"https://api.github.com/users/Domsware/gists{/gist_id}","starred_url":"https://api.github.com/users/Domsware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Domsware/subscriptions","organizations_url":"https://api.github.com/users/Domsware/orgs","repos_url":"https://api.github.com/users/Domsware/repos","events_url":"https://api.github.com/users/Domsware/events{/privacy}","received_events_url":"https://api.github.com/users/Domsware/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":26,"created_at":"2016-10-31T17:44:49Z","updated_at":"2016-11-03T14:03:52Z","closed_at":null,"body":"After spending some time studying this project, I want to integrate it in my own project. Hélas, without success.\r\n\r\n## What I have done\r\nReplaced `AWSMobileHubHelper.framework` and `ViewController.swift` obtained at AWS Mobile console by _SignIn-awsmhh_'s. \r\n \r\n## Problem\r\nApp crashed after few seconds with following error:\r\n`*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSDictionaryM removeObjectForKey:]: key cannot be nil'`\r\n\r\nThis seems to be related to Identity Pool Configuration as stated by the log:\r\n```\r\nAWSiOSSDK v2.4.11 [Debug] AWSURLSessionManager.m line:553 | -[AWSURLSessionManager printHTTPHeadersForResponse:] | Response headers:\r\n{\r\n    Connection = \"keep-alive\";\r\n    \"Content-Length\" = 143;\r\n    \"Content-Type\" = \"application/x-amz-json-1.1\";\r\n    Date = \"Mon, 31 Oct 2016 17:28:24 GMT\";\r\n    \"x-amzn-ErrorMessage\" = \"Invalid identity pool configuration. Check assigned IAM roles for this pool.\";\r\n    \"x-amzn-ErrorType\" = \"InvalidIdentityPoolConfigurationException:\";\r\n    \"x-amzn-RequestId\" = \"6d551129-9f8f-11e6-93ad-1f2317c04f0e\";\r\n}\r\n```\r\n\r\n`AWSKeys.xcconfig` is the same as in the SignIn-awsmhh project."},"comment":{"url":"https://api.github.com/repos/BruceBuckland/SignIn-awsmhh/issues/comments/258150956","html_url":"https://github.com/BruceBuckland/SignIn-awsmhh/issues/4#issuecomment-258150956","issue_url":"https://api.github.com/repos/BruceBuckland/SignIn-awsmhh/issues/4","id":258150956,"user":{"login":"BruceBuckland","id":19410759,"avatar_url":"https://avatars.githubusercontent.com/u/19410759?v=3","gravatar_id":"","url":"https://api.github.com/users/BruceBuckland","html_url":"https://github.com/BruceBuckland","followers_url":"https://api.github.com/users/BruceBuckland/followers","following_url":"https://api.github.com/users/BruceBuckland/following{/other_user}","gists_url":"https://api.github.com/users/BruceBuckland/gists{/gist_id}","starred_url":"https://api.github.com/users/BruceBuckland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BruceBuckland/subscriptions","organizations_url":"https://api.github.com/users/BruceBuckland/orgs","repos_url":"https://api.github.com/users/BruceBuckland/repos","events_url":"https://api.github.com/users/BruceBuckland/events{/privacy}","received_events_url":"https://api.github.com/users/BruceBuckland/received_events","type":"User","site_admin":false},"created_at":"2016-11-03T14:03:52Z","updated_at":"2016-11-03T14:03:52Z","body":"@Domsware \r\nThere are 2 approaches to connecting the libraries to your code.\r\n\r\n##### Maybe you can help me make this better.\r\n\r\nDo you know how to make the script that builds aws-mobilehub-helper-ios put the modules in the framework so that I can use the debugger?  That would be MUCH simpler.  But I could not make it work.  It works for the AWS Cocoapods.  But it doesn't work for MobileHubHelper.framework (which is a static library).\r\n\r\nYou say you use Carthage.  I have never tried that.  Does that make the debugging problem easier?\r\n\r\n##### The two approaches\r\nWhich one you use depends on how much you want to be able to use \"lldb\" (the debugger) in the AWS code.\r\n\r\nFor me, I MUST run the debugger in AWS code because I keep finding bugs, and it is so poorly documented that I need to use the debugger to figure out problems.  So I do #2, but #1 is simpler.\r\n\r\n2 options (choose 1)\r\n\r\n1) Build the library and drag the .framework file into frameworks. \r\n- if you do that you leave the \"import AWSMobileHubHelper\" lines alone - and they work.\r\n\r\n2) Create the whole project as a submodule in git of my project. This gives me full access to the debugger.  But I have to do two extra things:\r\n- create a \"projectname-bridging-header.h\" file and specify it in the build settings\r\n- Comment out all the lines that say the \"import AWSMobileHubHelper\" lines (which fail)\r\n\r\n\r\n\r\nI create a \"git submodule\" for the repository.  This is done by going to your project directory and:\r\n```\r\ngit submodule add https://github.com/BruceBuckland/aws-mobilehub-helper-ios.git\r\n```\r\nThat creates a submodule link in your git repository. \r\n\r\nThen right click your project and \"Add files....\" and I choose the \"MobileHubHelper\" directory, and choose options, and UNCLICK the \"Copy Items as Needed\".\r\n\r\nThen whenever the aws-mobilehub-helper-ios changes I just do a\r\n"}}
{"actor":{"display_login":"BruceBuckland"}}