When creating an iOS live activity I get `The operation couldn’t be completed. (com.apple.ActivityKit.ActivityInput error 1.)`
Asked Answered
B

4

5

When creating an iOS live activity I get the error:

The operation couldn’t be completed. (com.apple.ActivityKit.ActivityInput error 1.)
Busey answered 25/8, 2022 at 17:4 Comment(0)
B
17

One possible cause for this is not having set the NSSupportsLiveActivities property in your App target's Info.plist.

Even if you have it set in your Widget Extension make sure it's set in your App target.

It should look like this in Xcode: showing NSSupportsLiveActivities set to true

Busey answered 25/8, 2022 at 17:4 Comment(1)
Looks like you also need to add NSSupportsLiveActivities to app's info.plist in addition to widget's info.plist And xcode 14.1 also seems to have issues if your profile has access to app containers :-(Fissi
T
1

You will have to add Supports Live Activities to the apps info.plist in addition to the widget's info.plist

Trussell answered 30/11, 2022 at 2:1 Comment(0)
M
1

In my case I have this error when trying to start a Live Activity from my app.

Error requesting Live Activity The operation couldn’t be completed. (com.apple.ActivityKit.ActivityInput error 0.)

What I did was:

  1. Go to Info -> Add Supports Live Activities

enter image description here

  1. Go to Signing & Capabilities, add Push Notification capability

enter image description here

Tested on simulator ios 17.2

enter image description here

Mediatory answered 22/6 at 15:45 Comment(0)
A
0

Please make sure that you are using iPhone with 16.2 above OS versions. When you will run a live activity on iPad it shows the same error log Because it's only supported on iPhones.

Archegonium answered 25/5, 2023 at 10:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.