XPC is a low level library that simplifies inter process communication (IPC) on iOS and OS X.
Questions tagged [xpc]
178 questions
0
votes
0 answers
Does the block of xpc_connection_set_event_handler need sync to avoid race condition?
I ran a test code with ThreadSanitizer, it throws a race condition in the block of xpc_connection_set_event_handler even I set a sync queue to the connection.
xpc_connection_set_event_handler(conn, ^(xpc_object_t event) {
xpc_type_t type =…

android2test
- 87
- 5
0
votes
1 answer
porting from mac to linux/windows and looking for a cross platform XPC equivalent
I'm using XPC and want to port to linux/windows.
Looking for an alternative which can perform similar functionality.
is there something like this?

Avba
- 14,822
- 20
- 92
- 192
0
votes
1 answer
Very simple macOS XPC
I want to use the XPC technology simply to launch an app. I do not need any interprocess communication, or any of the other feature of XPC.
The only documents that I can find on the internet show a complex structure, with code for the XPC service,…

DevShark
- 8,558
- 9
- 32
- 56
0
votes
1 answer
macOS `ps` gives bundle identifier instead of path for some XPC services
My macOS app can launch a faceless helper application which is shipped in its Contents/Library/LoginItems using Apple's Service Management Framework, as described in Apple documentation. Funny thing is, when I request the unix ps program to give me…

Jerry Krinock
- 4,860
- 33
- 39
0
votes
0 answers
Run periodic tasks in the background after app terminates in MacOS
I am an iOS developer and I have developed an app that runs a periodic background task using Background Modes, I want to implement the same feature in the MacOS version of this app, as I am new to the MacOS development, I am facing some issue…

Anshuman Singh
- 1,018
- 15
- 17
0
votes
1 answer
Cocoapods 1.3.1 + XPC Service
Until version 1.2.1, XPC service targets worked fine with cocoapods, but with updating to 1.3.1, I get the following error:
[!] Unable to find host target(s) for Renderer. Please add the host targets for the embedded targets to the Podfile.
Certain…

Dev Sanghani
- 1,145
- 11
- 19
0
votes
1 answer
iOS XPC analog in windows 10
Do Windows 10 has any analogy to XPC of iOS and macOS platform?
Basically XPC lets you run safely process out of main application loop and communicate with it.

Volodymyr B.
- 3,369
- 2
- 30
- 48
0
votes
0 answers
How do you create an NSURL from a file descriptor?
This question is really about transferring file permissions from a parent macOS application that is not sandboxed, to a child XPC service that is sandboxed.
This question, App sandbox: how to allow XPC service to read file that user opened in…

kennyc
- 5,490
- 5
- 34
- 57
0
votes
1 answer
Java-world equivalent of Apple's Service Management Framework
Apple's SMF includes, among others:
XPC (a form of inter-process communication, kind of service-oriented)
Integration with launchd (system-wide, OS-coupled lifecycle management of demons and services)
Queue Dispatch - async concurrency with…

AmazingWouldBeGreatBut
- 65
- 10
0
votes
1 answer
XPC connection interrupted break at all exceptions app crashes at launch
The app crashes at launch the only error is "XPC connection interrupted" no other info, i searched for "keyCommands, keyCommand" tags in the storyboard but no luck there was no such tag, i have no seagues.

teonicel
- 27
- 5
0
votes
0 answers
iOS target deletes Watch App (but doesn't reinstall it)
Whenever I launch my iOS/iPhone Target the app is removed from the Watch.
Also of interest: When the watch app is deployed from Xcode, it quits with signal 9, something with XPC

StuFF mc
- 4,137
- 2
- 33
- 32
0
votes
1 answer
XPC connection interrupted for iOS 9 when in app purchase alert display
While Buying the editions, there is a Sign In dialog for iTune Store.
After signing in or while entering the credentials app becomes unresponsive and it logs down “XPC connection interrupted” message.
We tried following solutions and those…

Pinki Wagh
- 1
- 2
0
votes
0 answers
Duplicate XPC service breaks Developer ID application for Gatekeeper
I'm working on a distributing a Mac Application outside of the Mac App store using Developer ID signing. Things have been working previously, but in our last build, something has apparently changed which is causing Gatekeeper to reject the…

Aaron
- 596
- 1
- 5
- 15
0
votes
1 answer
How are XPC connections handled thread-wise?
Let's say I have an XPC service and two user-visible apps (menu bar item and main app). Both connect to the XPC service.
If both of these app components send a "create Foo" message, how are they dispatched? It's a single process after all, so do…

ctietze
- 2,805
- 25
- 46
0
votes
1 answer
Using Sockets with NSXPCConnection
Running into an issue when using sockets with an NSXPCConnection.
Basically, there is a main process and a helper process running, established via NSXPCConnection. That helper process needs to act as a server and listen to a particular port (say…

Live2Enjoy7
- 1,075
- 2
- 11
- 22