{"action":"created","issue":{"url":"https://api.github.com/repos/spark/spark-setup-ios/issues/32","labels_url":"https://api.github.com/repos/spark/spark-setup-ios/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/spark/spark-setup-ios/issues/32/comments","events_url":"https://api.github.com/repos/spark/spark-setup-ios/issues/32/events","html_url":"https://github.com/spark/spark-setup-ios/issues/32","id":114966389,"number":32,"title":"SparkSetupMainController failing due to missing bundle","user":{"login":"JSchaenzle","id":390842,"avatar_url":"https://avatars.githubusercontent.com/u/390842?v=3","gravatar_id":"","url":"https://api.github.com/users/JSchaenzle","html_url":"https://github.com/JSchaenzle","followers_url":"https://api.github.com/users/JSchaenzle/followers","following_url":"https://api.github.com/users/JSchaenzle/following{/other_user}","gists_url":"https://api.github.com/users/JSchaenzle/gists{/gist_id}","starred_url":"https://api.github.com/users/JSchaenzle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JSchaenzle/subscriptions","organizations_url":"https://api.github.com/users/JSchaenzle/orgs","repos_url":"https://api.github.com/users/JSchaenzle/repos","events_url":"https://api.github.com/users/JSchaenzle/events{/privacy}","received_events_url":"https://api.github.com/users/JSchaenzle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-04T04:21:54Z","updated_at":"2015-11-04T20:01:51Z","closed_at":null,"body":"When I try to create an instance of SparkSetupMainController the following line throws an exception:\r\n    `NSBundle *bundle = [NSBundle bundleWithURL:[[NSBundle mainBundle] URLForResource:@\"SparkSetup\" withExtension:@\"bundle\"]];`\r\n\r\nThe exception seems to indicate that the bundle is nil. \r\n` -[NSBundle initWithURL:]: nil URL argument\"``\r\n\r\nI am using Cocoapods to load the Spark-Setup dependency. I have tried using the latest released cocoapod (0.3.2) and the head of master and have the same problem with both."},"comment":{"url":"https://api.github.com/repos/spark/spark-setup-ios/issues/comments/153846992","html_url":"https://github.com/spark/spark-setup-ios/issues/32#issuecomment-153846992","issue_url":"https://api.github.com/repos/spark/spark-setup-ios/issues/32","id":153846992,"user":{"login":"idokleinman","id":6490062,"avatar_url":"https://avatars.githubusercontent.com/u/6490062?v=3","gravatar_id":"","url":"https://api.github.com/users/idokleinman","html_url":"https://github.com/idokleinman","followers_url":"https://api.github.com/users/idokleinman/followers","following_url":"https://api.github.com/users/idokleinman/following{/other_user}","gists_url":"https://api.github.com/users/idokleinman/gists{/gist_id}","starred_url":"https://api.github.com/users/idokleinman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idokleinman/subscriptions","organizations_url":"https://api.github.com/users/idokleinman/orgs","repos_url":"https://api.github.com/users/idokleinman/repos","events_url":"https://api.github.com/users/idokleinman/events{/privacy}","received_events_url":"https://api.github.com/users/idokleinman/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T20:01:51Z","updated_at":"2015-11-04T20:01:51Z","body":"1. Yea, project needs updating to Swift 2.1/iOS9.1/Xcode 7.1 - shouldn't be a big issue (XCode got 'convert to modern swift' auto refactoring option)\r\n\r\n2. I am not sure about the copy bundle resources issue - what I'd recommend is removing 'SparkSetup' and/or 'Spark-SDK' from `PODFILE` running `pod install` and then re-adding it and running `pod install` again - I found that it solves those kind of issues usually. Be sure you have the latest cocoapods version (`gem install cocoapods`)\r\n\r\n3. Carthage - I want to look into that, It is certainly in my backlog, I am sure Cloud SDK can be compiled as a framework, device setup should too (but might be more tricky because of the resources). \r\nFeel free to try it out yourself and send a PR if you manage to get it done. I think it shouldn't be too complicated. It'll be awesome to have Carthage support.\r\n\r\n4. Brackets vs quotes - that's weird. Did you configure the bridging headers correctly? Is your project swift/Obj-C?\r\n"}}