I've a XPC file and how to use it in a command line app? I tried to put in same diretory not working,
How to use XPC in command line app
Any reply?
I’m struggling to understand your terminology here. What is an “XPC file”? Is that an XPC Service bundle? Or something else?
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Xpc service bundle
XPC Services can only be placed in apps and app extensions.Xpc service bundle
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Eskimo: I don’t understand your reply! Command line app is also an app! For example Kitura based server side app runned from command line! The server side app is running in Mac!
I’m using the term app to mean a GUI application that a user to can run from the Finder, not as abbreviation for application. Command-line tools do not, in general, have an app-like structure and, as such, can’t host XPC Services.Command line app is also an app!
You do have options here:
You could create a launchd daemon or agent and have it vend an XPC service (lower case S).
You could package your command-line tool in an app-like structure (see this post) and embed your XPC Services in that.
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"