cocos2d-objc icon indicating copy to clipboard operation
cocos2d-objc copied to clipboard

Warning when validating archive: app references non-public selector tableView:heightForRowAtIndex:

Open jonnyijapan opened this issue 11 years ago • 7 comments

You might want to fix this... try archiving an app and validating it against ITC.

I think the problem is in CCTableView

screen shot 2014-10-03 at 10 32 21

jonnyijapan avatar Oct 03 '14 01:10 jonnyijapan

I'm submitting an app getting this warning at the moment. Looking at the actual code - and I'm not familiar with it as I'm not using CCTableView etc anyway, it looks as it might be a false alarm... like CCTableView happens to use the same selector in its own implementation... am I right? I'd hate to get refused in review because of this. So if it's a false alarm, the problem is on Apple's side, however this could be avoided in the meantime by renaming this selector?

jonnyijapan avatar Oct 06 '14 10:10 jonnyijapan

I was also facing the same problem, but finally I found a solution. You might not be using CCTableView from Cocos2d framework, but you need to change framework code for CCTableView. Please check out the solution at http://stackoverflow.com/questions/26213005/non-public-selector-heightforrowatindex-in-cocos2d-during-validation-in-xcode-6. Hope it will be useful for you.

sauvikatinnofied avatar Oct 06 '14 10:10 sauvikatinnofied

Perfect thanks, that confirms it :-) I will rename that selector and resubmit...

jonnyijapan avatar Oct 06 '14 10:10 jonnyijapan

Oof. Looks like the last CCTableView commit is from 6 months ago which means Apple added a new private method with the same name. Have run into that problem before. Would be really nice if they prefixed their private method names. -_- I'll bring this up at the meeting today.

slembcke avatar Oct 06 '14 15:10 slembcke

I'm using the latest cocos2d version that comes with SpriteBuilder 1.3.5 and I'm still getting this issue.

jlubeck avatar Nov 19 '14 16:11 jlubeck

@slembcke Did anything actually happen with this?

cocojoe avatar Jan 26 '15 14:01 cocojoe

@Birkemose You possibly be able to check this out as well please? Thanks

cocojoe avatar Jan 26 '15 17:01 cocojoe