xpc Questions

2

We have a crash in our iOS app reported by crashlytics: Crashed: XPC API Misuse: Attempt to send a message expecting a reply to (com.apple.networking.connection.0x46bf35a0) The stack trace is:...
Breathy asked 20/10, 2015 at 11:46

11

Solved

I recently updated to Xcode 7 and upgraded my iPhone to iOS 9. I have developed and released an iOS app that had worked perfectly fine on the latest version of iOS 8 and Xcode 6. Upon trying to go...
Alesha asked 20/9, 2015 at 20:48

1

I'm trying to write a simple pair of "client app" & "XPC service". I was able to launch xpc service from client (i.e I can see service running in the Activity monitor processes list), but when ...
Levee asked 13/3, 2017 at 13:16

2

Ok, have no idea what is going on here but from what I understand from other questions (XPC connection interrupted in Xcode 7 for iOS 9) , XPC connection interrupted means theres a storyboard prob...
Genous asked 27/5, 2018 at 23:48

1

Solved

I've been trying to create a way to tell my (running) macOS app to open some files and supply some additional arguments to the command. For cold-start apps, using the $ open MyApp.app fileA.txt ...
Alyss asked 30/5, 2020 at 18:32

3

I have a windowed app, and to add some functionality I need another app which launches at login and sync data to server if available. I have tried with NSDistributionNotification but its practica...
Munich asked 4/6, 2014 at 14:52

5

public class BLE: NSObject, CBCentralManagerDelegate { var centralManager:CBCentralManager! public override init() { super.init() self.centralManager = CBCentralManager.init(delegate: self, q...
Potty asked 19/4, 2018 at 9:35

1

Our app received the crash multi times due to use Pasteboard. Under this situation when I try to use system Notes paste the content, the system notes will block too. So I write a program try to rea...
Emendate asked 21/12, 2018 at 8:53

1

What APIs do I need to use, and what precautions do I need to take, when writing to an IOSurface in an XPC process that is also being used as the backing store for an MTLTexture in the main applica...
Kelly asked 3/2, 2019 at 15:46

4

Solved

I am working on a Finder Sync Extension for OS X and want to use a background XPC service. I can start in the main app and have it launch the XPC and run correctly but nothing happens when I atte...
Beiderbecke asked 18/10, 2014 at 5:18

3

I have an app that is sandboxed, and includes a helper that presents some UI (as a full-screen window, but could be a status item or similar too). This works... most of the time. But sometimes it ...
Lingam asked 17/1, 2015 at 3:52

2

Solved

My use case: I have a 'MainApp' which does the syncing of files. I would like that 'MainApp' handles all server calls regarding syncing and other REST API calls such as document-sharing, etc. On t...
Barrick asked 7/12, 2016 at 11:41

2

Solved

Does anybody know what does that error code mean? I get SMJobBless error with this return code value. Failed to bless helper: Error Domain=CFErrorDomainLaunchd Code=9 "The operation couldn’t b...
Hibbard asked 25/8, 2015 at 10:53

0

I've got the following error in the Xcode console: Received XPC error Connection interrupted for message type 3 kCFNetworkAgentXPCMessageTypePACQuery. By the way, I used Xcode 9.0 and language...
Chaumont asked 30/9, 2017 at 7:23

0

TL/DR: What is the most efficient way to decode images in an XPC service, move the data to the main application and then display it? In several of the WWDC videos that deal with XPC services on m...
Afterburning asked 30/8, 2017 at 11:50

1

We have a crash in our iOS app reported by Crashlytics: Device: iPhone 6+ iOS: 10.0.1 The stack trace is: Crashed: XPC API Misuse: Over-resume of a connection. 0 libxpc.dylib 0x18eb526b0 _xpc_ap...
Sonnysonobuoy asked 22/9, 2016 at 16:27

1

Solved

I’m attempting to create a solution for an end-to-end testing suite to set user permissions (contacts, photos, notifications, etc.) on the simulator. The reason for doing this is because permission...
Shauna asked 28/3, 2017 at 10:56

1

I have a windowed application and windowless helper, sitting inside the app bundle, and working as login item. App can start and stop the helper, everything woks there. The problem is that I need t...
Rosalvarosalyn asked 21/1, 2017 at 14:52

3

According to Apple, the new XPC Services API, introduced in Lion, provides a lightweight mechanism for basic interprocess communication integrated with Grand Central Dispatch (GCD) and launchd. It...
Oxfordshire asked 26/12, 2011 at 15:55

2

I am creating a TodayWidget app extension which displays information about user selected folders outside the application directory. In my main application I am able to use powerbox via NSOpenPanel...
Sledgehammer asked 11/3, 2015 at 22:54

1

I've successfully followed the Daemons and Service Guide - Creating XPC Services tutorial, along with the SandboxedFetch sample code and have a working Client / Service setup that is using the new ...
Overpay asked 21/4, 2014 at 18:9

1

I'm seeing this in my Mac OS X Yosemite Console: AppleEvents: Send port for process has no send right, port=( port:30743/0x7817 rcv:1,send:0,d:0 limit:5) (findOrCreate()/AEMachUtils.cp #526) co...
Perdue asked 15/5, 2015 at 21:1

1

I have Cocoa application with custom XPC service. I would like to create tests for that XPC, so I created new test bundle for that and created some tests. But when I run those tests (whose doesn't ...
Ese asked 25/9, 2013 at 13:1

1

Solved

I'm working on a coreaudio user-space hal plugin based on the example developer.apple.com/library/mac/samplecode/AudioDriverExamples/Introduction/Intro.html In the plug-in implementation, I plan t...
Evanevander asked 15/10, 2015 at 1:21

5

Solved

Is it possible to run multiple instances of the same XPC service using the XPC APIs found in Foundation.framework (NSXPCConnection, etc.)? The docs don't provide much insight on this matter. EDIT...
Contravention asked 26/12, 2012 at 3:41

© 2022 - 2024 — McMap. All rights reserved.