Thread 1 ERROR MESSAGE

Hi! So im coding and I’m about to lauch the app via the simulator but I’t crashes and I get this error message.

Thread 1: “-[UIViewController collectionView:numberOfItemsInSection:]: unrecognized selector sent to instance 0x130f0a530”

And I've located the bug but I don’t understand it. The bug happens when I connect the collection view from the mainstory.board to the view controller. Specifically when I add the dataSource from the collection view to the view controller, how can I fix this, cause without this I just get a blanc screen on the sim?

I'd happily share the project if that helps solving the issue!

Answered by Gharfield in 700919022

Issue has been solved.

Accepted Answer

Issue has been solved.

Hi there! Even i'm seeing the same error. weird part is it happens only with Xcode 13, works fine on Xcode 12.1. I would really appreciate if you can let me know like how did you manage do resolve it? Thanks!

Thread 1 ERROR MESSAGE
 
 
Q