Post not yet marked as solved
I'm trying to collect logs on my mac from my app running on iPhone, but I always get an error. I use log collect as such:
% sudo log collect --device --output log.logarchive --last 1m
Archive successfully written to log.logarchive
% sudo log show --archive log.logarchive/
log: Could not open log archive: The log archive is corrupt or incomplete and cannot be read
so log show always claims the logs create by log collect are corrupt. I'm on maces monterey and iOS 15.3, and solution / tip? thanks
Post not yet marked as solved
UICollectionViewDropCoordinator api is broken since beta 4 and the sample app from WWDC showing how to implement drag and drop in collection views also doesn't compile due to this api change.UICollectionViewDropCoordinator used to have a method -[dropItem:toPlaceholderInsertedAtIndexPath:withReuseIdentifier:]. But in beta 4 this was replaced with -[dropItem: toPlaceholder:] with placeholder being an object of type UICollectionViewDropPlaceholder but there doesn't seem to be any way to get such an object. It's superclass has an init method that takes a reuse identifier but not the collection view in which this reuse identifier was registered hence doesn't seem correct and useable and in any case if you try creating such an object you get link errors.I've written about this when discoveritng this in beta 4 and was told beta 5 was going to fix this, but that hasn't happened as far as I can tell. Anyone figured out how to use the modified drop API or know if Apple are planning to fix this?
Post not yet marked as solved
The drop api for collection view seems to be broken in beta 4.In previous betas the UICollectionViewDropCoordinator had an api to drop into a placeholder that would also create the placeholder:func drop(_, toPlaceholderInsertedAt:, withReuseIdentifier:)this api was dropped in beta 11 and instead there is an api:func drop(_ dragItem: UIDragItem, to placeholder: UICollectionViewDropPlaceholder)that requires a new class UICollectionViewDropPlaceholder but it's unclear how one would create such an object as it's init requires a reuse identifier and an index path, but get no reference to the collection view where this reuse identifier is registered.I tried creating such a class thinking maybe the init has access to the active drop session and get a reference to the collection view through that, but the project fails to link yielding an undefined symbol: UICollectionViewDropPlaceholder, meaning this class isn't at all in the uikit framework.So how is one supposed to do drag and drop in a collection view in beta 4?