{"action":"created","issue":{"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-objc/issues/280","labels_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-objc/issues/280/labels{/name}","comments_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-objc/issues/280/comments","events_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-objc/issues/280/events","html_url":"https://github.com/AzureAD/azure-activedirectory-library-for-objc/issues/280","id":62436765,"number":280,"title":"Appropriate NSBundle search","user":{"login":"damienpontifex","id":1321276,"avatar_url":"https://avatars.githubusercontent.com/u/1321276?v=3","gravatar_id":"","url":"https://api.github.com/users/damienpontifex","html_url":"https://github.com/damienpontifex","followers_url":"https://api.github.com/users/damienpontifex/followers","following_url":"https://api.github.com/users/damienpontifex/following{/other_user}","gists_url":"https://api.github.com/users/damienpontifex/gists{/gist_id}","starred_url":"https://api.github.com/users/damienpontifex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damienpontifex/subscriptions","organizations_url":"https://api.github.com/users/damienpontifex/orgs","repos_url":"https://api.github.com/users/damienpontifex/repos","events_url":"https://api.github.com/users/damienpontifex/events{/privacy}","received_events_url":"https://api.github.com/users/damienpontifex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-17T15:50:13Z","updated_at":"2015-04-28T05:07:16Z","closed_at":null,"body":"I am using cocoa pods 0.36 and integrating ADALiOS as a framework in my project. I am commonly getting the error for not including the resource bundle. Although inspecting the app product and the ADALiOS.framework contains both storyboards. \r\n\r\nIn the code https://github.com/AzureAD/azure-activedirectory-library-for-objc/blob/master/ADALiOS/ADALiOS/ADAuthenticationBroker.m#L130-L162 for `+ (NSBundle *)frameworkBundle` why not use the function `NSBundle *adalBundle = [NSBundle bundleForClass:[self class]];`? I would have assumed this should resolve the correct path regardless of integration methods of the ADALiOS library"},"comment":{"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-objc/issues/comments/96909828","html_url":"https://github.com/AzureAD/azure-activedirectory-library-for-objc/issues/280#issuecomment-96909828","issue_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-objc/issues/280","id":96909828,"user":{"login":"CosminRadu","id":7329516,"avatar_url":"https://avatars.githubusercontent.com/u/7329516?v=3","gravatar_id":"","url":"https://api.github.com/users/CosminRadu","html_url":"https://github.com/CosminRadu","followers_url":"https://api.github.com/users/CosminRadu/followers","following_url":"https://api.github.com/users/CosminRadu/following{/other_user}","gists_url":"https://api.github.com/users/CosminRadu/gists{/gist_id}","starred_url":"https://api.github.com/users/CosminRadu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CosminRadu/subscriptions","organizations_url":"https://api.github.com/users/CosminRadu/orgs","repos_url":"https://api.github.com/users/CosminRadu/repos","events_url":"https://api.github.com/users/CosminRadu/events{/privacy}","received_events_url":"https://api.github.com/users/CosminRadu/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T05:07:16Z","updated_at":"2015-04-28T05:07:16Z","body":"+1. \r\nWe're also hitting this issue. Per [Cocoapods doc](http://blog.cocoapods.org/CocoaPods-0.36/) under the Caveats section, the suggestion above is the recommended way of addressing this:\r\n\r\nOne caveat about bundling resources is, that until now we had to embed all resources into the application bundle. The resources were referenced programmatically by [NSBundle mainBundle]. Pod authors were able to use mainBundle referencing to include resources the Pod brought into the app bundle. But with frameworks, you have to make sure that you reference them more specifically by getting a reference to your framework's bundle e.g.\r\n\r\n    [NSBundle bundleForClass:<#ClassFromPodspec#>]\r\n"}}