kharrison / CodeExamples

Code Examples
https://useyourloaf.com
BSD 3-Clause "New" or "Revised" License
2.13k stars 959 forks source link

ListCollection example crashes #15

Closed pepejeria closed 4 years ago

pepejeria commented 4 years ago

Project ListCollection

Environment Please include at least the following details:

Describe the bug Check out CodeExamples. Open the ListCollection example and run it. This will result in the following:

DiffableDataSource[68322:3360678] -[UICollectionViewListCell _updateCurrentSystemTypeAccessoryViews]: unrecognized selector sent to instance 0x7fa823f26f40
-[UICollectionViewListCell _updateCurrentSystemTypeAccessoryViews]: unrecognized selector sent to instance 0x7fa823f26f40
kharrison commented 4 years ago

Odd, I'm not seeing any problem.

pepejeria commented 4 years ago

Yeah, that is weird. I am also using Catalina 10.15.5 (19F101).

Screen Shot 2020-07-09 at 14 40 23
kharrison commented 4 years ago

Me too, didn't upgrade to Big Sur. I wonder what is different?

What is the error partially hidden at the top of the console? Is it complaining about finding several versions of the framework? I wonder if it is somehow linking against the wrong SDK?

pepejeria commented 4 years ago
2020-07-09 14:47:38.146576+0200 List[97404:3977423] libMobileGestalt MobileGestaltCache.c:38: No persisted cache on this platform.
objc[97404]: Class VCWeakObjectHolder is implemented in both /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AVConference.framework/Frameworks/ViceroyTrace.framework/ViceroyTrace (0x130730e40) and /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AVConference.framework/AVConference (0x12ff0a3f0). One of the two will be used. Which one is undefined.
2020-07-09 14:47:39.453690+0200 List[97404:3968754] -[UICollectionViewListCell _updateCurrentSystemTypeAccessoryViews]: unrecognized selector sent to instance 0x7fb29d741080
-[UICollectionViewListCell _updateCurrentSystemTypeAccessoryViews]: unrecognized selector sent to instance 0x7fb29d741080
(null)
kharrison commented 4 years ago

I don't see that in my build log and who knows if it is related? There's a two year old thread in the forums which mentions it:

Class VCWeakObjectHolder is implemented in both

Not sure what to suggest other than trying the magic incantation to the Xcode gods:

pepejeria commented 4 years ago

Yeah, that didn't work either. I will try again with the next Xcode beta.

kharrison commented 4 years ago

Frustrating. I'll leave this open, maybe someone else is also having the same issue

pepejeria commented 4 years ago

Seems to be fixed in Xcode Version 12.0 beta 3 (12A8169g)