Post

Replies

Boosts

Views

Activity

Photos regression in iOS 17 likely: -[PHPhotoLibrary presentLimitedLibraryPickerFromViewController:completionHandler:]: unrecognized selector
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
4
2
2.0k
Sep ’23
Is "StoreKitTestCertificate.cer" needed if my app uses StoreKit 2?
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?
0
1
840
Jul ’23
Why are batch requests in Core Data executed against NSManangedObjectContext instances?
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
1
0
870
Apr ’21