Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Blog Reader iPhone App Getting Data from the Web Downloading and Parsing JSON Data

Daniel Jurado
Daniel Jurado
2,118 Points

Not populating with blog content.

App runs with tableview showwing but no content displayed. Any idea/?

  • (void)viewDidLoad { [super viewDidLoad];

    NSURL *blogURL = [NSURL URLWithString:@"http://blog.teamtreehouse.com/api/get_recent_summary/"];

    NSData *jsonData = [NSData dataWithContentsOfURL:blogURL];

    NSError *error = nil;

    NSDictionary *dataDictionary = [NSJSONSerialization JSONObjectWithData:jsonData options:0 error:&error];

    self.blogPosts = [dataDictionary objectForKey:@"posts"]; }

Daniel Jurado
Daniel Jurado
2,118 Points

This Appeared in my log:

2014-04-15 20:08:07.270 BlogReader[684:60b] Cannot find executable for CFBundle 0x8c7db10 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/AccessibilityBundles/CertUIFramework.axbundle> (not loaded) 2014-04-15 20:08:07.623 BlogReader[684:60b] { count = 10; "count_total" = 1707; pages = 171; posts = ( { author = "Jason Seifer"; date = "2014-04-15 18:03:01"; id = 23315; thumbnail = "<null>"; title = "Really Good Emails, Credit Card Detection, Epic Editor | The Treehouse Show Episode 86"; url = "http://blog.teamtreehouse.com/really-good-emails-credit-card-detection-epic-editor-treehouse-show-episode-86"; }, { author = "Matt West"; date = "2014-04-15 17:12:31"; id = 23294; thumbnail = "http://blog.teamtreehouse.com/wp-content/uploads/2014/04/4247555680_56969c4271_o-150x150.jpg"; title = "How to Create Custom HTML Elements"; url = "http://blog.teamtreehouse.com/create-custom-html-elements-2"; }, { author = Treehouse; date = "2014-04-15 16:51:13"; id = 23311; thumbnail = "http://blog.teamtreehouse.com/wp-content/uploads/2014/04/ethan-ferrari-150x150.png"; title = "Treehouse Supplies the Knowledge You Never Knew You Didn’t Have"; url = "http://blog.teamtreehouse.com/treehouse-supplies-knowledge-never-knew-didnt"; }, { author = "Mark Henricks"; date = "2014-04-15 12:52:56"; id = 23301; thumbnail = "http://blog.teamtreehouse.com/wp-content/uploads/2014/04/Moon-Johan-J.Ingles-Le-Nobel-Flickr-2-150x150.jpg"; title = "Moonlighting as a Designer or Developer: Money, Flexibility \U2014 and Some Caution"; url = "http://blog.teamtreehouse.com/light-moon-web-design-development-side"; }, { author = "Nick Pettit"; date = "2014-04-14 16:07:39"; id = 23286; thumbnail = "http://blog.teamtreehouse.com/wp-content/uploads/2014/04/ratchet-150x150.jpg"; title = "The Beginner’s Guide to Ratchet: a Mobile Web App Framework"; url = "http://blog.teamtreehouse.com/beginners-guide-ratchet-mobile-web-app-framework"; }, { author = "Ryan Brinks"; date = "2014-04-14 11:24:27"; id = 23268; thumbnail = "http://blog.teamtreehouse.com/wp-content/uploads/2014/04/Flickr-Falcon-Mohammed-Alnaser-3-150x150.jpg"; title = "5 Skills You Didn’t Know You Needed"; url = "http://blog.teamtreehouse.com/5-skills-didnt-know-needed"; }, { author = "Guil Hernandez"; date = "2014-04-10 15:31:44"; id = 23258; thumbnail = "<null>"; title = "How to Create Smoother Animations and Transitions in the Browser"; url = "http://blog.teamtreehouse.com/create-smoother-animations-transitions-browser"; }, { author = "Kelley King"; date = "2014-04-10 10:47:23"; id = 23276; thumbnail = "http://blog.teamtreehouse.com/wp-content/uploads/2014/04/QuickLeft-Beerfest-Hackfest-West-Falnders-Diebolt-23rd-Studios-Photography-1-150x150.jpg"; title = "Hackfests Are at the Heart of Creativity and Collaboration \U2014 and Beer Apps"; url = "http://blog.teamtreehouse.com/hackfests-heart-innovation-invention-creativity"; }, { author = "Kirsten Klahn"; date = "2014-04-09 09:45:25"; id = 23262; thumbnail = "http://blog.teamtreehouse.com/wp-content/uploads/2014/04/Klahn-1-150x150.png"; title = "For Designers, a Little Inspiration Goes a Long Way"; url = "http://blog.teamtreehouse.com/designers-inspiration"; }, { author = "Jason Seifer"; date = "2014-04-08 14:50:58"; id = 23267; thumbnail = "<null>"; title = "Flexbox, CSS and Sass Style Guides, HTML Frameworks | The Treehouse Show Episode 85"; url = "http://blog.teamtreehouse.com/flexbox-css-sass-style-guides-html-frameworks-treehouse-show-episode-85"; } ); status = ok; }

1 Answer

Christopher Hall
Christopher Hall
9,052 Points

To solve the "Cannot find executable for CFBundle" problem, try cleaning your project in XCode and resetting content and settings in the simulator.

  1. In XCode: Product menu -> Clean. or type Shift-Command-K.
  2. In the iOS Simulator: iOS Simulator menu -> Reset Content and Settings...