{"action":"created","issue":{"url":"https://api.github.com/repos/happyfoxinc/helpstack/issues/44","labels_url":"https://api.github.com/repos/happyfoxinc/helpstack/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/happyfoxinc/helpstack/issues/44/comments","events_url":"https://api.github.com/repos/happyfoxinc/helpstack/issues/44/events","html_url":"https://github.com/happyfoxinc/helpstack/pull/44","id":61146098,"number":44,"title":"Fix imports","user":{"login":"chfuller-petsmart","id":8453227,"avatar_url":"https://avatars.githubusercontent.com/u/8453227?v=3","gravatar_id":"","url":"https://api.github.com/users/chfuller-petsmart","html_url":"https://github.com/chfuller-petsmart","followers_url":"https://api.github.com/users/chfuller-petsmart/followers","following_url":"https://api.github.com/users/chfuller-petsmart/following{/other_user}","gists_url":"https://api.github.com/users/chfuller-petsmart/gists{/gist_id}","starred_url":"https://api.github.com/users/chfuller-petsmart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chfuller-petsmart/subscriptions","organizations_url":"https://api.github.com/users/chfuller-petsmart/orgs","repos_url":"https://api.github.com/users/chfuller-petsmart/repos","events_url":"https://api.github.com/users/chfuller-petsmart/events{/privacy}","received_events_url":"https://api.github.com/users/chfuller-petsmart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-13T17:21:19Z","updated_at":"2015-03-17T17:53:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/happyfoxinc/helpstack/pulls/44","html_url":"https://github.com/happyfoxinc/helpstack/pull/44","diff_url":"https://github.com/happyfoxinc/helpstack/pull/44.diff","patch_url":"https://github.com/happyfoxinc/helpstack/pull/44.patch"},"body":"This simply fixes incorrect imports that prevent the code from compiling on a brand new Xcode project. (Apple changed the default setup for new Xcode projects related to imports and also removed the precompiled header). This PR allows the code to compile on a brand new Xcode project without any config changes. Thanks!"},"comment":{"url":"https://api.github.com/repos/happyfoxinc/helpstack/issues/comments/82497137","html_url":"https://github.com/happyfoxinc/helpstack/pull/44#issuecomment-82497137","issue_url":"https://api.github.com/repos/happyfoxinc/helpstack/issues/44","id":82497137,"user":{"login":"chfuller-petsmart","id":8453227,"avatar_url":"https://avatars.githubusercontent.com/u/8453227?v=3","gravatar_id":"","url":"https://api.github.com/users/chfuller-petsmart","html_url":"https://github.com/chfuller-petsmart","followers_url":"https://api.github.com/users/chfuller-petsmart/followers","following_url":"https://api.github.com/users/chfuller-petsmart/following{/other_user}","gists_url":"https://api.github.com/users/chfuller-petsmart/gists{/gist_id}","starred_url":"https://api.github.com/users/chfuller-petsmart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chfuller-petsmart/subscriptions","organizations_url":"https://api.github.com/users/chfuller-petsmart/orgs","repos_url":"https://api.github.com/users/chfuller-petsmart/repos","events_url":"https://api.github.com/users/chfuller-petsmart/events{/privacy}","received_events_url":"https://api.github.com/users/chfuller-petsmart/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T17:53:51Z","updated_at":"2015-03-17T17:53:51Z","body":"Hi. Sure. New Xcode projects no longer have precompiled prefix headers. The prefix headers traditionally included both Foundation and UIKit. So any classes that utilized them were always free to do so. But now, each class that uses those frameworks needs to explicitly import the ones it needs. The HSAppearance and HSAttachment classes use UIKit but are not importing it, so it the build fails. Now as far as the HSDeskGear, HSHappyFoxGear and HSZenDeskGear classes go, they are simply using a non-namespaced import for an AFNetworking class, and this also prevents the build on a new Xcode project. Using a namespaced import, meaning prefacing with AFNetworking, allows the compiler to locate those classes within the AFNetworking framework.\r\n\r\nSee attached screenshot. This is a brand new Xcode project with AFNetworking added as a framework.\r\n\r\nOnce I change the imports as they are in this pull request, all the errors are fixed.\r\n\r\nThanks!\r\n\r\n![screen shot 2015-03-17 at 10 45 20 am](https://cloud.githubusercontent.com/assets/8453227/6693865/3bb9f920-cc93-11e4-93c5-f587f4ce0ecd.png)"}}