{"action":"created","issue":{"url":"https://api.github.com/repos/0xced/XCDYouTubeKit/issues/101","labels_url":"https://api.github.com/repos/0xced/XCDYouTubeKit/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/0xced/XCDYouTubeKit/issues/101/comments","events_url":"https://api.github.com/repos/0xced/XCDYouTubeKit/issues/101/events","html_url":"https://github.com/0xced/XCDYouTubeKit/issues/101","id":53839284,"number":101,"title":"Compile the library not in a workspace","user":{"login":"yoasha","id":5601548,"avatar_url":"https://avatars.githubusercontent.com/u/5601548?v=3","gravatar_id":"","url":"https://api.github.com/users/yoasha","html_url":"https://github.com/yoasha","followers_url":"https://api.github.com/users/yoasha/followers","following_url":"https://api.github.com/users/yoasha/following{/other_user}","gists_url":"https://api.github.com/users/yoasha/gists{/gist_id}","starred_url":"https://api.github.com/users/yoasha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoasha/subscriptions","organizations_url":"https://api.github.com/users/yoasha/orgs","repos_url":"https://api.github.com/users/yoasha/repos","events_url":"https://api.github.com/users/yoasha/events{/privacy}","received_events_url":"https://api.github.com/users/yoasha/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-09T06:52:37Z","updated_at":"2015-01-11T13:34:45Z","closed_at":"2015-01-11T13:34:45Z","body":"Hi,\r\nFirst to say, this is an amazing library! It works perfectly and integrating the API into my project was extremely easy and fast.\r\nI found one minor limitation in the library that can be easily fixed. The library forces users to create a workspace and add their own project plus this library project in order to compile.\r\nThe following code can remove this limitation so users can choose their prefered method:\r\n```objc\r\n#ifdef XCD_YOUTUBE_KIT_TARGET_WORKSPACE\r\n  #import <XCDYouTubeKit/XCDYouTubeOperation.h>\r\n#else\r\n  #import \"XCDYouTubeOperation.h\"\r\n#endif\r\n```\r\nOr the other way around: (depends on what you'd like to the default behavior)\r\n```objc\r\n#ifndef XCD_YOUTUBE_KIT_TARGET_PROJECT\r\n  #import <XCDYouTubeKit/XCDYouTubeOperation.h>\r\n#else\r\n  #import \"XCDYouTubeOperation.h\"\r\n#endif\r\n```\r\nAny thoughts?"},"comment":{"url":"https://api.github.com/repos/0xced/XCDYouTubeKit/issues/comments/69494633","html_url":"https://github.com/0xced/XCDYouTubeKit/issues/101#issuecomment-69494633","issue_url":"https://api.github.com/repos/0xced/XCDYouTubeKit/issues/101","id":69494633,"user":{"login":"0xced","id":51363,"avatar_url":"https://avatars.githubusercontent.com/u/51363?v=3","gravatar_id":"","url":"https://api.github.com/users/0xced","html_url":"https://github.com/0xced","followers_url":"https://api.github.com/users/0xced/followers","following_url":"https://api.github.com/users/0xced/following{/other_user}","gists_url":"https://api.github.com/users/0xced/gists{/gist_id}","starred_url":"https://api.github.com/users/0xced/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xced/subscriptions","organizations_url":"https://api.github.com/users/0xced/orgs","repos_url":"https://api.github.com/users/0xced/repos","events_url":"https://api.github.com/users/0xced/events{/privacy}","received_events_url":"https://api.github.com/users/0xced/received_events","type":"User","site_admin":false},"created_at":"2015-01-11T13:34:45Z","updated_at":"2015-01-11T13:34:45Z","body":"I don’t understand what problem you are trying to solve. Importing XCDYouTubeKit.xcodeproj into a `.xcworkspace` or into another `.xcodeproj` works fine regarding header imports. Drag & drop import of direct source and header files is not supported and never will be.\r\n\r\nAlso, using [CocoaPods](http://www.cocoapods.org) or [Carthage](https://github.com/Carthage/Carthage/) can greatly reduce friction when trying to compile third-party open source libraries."}}