Posts

Post not yet marked as solved
1 Replies
1k Views
I have deleted the folder : rm -rf ~/Library/Developer/CoreSimulator/Devices/<sim udid>/data/Media/** It deleted the files and I am not able to see in Photos app. But when I try to add media file again with command, I got error: xcrun simctl addmedia <sim udid> abc.png Failed to import 'abc.png', error [PHPhotosErrorDomain] -1: The operation couldn’t be completed. (PHPhotosErrorDomain error -1.) An error was encountered processing the command (domain=com.apple.CoreSimulator.LaunchdSimError, code=133): Multiple errors were returned; see stderr Note: If I do not delete the media then addmedia command working as expected, But I have a scenario where I need to clean all photos then add one file. Simulator version: iOS 15.5 xcrun version: 61
Posted Last updated
.