App won't launch

at iOS.

In Swift,I'm thinking of launching an app using a URL scheme

UIApplicatio.shared.open(URL(string:"AppURLSchemeName"))

I get a Error.

Error: Domain = NSOSStatusErrorDomain Code = -50 "invalid input parameters" UserInfo=`{NSDebugDescription = invalid input parameters,_LSLine =249, _LSDLine = 249, __LSFunction = _LSDOpenClient openURL:filehandle:options: completionHandler }

the environment is macOS Ventura 13.0 XCode vertion 14.0.1 iPhone 13 mini iOS 16.1

what's the issue

AppURLSchemeName does not seems a valid url. Should be something like scheme://something

App won't launch
 
 
Q