pierrotsmnrd / grabKit

Drop-in iOS component to easily import photos from Facebook, FlickR, Instagram, Picasa, and more
Other
396 stars 89 forks source link

Getting assertion failure on all sources #45

Open arol opened 11 years ago

arol commented 11 years ago

Hi there! Thank you for your great component!

I having a problem implementing it. I already installed the component via CocoaPods and configured it following the detailed instructions on the wiki, but I'm getting a Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:].

I set a breakpoint on GRKPickerAlbumList.m:827 and there the cell variable is null, as tableView fails to dequeue a cell with the cell identifier AlbumCell.

Any hint?

arol commented 11 years ago

Hey! I continued debugging this and now I see that is the GRK_BUNDLE that it's not loaded properly this macro returns a null value.

arol commented 11 years ago

I achieved a workaround that allow me to follow with my development:

On GRKPickerViewController:33 replace the line

#define GRK_BUNDLE [NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:@"GrabKitBundle" ofType:@"bundle"]]

with

#define GRK_BUNDLE [NSBundle mainBundle]

This worked for me, but I'm not sure it to be the best solution. I installed the grabKit via CocoaPods.

pierrotsmnrd commented 11 years ago

Thanks for your feedback. I'm going to investigate and review the whole procedure.