XPC is a low level library that simplifies inter process communication (IPC) on iOS and OS X.
Questions tagged [xpc]
178 questions
1
vote
0 answers
Unable to connect to BLE: [CoreBluetooth] XPC connection invalid error
I am using an Adafruit nRF8001 bluetooth module with an Arduino Nano micro controller. The goal is to connect the nRF8001 to an iOS application. This connection was successfully made using an Arduino Uno. However, when switching to the Arduino Nano,…

c.f.harris
- 11
- 1
- 2
1
vote
2 answers
Creating Daemon / UI connection using XPC
My platform contains system wide Daemon based on mixed c++/objective-c code which operated by launchd according the plist file with the proper configuration reside in /Library/LaunchDaemons/.
On the other side, it contains UI based application…

Zohar81
- 4,554
- 5
- 29
- 82
1
vote
1 answer
Runloop always cause XPC connection interrupted?
Hi I notice if I add runloop when app enter background will cause XPC connection interrupted
for example , my app connection to a BLE device , if user is let the app enter background for a while , I will exit the app than release the connection
Here…

Webber Lai
- 2,014
- 5
- 35
- 66
1
vote
2 answers
Possible to present UIViewController from another app?
This may seem overly ambitious, but I'm exploring the ability to present a view controller from one app in a separate app (both authored by me). I'm not talking about reusing a class, I'm referring to literally presenting a controller from another…

Ricky
- 3,101
- 1
- 25
- 33
1
vote
1 answer
macOS XPC Service not starting
I have a desktop Swift app with a single XPC service that has stopped working. I've managed to get it working once since, but it is back to being broken. I've tried reducing the code to the simplest case but it feels like there is a factor I don't…

Mike Bedar
- 632
- 5
- 14
1
vote
1 answer
SMJobBless and NSXPCConnection
There is an Apple SMJobBless example that show how to securely install a helper tool. SMJobBlessXPC is uses XPC (c API) over Mach ports for communication between the app and privileged helper tool.
I need SMJobBlessXPC by using NSXPCConnection…

Ahmed Lotfy
- 3,806
- 26
- 28
1
vote
0 answers
XPC communications error: XPC shuts down app during import of 4k+ contacts from address book. How to fix this and retain the functionality?
I was assigned to an app which I don't yet fully have domain knowledge of. In that app, I am importing contacts from Contact book to my app. It works fine on other devices but iPod is causing me trouble with a certain number of contacts. If contacts…

NSNoob
- 5,548
- 6
- 41
- 54
1
vote
0 answers
How to embed the provisioning profile for a launch daemon on OSX?
I am developing a Mac application which also installs a launch daemon. Both application and daemon are codesigned with different identities and different entitlements but the launch daemon refuses to start.
Looking into system logs I see these…

Mihai Richard
- 41
- 6
1
vote
0 answers
How to enumerate all xpc service name
How can I enumerate all xpc service name on a jailbreak ios?
Usexpc_connection_create_mach_service to try one by one?
Should I build an app in xcode or some other way?

user3836856
- 105
- 7
1
vote
1 answer
XPC Service returning NSAttributtedString
I have a huge problem to transfer NSAttributtedString in a block callback from XPC service.
I am trying to return basic string as:
NSDictionary *arrayComa = @{NSForegroundColorAttributeName:[NSColor colorWithRGB:0xD35250],
…

Jan Kubny
- 303
- 1
- 8
1
vote
1 answer
NSManagedObjectContext executeFetchRequest:error: throws exception: OS_xpc_error
I am experiencing an unusual error in my iOS app.
My app downloads a large number of JSON objects which are then inserted into Core Data. Each download takes the following steps:
Open network connection and get JSON object
One main NSManagedObject…

colincameron
- 2,696
- 4
- 23
- 46
1
vote
0 answers
XPC method not invoked with NSArray of NSValues as parameter
I have an XPC service compiled 32-bit for OS-X. One of it's methods takes a single argument as a parameter, and calls a given block back on the main process.
This block takes 3 NSStrings and an NSArray that's supposed to contain NSValues solely.…

Niv
- 2,294
- 5
- 29
- 41
1
vote
1 answer
User preferences are not saved from XPC service
In my main app bundle I have supporting XPC service included. App is sandboxed and everything works quite fine, except that when I call [[NSUserDefaults standardUserDefault] setObject:forKey:] method and than - synchronize method from the XPC…

Matthes
- 515
- 5
- 12
1
vote
2 answers
Can't Include XPC in SMJobBless Sample
I am trying to include XPC api framework in the SMJobBless sample provided by apple here:
https://developer.apple.com/librarY/mac/samplecode/SMJobBless/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010071-Intro-DontLinkElementID_2
But adding…

user2568374
- 1,164
- 4
- 11
- 21
1
vote
1 answer
Calling xpc_connection_send_message_with_reply_sync in an xpc event handler
In an XPC service I'm developing, I would like to call xpc_connection_send_message_with_reply_sync or xpc_connection_send_message_with_reply from within the service's event handler (it requests some additional data from the client).
Instead of…

yairchu
- 23,680
- 7
- 69
- 109