Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

App opens CoreData stores when launch via Xcode, but not when launched via Finder
We have an application that has been using CoreData stores since 2009, but is suddenly having some strange behavior when the application is launched via the Finder.The application has up to a couple hundred core data stores (sqlite with WAL) that are loaded into a single persistent store coordinator at launch. When the application is launch from within Xcode (using release or debug builds, with the debugger on or off), everything loads up fine---zero complaints. However, when the application is launch from the Finder, the first 'several' persistent stores are loaded fine, but then eventually they start failing to load. E.g.,Error Domain=NSCocoaErrorDomain Code=256 The file couldn’t be opened. UserInfo=0x618000278d80 {NSSQLiteErrorDomain=14, NSUnderlyingException=I/O error for database at /Users/path/SomeStore.sql. SQLite error code:14, 'unable to open database file'}What could possibly be going on here?It's worth noting that the application actually creates two separate persistent store coordinators,
5
0
2.0k
Jun ’15
Reply to Watchkit app hangs (spins forever) - activePlugInForIdentifier: returned nil for application
Update:I've stripped down the application to a single page with a label. No assets. No network requests.Again, it launches fine with local builds and spins forever and eventually crashes with enterprise builds.I checked out the logs and sure enough there is an error:Hub connection error Error Domain=NSCocoaErrorDomain Code=4097 The operation couldn’t be completed. (Cocoa error 4097.) (connection to service named com.XXX.watchkitextension) <Notice>: (Error) WatchKit: <SPCompanionAppServer.m __51-[SPCompanionAppServer sendToRemoteInterface:call:]_block_invoke519:914> activePlugInForIdentifier: returned nil for application com.XXX.watchkitappI've googled the error code quite a bit but nothing concrete has surfaced.Anyone @ Apple have any idea of what is going on?
Topic: App & System Services SubTopic: General Tags:
Jun ’15
Protection data didn't match
I am developing my first App to use CloudKit.I am getting Partial Failure, Server Record Changed, Protection data didn't match error on only one of a pair of CKRecords after attempting to save local changes to a custom zone.In this case, the change is modifying a CKReference type property on both CKRecords, referencing records in the same zone, using CKModifyRecordsOperation.The CKRecords that were modified, had only just been read from the server and in this case, no other App had attemtped to modify them after that load.The correct data appears to be in the sent records, including same recordChangeTag.My save method, is a series of nested blocks (maybe change to NSOperations after seeing the excelent talk at WWDC'15).The method first attempts to save, then if there are errors, update, then save again.The first save produces the protection error above, on one record, the second save produces Domain=NSCocoaErrorDomain Code=4097, NSDebugDescription=connection to service named com.apple.cloudd, if I se
1
0
373
Jun ’15
Reply to Watchkit app hangs (spins forever) - activePlugInForIdentifier: returned nil for application
Thanks Justin,The watchkit extension does indeed have arm64 set as a valid architecture (+ armv7 and armv7s), along with the parent application and all linked frameworks.Again, the sequences of events from the console logs on launch (XXX is our bundle id):6/18/15, 10:47:28 PM pkd[4784]: assigning plug-in XXX(1.0) to plugin sandbox 6/18/15, 10:47:28 PM pkd[4784]: enabling pid=4783 for plug-in XXX(1.0) /private/var/mobile/Containers/Bundle/Application/XXX.app/PlugIns/XXX.appex 6/18/15, 10:47:28 PM com.apple.xpc.launchd[1]: Program specified by service does not contain one of the requested architectures: 16777228:arm64 6/18/15, 10:47:28 PM companionappd[4783]: plugin XXX interrupted 6/18/15, 10:47:28 PM companionappd[4783]: Hub connection error Error Domain=NSCocoaErrorDomain Code=4097 The operation couldn’t be completed. (Cocoa error 4097.) (connection to service named XXX.watchkitextension) UserInfo=0x15deac160 {NSDebugDescription=connection to service named XXX.watchkitextension} 6/18/15, 10:47:28 PM
Topic: App & System Services SubTopic: General Tags:
Jun ’15
file transfer to watchkit failed - No such file or directory
I'm trying to transfer a file from iOS app to watchkit. I checked WCSessionDelegate calls are working well. But, interestingly, file url does not exist.Per the code below, I get fileURL from the argument, and the argument value is wrong somehow. When I search for the directory from Mac Finder, the directory doesn't exist. Do you have any idea?func session(session: WCSession, didReceiveFile file: WCSessionFile) { print(file.fileURL) let baseUrl = NSFileManager.defaultManager().containerURLForSecurityApplicationGroupIdentifier(group.com.ABC.WatchAac) ....}copy error=========Error Domain=NSCocoaErrorDomain Code=4 “audio9.caf” couldn’t be moved to “35B1C*******9-B6BF-A6A97154724C” because either the former doesn't exist, or the folder containing the ln't exist. UserInfo=0x79079700 {NSSourceFilePathErrorKey=/Users/AAA/Library/Developer/CoreSimulator/Devices/62C8**********4-82A1C0626A31/data/Containers/Data/PluginKitPlugin/25063************-8BD68ECEB831/Documents/Inbox/com.apple.watchconnectivity/Files/35B
1
0
904
Jun ’15
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
reason=Container is forked
Hi There,I've been working at porting my Core Data + iCloud iOS 8 app to iOS9 and I'm getting the following from the console. No data is coming down from the cloud. Any ideas on how to fix this.Error Domain=NSCocoaErrorDomain Code=134302 The operation couldn’t be completed. (Cocoa error 134302.) UserInfo=0x7f8e5bc83d90 {reason=Container is forked}
1
0
312
Jun ’15
ip_output_list: can't update route after IPsec processing
Hi,Since installing latest 10.10.4 seed, my L2TP over IPsec tunnel won't stay connected for more than 4-6 minutes at a time.Hvae tried the usual : restarting, clearing PRAM and so on.I have another Mac on the same network (running 10.10.3) connecting to same VPN without any issues.The only thing I can see in console while connected is lots and lots of :22/06/15 09:23:05,000 kernel[0]: ip_output_list: can't update route after IPsec processingUntil I get disconnected:22/06/15 09:23:46,332 com.apple.geod[20805]: Connection error while checking Apple Internalness. Error: Error Domain=NSCocoaErrorDomain Code=4099 Couldn’t communicate with a helper application. (The connection to service named com.apple.CrashReporterSupportHelper was invalidated.) UserInfo=0x7fddf0503ff0 {NSDebugDescription=The connection to service named com.apple.CrashReporterSupportHelper was invalidated.}22/06/15 09:23:46,904 sandboxd[20806]: ([20805]) com.apple.geod(20805) deny mach-lookup com.apple.CrashReporterSupportHelper22/06/15
1
0
370
Jun ’15
Finder unable to show mounted Drive with 10.10.4 beta releases
Hi,With the latest yosemite 10.10.4 beta releases, finder is unable to show contents of a mounted virtual Drive. We found that this virtual drive gets mounted successfully and is fully accessible from Terminal, it is just finder which fails to list entries inside this drive. Similar functionality works fine with earlier Yosemite releases (10.10.3 and below).We get following error logs while mounting the said virtual drive on the latest beta-23/06/15 12:34:49.114 pm mds[60]: (Volume.Normal:2464) volume:0x7fb2fd8bd000 ********** Bootstrapped Creating a default store:1 SpotLoc:(null) SpotVerLoc:(null) occlude:0 /Volumes/ayushjain-win723/06/15 12:34:49.222 pm mds[60]: (Volume.Error:577) vsd:0x7fb2fc893000 Open failed. failureCount:0 (null)23/06/15 12:34:49.296 pm coreservicesd[110]: SFLItem (ayushjain-win7) is missing volume type when setting new prefs. 1 OSServices 0x00007fff895e8f34 _ZN18SFLMutableListItem11SetNewPrefsEPK14__CFDictionarytP16OpaqueISImageRef + 866 2 OSServices 0x00007fff8964b0ec _ZN15SFLVolumesE
0
0
429
Jun ’15
Installing El Capitan on a USB Flash Drive
I have tried this several times just to make sure I was doing it correctly, and I always come up with the same bad result. This is a 2013 Mac Book Air:Installed the El Capitan installer on my Yosemite system from the App StoreFormatted a brand new 128gb flash drive as Mac OS Extended (Journaled) with a GUID Partition TableInstalled the Installer on the flash drive: sudo /Applications/Install OS X 10.11 Developer Beta.app/Contents/Resources/createinstallmedia --volume /Volumes/ElCapInstaller --applicationpath /Applications/Install OS X 10.11 Developer Beta.app --nointeractionEjected the flash driveReinserted the flash drive and booted from it using the Option keyThe installation onto the flash drive proceeded and worked up to the very last, when it said Less that one second remaining. It stayed there and never finished, never rebooted. I waited what I thought ws a long time.I was able to **** off the installation log. I do see some errors that I don't know what to do with. They seem to be communications relate
4
0
11k
Jun ’15
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
Reply to Can we get a "try?" as a more lenient "try!"?
So what you probably should do is to try and create the directory first, without even checking if it exists first.Well, no. If the directory already exists, and I try to create it, I'm going to get an error which once again, is not an error. I just want the folder to be there, so if it already is, then great! Not a problem. Now, I could just ignore the error on folder creation, but then the problem is that in the case that the folder didn't already exist, now suddenly I do care about the error. I could do a checkURLIsReachable() after trying to create the folder, but then I'll get the wrong error — I don't want to know that the folder doesn't exist, I want to know why I couldn't create it.Anyway, either way this is going to require the ignoring of some error somewhere.If it is important for some reason to check first, do that, but remember that the directory might appear between your call to check for existence and you actually trying to create it.If we're talking about something in ~/Library/Caches/<my ap
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’15
Error initializing MLMediaLibrary instance
In an application I'm developing, I followed these directions on Stack Overflow to initialize a new instance of MLMediaLibrary. Rather than get back a properly-formed instance, I get the following logged to the console:__38-[MLMediaLibraryImpl connectToService]_block_invoke connection interruptedMLMediaLibrary error obtaining remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 Couldn't communicate with a helper application. (connection to service named com.apple.MediaLibraryService) UserInfo=0x60000026a140 {NSDebugDescription=connection to service named com.apple.MediaLibraryService}So I made a new test application, copied the code from the application I'm developing and pasted it into the test application. Surprise of surprises, it works fine.I've checked the build settings, etc, to make sure the two are the same and can't figure out why the new application works, but the other doesn't. (Of note: The old application was originally an Xcode 3.2.6 project that has been upgraded numerous tim
2
0
1.5k
Jul ’15
in apple watch the app is must be arm64?
apple watch(watchOS=1.0.1)xcode=6.4my watchApp target Build Settings: Architectures=armv7 Valid Architectures=arm64 armv7 armv7srun my watch app in apple watch has the error,is the app run in apple watch must be builded with arm64?:Jul 15 09:59:05 cengruilvede-iPhone com.apple.xpc.launchd[1] (com.alibaba.aliwork.watchkitextension[1957]) <Error>: Program specified by service does not contain one of the requested architectures: 16777228:arm64Jul 15 09:59:05 cengruilvede-iPhone companionappd[106] <Warning>: plugin com.alibaba.aliwork.watchkitextension interruptedJul 15 09:59:05 cengruilvede-iPhone companionappd[106] <Warning>: Hub connection error Error Domain=NSCocoaErrorDomain Code=4097 The operation couldn’t be completed. (Cocoa error 4097.) (connection to service named com.alibaba.aliwork.watchkitextension) UserInfo=0x12ea9bbb0 {NSDebugDescription=connection to service named com.alibaba.aliwork.watchkitextension}Jul 15 09:59:05 cengruilvede-iPhone companionappd[106] <Notice>:
1
0
1.4k
Jul ’15
Issues indexing CoreSpotlight items
Hi.In the latest betas I am having difficulty using the new CoreSpotlight API to index my app's content.[[CSSearchableIndex defaultSearchableIndex] indexSearchableItems:newItemsToIndex completionHandler:^(NSError *indexError) {...}];After calling this method, I get several messages in the debugger that read:[com.apple.corespotlight.log.index] Error caught while talking to the index agent, index:<CSSearchableIndex:0x7fc02d98be90; name=CSSearchableIndexShared>, error:Error Domain=NSCocoaErrorDomain Code=4097 Couldn’t communicate with a helper application. (connection to service named com.apple.spotlight.IndexAgent) UserInfo=0x7fc02da64fc0 {NSDebugDescription=connection to service named com.apple.spotlight.IndexAgent}As far as the release notes detail, there are no known issues with the API. Is anyone else having this issue?
0
0
712
Jul ’15