Shortcuts "Set Wallpaper" Action throws com.apple.extensionKit.errorDomain error 2
The "Set Wallpaper" action consistently throws an error on alternate runs on iOS 18.0 on an iPhone 12 Pro Max. The error seen is: "com.apple.extensionKit.errorDomain error 2"
Oddly, the error happens every other run of the shortcut. It can be tested with this example shortcut: https://www.icloud.com/shortcuts/509c725af4794b4e974994bae9b11a7c
To reproduce:
1. Install Shortcut
2. Open shortcut
3. Ensure a valid destination focus has been set for the wallpaper
4. Run shortcut
5. Choose any image to use as a wallpaper
6. Allow the shortcut to complete
Expected result:
Wallpaper is set to home screen, no error is seen, shortcut completes
Actual result:
Error “com.apple.extensionKit.errorDomain error 2” shows on alternate runs (I.e. 50% of the time). Wallpaper is not set, shortcut fails with above error.
I've raised feedback item FB15159428 for this already. A similar issue had been reported by another user in the past: Shortcuts keep’s erroring and unable to f… - Apple Community
I'm hoping if others can confirm this is a general issue under iOS 18, or suggest some workarounds should they exist.
Thanks!
iPhone 12 Pro Max, iOS 18