Posts

Post not yet marked as solved
4 Replies
1.4k Views
When selecting more photos with previous limited authorization, I get this crash on iOS 17.0 *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[PHPhotoLibrary presentLimitedLibraryPickerFromViewController:completionHandler:]: unrecognized selector sent to instance 0x105ea2a60' when using the synchronous and asynchronous methods: PHPhotoLibrary.shared().presentLimitedLibraryPicker(from: viewController) { newlySelectedPhotoIDs in ... OR let newlySelectedPhotoIDs = await PHPhotoLibrary.shared().presentLimitedLibraryPicker(from: viewController) Debugger output is unexpected... after all these methods are in the header... (lldb) po PHPhotoLibrary.shared().responds(to: #selector(PHPhotoLibrary.presentLimitedLibraryPicker(from:))) false (lldb) po PHPhotoLibrary.shared().responds(to: #selector(PHPhotoLibrary.presentLimitedLibraryPicker(from:completionHandler:))) false
Posted
by awal.
Last updated
.
Post not yet marked as solved
0 Replies
606 Views
Can I delete the file StoreKitTestCertificate.cer if I have a published app that uses StoreKit 2? This is how I was using it earlier to do receipt validation but it's no longer in my released app: #if DEBUG let certificate = "StoreKitTestCertificate" #else let certificate = "AppleIncRootCertificate" #endif Source: https://developer.apple.com/documentation/xcode/setting-up-storekit-testing-in-xcode/ Can I safely delete StoreKitTestCertificate.cer in my next version this file without affecting the released app or TestFlight?
Posted
by awal.
Last updated
.
Post not yet marked as solved
1 Replies
745 Views
If batch requests don’t actually change the context they are executed against, why must they always be run in a specific context? This adds to confusion about concurrency in Core Data because developers may expect tasks executed on a context to actually have some connection to that context. You will find similar language across Apple Documentation on batch inserts, deletes, and updates: NSBatchInsertRequest... accesses the store directly without interacting with the context, triggering any key value observation, or loading data into memory. https://developer.apple.com/documentation/coredata/loading_and_displaying_a_large_data_feed
Posted
by awal.
Last updated
.