Post

Replies

Boosts

Views

Activity

Reply to iOS 14 beta critical null bug for PHAssetCollection.localizedTitle that are short foreign album name
1) It is not in "Limited Library Mode". I have re-installed the app to make sure the app has access to "All Photos". 2) I use PHAssetCollection.fetchAssetCollectionsWithType method (pasting code below as a reference). This happens for albums already created in Photos App as well as the one that I create with the app. => This same code successfully returns localizedTitle for the albums that iOS14 seem to have issues with. => It also successfully returns album names that are greater than certain length Some additional information that I discovered: 1) It happens only in real device 2) It happens in swift PhotosKit as well as objective-c (using the same fetch method in swift, I verified this). 3) It does NOT happen using deprecated ALAssetsLibrary I have a consistent repro steps isolating the issue that happens only in iOS14. Please let me know if you can reproduce it yourself -- and if you need anything to get to reproducing this. Code reference: 		// Fetch 		PHFetchResult<PHAssetCollection *> *result = 				[PHAssetCollection fetchAssetCollectionsWithType:PHAssetCollectionTypeAlbum 																								 subtype:PHAssetCollectionSubtypeAlbumRegular 																								 options:nil]; 		// Iterate 		for (PHAssetCollection *phAssetCollection in result) {     		NSLog(@"Album name: %@", phAssetCollection.localizedTitle); // problematic album shows null here incorrectly.   	} This will break user experience for apps that deals with albums Internationally.
Aug ’20