Post

Replies

Boosts

Views

Activity

Comment on ios 15.2 beta app stuck
I have sent a feedback, but not be replied yet. And I find that you can reproduce this problem by call [[PHPhotoLibrary sharedPhotoLibrary] registerChangeObserver:self] when you set photo permission of your app to None on iOS 15.2. How can I fix that? I should always make sure that I have photo permission to call this method?
Dec ’21
Comment on ios 15.2 beta app stuck
It's hard to provide a small test app to reproduce this problem. I find that issue by monitoring the app which I'm developing. This problem appears on Nov. 17th which happens to be the day that iOS 15.2 beta 3 start to be upgraded. And all those problems have a common call stack below: libsystem_kernel.dylib 8 _semaphore_timedwait_trap (in libsystem_kernel.dylib) libdispatch.dylib 60 __dispatch_sema4_timedwait (in libdispatch.dylib) libdispatch.dylib 72 __dispatch_semaphore_wait_slow (in libdispatch.dylib) CoreData 64 -[NSXPCStoreConnectionManager _checkoutConnection] (in CoreData) CoreData 52 ___54-[NSXPCStoreConnectionManager sendMessageWithContext:]_block_invoke (in CoreData) libdispatch.dylib 16 __dispatch_client_callout (in libdispatch.dylib) libdispatch.dylib 52 __dispatch_sync_invoke_and_complete (in libdispatch.dylib) CoreData 108 -[NSXPCStoreConnectionManager sendMessageWithContext:] (in CoreData) CoreData 368 -[NSXPCStore sendMessage:fromContext:interrupts:error:] (in CoreData) CoreData 296 -[NSXPCStore loadMetadata:] (in CoreData) CoreData 2684 ___91-[NSPersistentStoreCoordinator addPersistentStoreWithType:configuration:URL:options:error:]_block_invoke (in CoreData) CoreData 200 _gutsOfBlockToNSPersistentStoreCoordinatorPerform (in CoreData) libdispatch.dylib 16 __dispatch_client_callout (in libdispatch.dylib) libdispatch.dylib 52 __dispatch_lane_barrier_sync_invoke_and_complete (in libdispatch.dylib) CoreData 176 __perform (in CoreData) CoreData 480 -[NSPersistentStoreCoordinator addPersistentStoreWithType:configuration:URL:options:error:] (in CoreData) PhotoLibraryServices 596 -[PLPersistentContainer _configureXPCPersistentStoreCoordinator:error:] (in PhotoLibraryServices) PhotoLibraryServices 296 -[PLPersistentContainer newSharedPersistentStoreCoordinator] (in PhotoLibraryServices) PhotoLibraryServices 56 ___57-[PLPersistentContainer sharedPersistentStoreCoordinator]_block_invoke (in PhotoLibraryServices) PhotoLibraryServicesCore 56 _PLResultWithUnfairLock (in PhotoLibraryServicesCore) PhotoLibraryServices 100 -[PLPersistentContainer sharedPersistentStoreCoordinator] (in PhotoLibraryServices) PhotoLibraryServices 112 -[PLPhotoLibraryBundle newChangeHandlingContainer] (in PhotoLibraryServices) PhotoLibraryServices 44 __60-[PLPhotoLibraryBundle initWithLibraryURL:bundleController:]_block_invoke.42 (in PhotoLibraryServices) PhotoLibraryServicesCore 80 ___27-[PLLazyObject objectValue]_block_invoke (in PhotoLibraryServicesCore) PhotoLibraryServicesCore 56 _PLResultWithUnfairLock (in PhotoLibraryServicesCore) PhotoLibraryServicesCore 100 -[PLLazyObject objectValue] (in PhotoLibraryServicesCore) PhotoLibraryServices 24 -[PLPhotoLibraryBundle resumeChangeHandling] (in PhotoLibraryServices) Photos 268 -[PHPhotoLibrary _resumeChangeHandlingIfNeeded] (in Photos) libdispatch.dylib 16 __dispatch_client_callout (in libdispatch.dylib) libdispatch.dylib 52 __dispatch_lane_barrier_sync_invoke_and_complete (in libdispatch.dylib) Photos 140 -[PHPhotoLibrary registerChangeObserver:] (in Photos)
Dec ’21