Get app clip XCode url

Hello everybody.

I added in XCode as parameter XCAppClipURL to my url which is added also in associated domains as

appclips:example.com

I followed the instructions presented here on scene(_:willConnectTo:options:) like this:

Code Block
        if let userActivity = scene.userActivity{
            respondTo(userActivity)
        }

And then placed the code provided for respondTo.
However, when going with the debugger I couldn't get to the end of the code because some parameters are null.

What am I doing wrong when trying to open the scene?

Thank you
I'm having the same problem. With Xcode beta 2 I had to tick several times the checkbox so changes on URL could take effect.
With beta 3, couldn't make it work.
Hopefully you've already figured this out, but in case it helps anybody else. The userActivity property of the scene seems to be nil, because the activity is actually provided in the userActivities array of the UIScene.ConnectionOptions.

So, you can use something like this to get it:

Code Block
        if let userActivity = scene.userActivity {
// Do something with the activity
            handle(userActivity: userActivity)
        } else if let userActivity = connectionOptions.userActivities.first {
// Do something with the activity
            handle(userActivity: userActivity)
        }

Get app clip XCode url
 
 
Q