Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Xcode server hangs on 'processing warnings' while intergration
I've posted my question on StackOverFlow before:https://stackoverflow.com/questions/47214725/xcode-integration-bot-hangs-on-processing-warningsBut no reponse yet.So I checked my Xcode server build log carefully, and finally found something.Here is part of the log in 'buildService.log'```Mar 1 14:15:10 [751] <Info>: Integration commit history are needed but not loaded yet, fetching.Mar 1 14:15:10 [751] <Info>: Integration commits loaded successfully.Mar 1 14:15:11 [751] <Error>: Could not fetch some items from the source control cache: Error Domain=com.apple.dt.SourceControlErrorDomain Code=-1 Access to '/svnrepos/Vendors/SVG/TrafoParser.m' forbidden (1) UserInfo={com.apple.dt.sourcecontrol.UnderlyingErrorString=Authentication realm: <https://placeholder:443> subversionPassword for 'john': svn: E170013: Unable to connect to a repository at URL 'https://john@placeholder/TrafoParser.m//john@placeholdersvnrepos/Vendors/SVG/TrafoParser.m'svn: E175013: Access to '/svnrepos/Vendors/SVG/TrafoP
0
0
1.2k
Mar ’18
PHPicker fails to load RAW images
We observed that the PHPicker is unable to load RAW images captured on an iPhone in some scenarios. And it is also somehow related to iCloud. Here is the setup: The PHPickerViewController is configured with preferredAssetRepresentationMode = .current to avoid transcoding. The image is loaded from the item provider like this: if itemProvider.hasItemConformingToTypeIdentifier(kUTTypeImage) { itemProvider.loadFileRepresentation(forTypeIdentifier: kUTTypeImage) { url, error in // work } } This usually works, also for RAW images. However, when trying to load a RAW image that has just been captured with the iPhone, the loading fails with the following errors on the console: [claims] 43A5D3B2-84CD-488D-B9E4-19F9ED5F39EB grantAccessClaim reply is an error: Error Domain=NSCocoaErrorDomain Code=4097 Couldn’t communicate with a helper application. UserInfo={NSUnderlyingError=0x2804a8e70 {Error Domain=NSCocoaErrorDomain Code=4097 connection from pid 19420 on anonymousListener or serviceListener UserInfo
7
0
2.9k
Mar ’23
SwiftData not loading under iOS 26.1
Updated the phone to iOS 26.1 and now the app is not working anymore, even previously approved version published on App Store which works perfectly on iOS 26.0.1, and iOS 18+. I deleted the app from the phone and installed fresh from App Store, still the same. Logic is that on start app copies previously prepared SwiftData store file (using the same models) from app bundle to Documents directory and uses it. Currently app just hungs with loader spinner spinning as it can t connect to the store. Getting this error in console when running from Xcode on real device with iOS 26.1 installed: CoreData: error: CoreData: error: Store failed to load. (type: SQLite, url: file:///var/mobile/Containers/Data/Application/DA32188D-8887-48F7-B828-1F676C8FBEF8/Documents/default.store) with error = Error Domain=NSCocoaErrorDomain Code=134140 Persistent store migration failed, missing mapping model. UserInfo={sourceModel=() isEditable 0, entities { /// there goes some long models description addPersistentStoreWithType
8
0
675
Nov ’25
Finder Sync + XPC Launch Agent
HiI have a problem with communication between Finder Sync and XPC service as Launch Agent. When I try execute some function, invalidation handler was called and get error Error Domain=NSCocoaErrorDomain Code=4099 Couldn’t communicate with a helper application. (The connection to service named com.com4it.test was invalidated.) UserInfo=0x60800026af80 {NSDebugDescription=The connection to service named com.com4it.test was invalidated.}All application are signed and add to the same App Group.XPC Service is working because I can connect from another app and it works.Pleas help me
5
0
1.4k
Feb ’16
What is the exposureBiasesByMode dictionary?
Where can I find it? What's the content of this dictionary? Whenever I open the UIIMagePickerController with source type .camera I see an error: Failed to read exposureBiasesByMode dictionary. The camera seems to work fine, though. 2021-08-16 06:51:59.608807+0200 myProject[19537:4428708] [Camera] Failed to read exposureBiasesByMode dictionary: Error Domain=NSCocoaErrorDomain Code=4864 *** -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: data is NULL UserInfo={NSDebugDescription=*** -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: data is NULL} Thank you for any advise.
0
0
1.1k
Aug ’21
Reply to Right way to Save Data in Sandbox
I changed th saveroutin to:- (void)saveImage:(NSImage *)sourceImage toPixelDimensions:(NSSize)newSize path:(NSURL*)myUrl filename:(NSString*)newFileName { NSLog(@Absoluter String from NSURL %@,[myUrl absoluteString]); NSLog(@FileName %@,newFileName); NSInteger index = 0; for (NSString *line in sizeTable) { NSArray *sizeArray = [line componentsSeparatedByString:@x]; NSUInteger sizex = [[sizeArray objectAtIndex:0] integerValue]; NSUInteger sizey = [[sizeArray objectAtIndex:1] integerValue]; //NSLog(@%lu , %lu,sizex,sizey); NSBitmapImageRep *rep = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes:NULL pixelsWide:sizex//newSize.width pixelsHigh:sizey//newSize.height bitsPerSample:8 samplesPerPixel:4 hasAlpha:YES isPlanar:NO colorSpaceName:NSCalibratedRGBColorSpace bytesPerRow:0 bitsPerPixel:0]; rep.size = newSize; [NSGraphicsContext saveGraphicsState]; [NSGraphicsContext setCurrentContext:[NSGraphicsContext graphicsContextWithBitmapImageRep:rep]]; [sourceImage drawInRect:NSMakeRect(0, 0, newSize.width, newSize.h
Aug ’18
Reply to iOS 14.4 creation of symbolic link failing
Hello, I solved the primary issue but in the process of exploring I discovered an oddity with symbolic link creation that warrants explanation. I am trying to create a symbolic link to a file in a subdirectory of the Application Support Directory. When I try to create a symbolic link by path it throws an error. When I repeat the same thing but with URL I do not get an error. I have revised my code above to correct an error that I discovered. For a sanity check I downloaded the app container and inspected the directory and I do not see the symbolic link. what am I missing. NSFileManager* fm = NSFileManager.defaultManager; NSString* path = [NSString stringWithFormat:@%@/%@, dir, filename]; tttttt NSString *symlinkPath; NSError *simError; NSError *urlsimError; NSString *symlinkFile = [filename stringByReplacingOccurrencesOfString:@ withString:@-] symlinkPath=[NSString stringWithFormat:@%@/%@,dir,symlinkFile]; [fm createSymbolicLinkAtPath:symlinkPath toPath:path error:&simError]; [fm createSymbolicLinkAtURL:
Topic: App & System Services SubTopic: Core OS Tags:
Feb ’21
Error attempting to start HealthKit query from watchOS 2
I'm on the latest Xcode (7A121I) and trying to get HealthKit to run in the simulators (watchOS2 / iOS 9). But when I request auth to HK (requestAuthorizationToShareTypes:), even though the iOS app displays the HK permissions and I grant them, the callback on the watch extension spits out:Error Domain=NSCocoaErrorDomain Code=4097 Couldn’t communicate with a helper application. (connection to service named com.apple.healthd.server) UserInfo=0x7be506d0 {NSDebugDescription=connection to service named com.apple.healthd.serverAny ideas as to what's going on?
2
0
1.8k
Jul ’15
Passkeys in AppClip shows intermittently "Couldn't communicate with a helper application."
I have a demo AppClip which does Passkey registration and assertion in a wizard style page collection. Very often, the assertion would fail with the error Couldn't communicate with a helper application. Retrying it few times will eventually work. Full error: Connection to agent service interrupted with error: Error Domain=NSCocoaErrorDomain Code=4097 Couldn’t communicate with a helper application. I don't know exactly what's causing this and how to prevent it? It only seems to happen during assertion, not registration.
1
0
783
Feb ’24
XPC Connection Error
I have an accessory with MFi authenticaiton passed(got 0xAA05) and identification accepted (got 0x1D02). But when I try to open the target stream by using iAP2 EA session framework, I always enounter the same error looking like: XPC connection error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.accessories.externalaccessory-server was invalidated from this process. UserInfo={NSDebugDescription=The connection to service named com.apple.accessories.externalaccessory-server was invalidated from this process.} anybody can tell me what it related with? And what can I do to go through it quickly? Thank you much in advance.
1
0
146
May ’25
Reply to Think I am misunderstanding keychain-access-groups, can anyone confirm how I should be handling it
Morning Quinn, Are you building your Info.plist and .entitlements file with Apple tools? Modern systems apply additional constraints on security-sensitive XML files. See Ensure Properly Formatted Entitlements for more on this. I am not building either the info.plist or the entitlements file using Apple's tools. I am using [NSPropertyListSerialization dataWithPropertyList:format:options:error:] to create a NSData object of format kCFPropertyListXMLFormat_v1_0 which is then written to the file using a stream. plutil -lint ~/mainEntitlementsAppStore.entitlements ~/mainEntitlementsAppStore.entitlements: OK codesign -d --entitlements :- ~/Aqua Swatch.app Executable= ~/Aqua Swatch.app/Contents/MacOS/Aqua Swatch com.apple.application-identifier QXAFMEPH6X.com.ohanaware.aquaSwatch com.apple.developer.team-identifier QXAFMEPH6X com.apple.security.app-sandbox com.apple.security.network.client keychain-access-groups QXAFMEPH6X.com.ohanaware.aquaSwatch If the mainEntitlements only consists of com.apple.security
Topic: Code Signing SubTopic: Entitlements Tags:
Oct ’21
Remove Items From the Spotlight Index
I have successfully added entries to the search index. I tried to delete a couple of them like this[[CSSearchableIndex defaultSearchableIndex] deleteSearchableItemsWithIdentifiers:deletedIdentifiers completionHandler:^(NSError *deletionError) { if (deletionError) { NSLog(@Could not delete items from the search index with error %@, deletionError); } }];gave me this error[com.apple.corespotlight.log.index] Hit Error index items:Error Domain=NSCocoaErrorDomain Code=4097 Couldn’t communicate with a helper application. (connection to service named com.apple.spotlight.IndexAgent) UserInfo=0x7fa071fcb740 {NSDebugDescription=connection to service named com.apple.spotlight.IndexAgent}Am I doing something wrong or should I open a radar?Regards
1
0
917
Jun ’15
how to save photo with metadat in album with PHPhotolibrary in iOS9?
HI,I have write the following code to save photo in album. it's work fine in iOS8 but It doesn't work in iOS9.PHPhotoLibrary.sharedPhotoLibrary().performChanges({ let assetRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(newImage!) let assetPlaceholder = assetRequest.placeholderForCreatedAsset let albumChangeRequest = PHAssetCollectionChangeRequest(forAssetCollection: album, assets: albumFetch) albumChangeRequest!.addAssets([assetPlaceholder!]) }, completionHandler: { success, error in print(added image to album) print(error) })I got the error Error Domain=NSCocoaErrorDomain in iOS9.Please help to come out this problem.Thanks,Piyush
0
0
539
Oct ’15
Can't make Siri Shortcuts work in macCatalyst app
Hi I'm trying to port my iOS app to Mac using macCatalyst, and I'm having problem with Siri Shortcuts. The code complies and runs, but when I try to add shortcut using INUIAddVoiceShortcutViewController I'm seeing 'Shortcuts unavailable.' Using INVoiceShortcutCenter.shared.getAllVoiceShortcuts returns error [Intents] -[INVoiceShortcutCenter getAllVoiceShortcutsWithCompletion:]_block_invoke Error from -getVoiceShortcutsWithCompletion: Error Domain=NSCocoaErrorDomain Code=4099 Couldn’t communicate with a helper application. Any ideas what's I'm doing wrong? Same code works perfectly fine on iOS.
4
0
3.3k
Oct ’20
[NSPersistentCloudKitContainer] CloudKit integration forbids renaming 'OldEntityName' to 'NewEntityName'. Older devices can't process the new records. How to proceed?
I used a renaming identifier to rename an Entity Name, but it doesn't seem to work and it causes a crash at start during in-place migration. How to rename an Entity Name when using NSPersistentCloudKitContainer? I get this exception at start: CloudKit integration forbids renaming 'OldEntityName' to 'NewEntityName'. Older devices can't process the new records. Unresolved error Error Domain=NSCocoaErrorDomain Code=134110 An error occurred during persistent store migration. App is not in production, need a way to rename 'OldEntityName' to 'NewEntityName'. How to achieve this?
1
0
917
Sep ’20