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

Posted on Sep 17, 2024 5:40 PM

Reply
25 replies

Nov 6, 2024 7:52 AM in response to SlWe

So since this morning - the shortcut in question has been running far more succesfully.Shortcut has completed 34 times for me without error !!


But does eventually still get the error


But by the looks of it - someone is def working on this issue and has made changes for the better !!


Hoping this issue will be 100% fixed and working by early Dec

Dec 10, 2024 12:42 AM in response to Heliomass

I think this is a very fishy error as it is a generic Domain error, despite the fact that the images are local and not from online com.apple.extensionKit.errorDomain indicating that iOS doing some nefarious online tracking whatever activity that should not, but cannot hide itself from user (Luckily, otherwise we would not know if there is any other network activity is happening while running a simple shortcut.


The other thing that is just BAD Software architectural design is that there is no way to run it gracely or allow to catch and handle the error by doing something else in case an error happening. That is just an very very bad software architectural decision on an quite complex dynamic and automatic visual "scripting" tool like shortcut.


If there would be a way to catch the error and log things it would make debug more possible, and would also give more control over the running of any shortcut. Is that what apple is for to give control back to the users or quite the opposite? Time will tell. For now, it is definitely it is a very very bad and ugly architectural decision!


Hope it will be changed for the better for the users!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Shortcuts "Set Wallpaper" Action throws com.apple.extensionKit.errorDomain error 2

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.