grabKit icon indicating copy to clipboard operation
grabKit copied to clipboard

Getting assertion failure on all sources

Open arol opened this issue 11 years ago • 3 comments

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 avatar Sep 25 '13 22:09 arol

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 avatar Sep 25 '13 22:09 arol

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.

arol avatar Sep 25 '13 22:09 arol

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

pierrotsmnrd avatar Sep 26 '13 07:09 pierrotsmnrd