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

Similar questions

25 replies

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!

Dec 14, 2024 6:01 AM in response to SlWe

So concerning the same iPhone 12 pro mentioned above


It is very obvious that iOS 18 has totally destroyed the running of this shortcut and the automation side of it also.

As reported before - this shortcut ran flawlessly on iOS 17.0 - iOS 17.7 - No issues whatsoever.


It is also very obvious that Apple cannot fix this bug for this device !!

This bug has now appeared in every public iOS 18 update that has been released so far on this device.



Device is now on iOS 18.2 Public build and STILL SAME ERROR.


I have now totally given up on the automation as it has been totally destroyed by iOS 18 and have deleted the automation from device.


The automation was setup to trigger the shortcut when certain apps were closed


Again - this automation - totally working 100% fine on above device with iOS 17 installed


WHY is this shortcut and automation running perfectly (No Errors) on a iPhone 15 Pro that has also been upgraded to iOS 18.2 !!

Bet it also works fine on the iPhone 16 models etc etc - See where I am going with this !!


I will send feedback to Apple that yet again they have NOT fixed this bug in iOS 18.2 on a 12 Pro

Have absolutely no confidence that yet more feedback from me will get them to fix this bug.


Will again test this shortcut and automation with iOS 18.3

But not holding my breath for positive results !!




[Edited by Moderator]

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.