Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Scan for WiFi networks within sandbox
I am trying to perform a WiFi network scan using CoreWLAN but I keep getting these errors:2015-07-18 01:13:09.353 DummyApp[2720:74054] Error Domain=NSCocoaErrorDomain Code=4099 Couldn’t communicate with a helper application. (The connection to service named com.apple.airportd was invalidated.) UserInfo=0x608000064600 {NSDebugDescription=The connection to service named com.apple.airportd was invalidated.}Additionally, I get this in the console:18/07/15 01:10:03,599 appleeventsd[48]: <rdar://problem/11489077> A sandboxed application with pid 2668, DummyApp checked in with appleeventsd, but its code signature could not be validated ( either because it was corrupt, or could not be read by appleeventsd ) and so it cannot receive AppleEvents targeted by name, bundle id, or signature. Error=ERROR: #100013 { NSDescription=SecCodeCopySigningInformation() returned 100013, -. } (handleMessage()/appleEventsD.cp #2100) com.apple.root.default-qos18/07/15 01:10:03,604 sandboxd[277]: ([48]) appleeventsd(48) de
7
0
4.0k
Jul ’15
Reply to Keychain error -34018 (errSecMissingEntitlement)
I have a different error, but it seems related to me.App goes in the background and saves state for UI restoration.User locks device (key / fingerprint enabled)App is terminated by the OS for low memory conditionsApp is launched by WatchKit extension: WKInterfaceController.openParentApplication -> ApplicationDelegate.handleWatchKitExtensionRequestConsole reports the following errors:------------------------------Jul 19 01:16:02 iPhone-6 MyApp[380] <Warning>: Error reading archived restorable state: Error Domain=NSCocoaErrorDomain Code=257 The operation couldn’t be completed. (Cocoa error 257.) UserInfo=0x170662480 {NSFilePath=/var/mobile/Containers/Data/Application/EA07FC55-81DA-47B9-904E-3A15518A1E24/Library/Saved Application State/com.gunpmedia.MyApp.savedState/data.data, NSUnderlyingError=0x170251fd0 The operation couldn’t be completed. Operation not permitted}Jul 19 01:16:02 iPhone-6 securityd[90] <Error>: securityd_xpc_dictionary_handler MyApp[380] copy_matching The operation coul
Topic: Privacy & Security SubTopic: General Tags:
Jul ’15
UIApplicationLaunchOptionsURLKey not accessible
My didFinishLaunchingWithOptions method stores a filename from the UIApplicationLaunchOptionsURLKey and tries to open it.-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ NSURL* url = [launchOptions objectForKey:UIApplicationLaunchOptionsURLKey]; NSError* err; if ([url checkResourcesIsReachableAndReturnError:&err]) { ... }}For iOS 8 this code works fine. My application is launched because some other application selected open in to my application, but for iOS 9 this code doesn't work, and I geterr = NSCocoaErrorDomain : code 257 : The file 'XXX' couldn't be opened because you don't have permission to view it.The operation couldn't be completed. Operation not permitted!!Very important note!!: This only happens when my application was shut down while the user tried to open a file from another application. If it was not shut down, just minimized, everything behaves well.Please helpThanksNili
1
0
1.5k
Jul ’15
Cannot copy a file from one location to another
I have a Mac app using Core Data with SQLite. In this case, the database is in 3 files, the storedata file, the .shm file, and the .wal file. I want to back these up from the app to a location of the user's choosing. My code asks the user for the location, then creates URL's representing the sources and destinations. I check for the file's existence and remove if necessary before copying. NSError* error; if ([[NSFileManager defaultManager] fileExistsAtPath:backupDBURL.path]) { / NSError* error; [[NSFileManager defaultManager] removeItemAtURL:backupDBURL error:&error]; if (error) { NSLog(@error: %@, error); } } if ([[NSFileManager defaultManager] fileExistsAtPath:backupShmURL.path]) { / NSError* error; [[NSFileManager defaultManager] removeItemAtURL:backupShmURL error:&error]; if (error) { NSLog(@error: %@, error); } } if ([[NSFileManager defaultManager] fileExistsAtPath:backupWalURL.path]) { / NSError* error; [[NSFileManager defaultManager] removeItemAtURL:backupWalURL error:&error]; if (error) {
5
0
2.6k
Jul ’15
Reply to Xcode 7 Beta 4 no simulators and can't open nibs
This helped me part of the way... The final step I had to make was manually creating the directory /Users/reeves/Library/Developer/Xcode/UserData/IB Support/Simulator Devices ... Somehow this directory path no longer existed in my folder hierarchy. Everything after Developer no longer existed. I checked a couple of the log files using Console and noticed the error below.The Console error:Jul 28 03:22:02 CoreSimulatorService[517] <Error>: Set (/Users/reeves/Library/Developer/Xcode/UserData/IB Support/Simulator Devices) could not be created: Error Domain=NSCocoaErrorDomain Code=513 You don’t have permission to save the file “Simulator Devices” in the folder “IB Support”.After manually adding the missing folders ... entering my admin password after each one ... Reopened Xcode 7 Beta 4 ... everything ran perfectly.Thanks to Sean for getting me started, I've been stuck on this for about a week.
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’15
Email Pop Up Sending Loop
Hi all!.Beta 3 Public.I have a problem with Mail.When i start it, and i try to send an email, the loop seems to be this:Send button:Try to send the email.The pop up of the email dissapear.The pop up of the email appearThe pop up of the email dissapear.The pop up of the email appearThe pop up of the email dissapear.The pop up of the email appearThe pop up of the email dissapear.The pop up of the email appearindefinitely.........The only way that can i send the email is, with this window opening and closing,,, try to enter to preference and put the password of the SMTP again....If i do it, Like a Spartan fighting with the pop up of the email, this can be sended and the pop up loop stops....How can i fix this?.RegardsP.D:Here have all the console menssages antil send correctly the email:30/7/15 9:57:23,668 a.m. Spotlight[248]: XPC connection was invalidated30/7/15 9:57:23,732 a.m. Spotlight[248]: XPC connection was invalidated30/7/15 9:57:23,931 a.m. Spotlight[248]: XPC connection was invalidated30/7/15 9:57:24,
9
0
1.8k
Jul ’15
CSSearchableItem uniqueIdentifier: restrictions on string content or length?
Strings containing MD5 hashes or vanilla alphanumeric values seem to work fine, but using a string that contains a URL sometimes appears to cause indexing to fail.Jul 31 05:36:37 Timmy-OCrashington Art Authority[519] <Warning>: [com.apple.corespotlight.log.index] Error caught while talking to the index agent, index:<CSSearchableIndex:0x145b01d70; name=CSSearchableIndexShared>, error:Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.spotlight.IndexAgent UserInfo={NSDebugDescription=connection to service named com.apple.spotlight.IndexAgent}Jul 31 05:36:37 Timmy-OCrashington Art Authority[519] <Warning>: [com.apple.corespotlight.log.index] Finished index items(16) with error:Error Domain=CSIndexErrorDomain Code=-1003 (null)Jul 31 05:36:37 Timmy-OCrashington Art Authority[519] <Warning>: [com.apple.corespotlight.log.index] Error caught while talking to the index agent, index:<CSSearchableIndex:0x145b01d70; name=CSSearchableIndexShared>, error:E
0
0
553
Jul ’15
Xcode 7 Error: The operation couldn’t be completed.
My coworker has just installed the Xcode 7 beta onto his OS X 10.10 machine.Whenever he tries to build or execute a playground, he gets a popup with the message The operation couldn’t be completed. (Cocoa error -102.)He also gets the following message in Console:8/4/15 1:23:19.293 PM Xcode[813]: [MT] IDEPlaygroundDocument: Error encountered running playground: Error Domain=NSCocoaErrorDomain Code=-102 The operation couldn’t be completed. (Cocoa error -102.) UserInfo=0x7fdcee925780 {Error=LaunchServices: RegistrationFailed}Can someone please help us figure out what might be going wrong here? We've tried all the obvious things (restarting, reinstalling Xcode, etc.). The issue occurs only with Xcode 7 (latest) beta (i.e. issue does not reproduce in Xcode 6.x)
5
0
2.0k
Aug ’15
strange error updating Xcode
anyone else get this while Xcode updates?Failed to download index with errors: ( Error Domain=DVTDownloadableErrors Code=-1 Failed to open 'https://developer.apple.com/library/downloads/docset-index-7.0.0-AABB7188-E14E-4433-AD3B-5CD791EAD9A3.dvtdownloadableindex' with HTTP status 404: not found UserInfo=0x7fb2cb089270 {NSLocalizedDescription=Failed to open 'https://developer.apple.com/library/downloads/docset-index-7.0.0-AABB7188-E14E-4433-AD3B-5CD791EAD9A3.dvtdownloadableindex' with HTTP status 404: not found, NSHTTPURLResponse=<NSHTTPURLResponse: 0x7fb2cb4eccf0> { URL: https://developer.apple.com/library/downloads/docset-index-7.0.0-AABB7188-E14E-4433-AD3B-5CD791EAD9A3.dvtdownloadableindex } { status code: 404, headers {n Content-Encoding = gzip;n Content-Type = text/html;n Date = Mon, 10 Aug 2015 13:38:53 GMT;n Server = nginx;n Strict-Transport-Security = max-age=31536000; includeSubDomains;n x-frame-options = SAMEORIGIN;n x-xss-protection = 1; mode=block;n} }}, Error Domain=NSCocoaErrorDomain
1
0
1.1k
Aug ’15
Reply to strange error updating Xcode
Similair error here:Failed to download index with errors: ( Error Domain=NSCocoaErrorDomain Code=3840 The data couldnU2019t be read because it isnU2019t in the correct format. (Encountered unknown tag html on line 2) UserInfo=0x7fd923c88980 {NSDebugDescription=Encountered unknown tag html on line 2, kCFPropertyListOldStyleParsingError=The data couldnU2019t be read because it isnU2019t in the correct format.}, Error Domain=NSCocoaErrorDomain Code=3840 The data couldnU2019t be read because it isnU2019t in the correct format. (Encountered unknown tag html on line 2) UserInfo=0x7fd923285250 {NSDebugDescription=Encountered unknown tag html on line 2, kCFPropertyListOldStyleParsingError=The data couldnU2019t be read because it isnU2019t in the correct format.})I think I'm going to reinstall xcode
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’15
El Capitan Beta 6 Safari Launches on its own
Since updating to Beta 6 I have had a peculiar problem that I haven't been able to completely track down. I've noticed that Safari is being started by some process, but it's windows are not open. I have four tabs set to open when I launch Safari. When I launch Safari its window opens and those four tabs load, no problem. Then I quit Safari. At some point I noticed that there was the little white dot under Safari again and that it was running. If I click on it in the dock, the window and my tabs are displayed. I quit Safari again (verified that no process is running and there is no dot under the icon in the dock). Later, I again notice that Safari is again running. In order to try and catch when this happens I assigned Safari to its own desktop. I can be working in another application and all of a sudden the desktop shifts to the one where I had assigned to Safari. Safari's window is not open, but it does show that it is running and minimized in the dock.Here are the events from my system log that occurred jus
2
0
1.3k
Aug ’15
Inserting PHAsset in XCTest setup
I'd like to test some code that uses image and video assets.I'd like to insert sample assets in the setUp phase of my XCTest but find that this fails with NSCocoaErrorDomain Code=-1 The operation couldn’t be completed. (Cocoa error -1.)video1.m4v is a member both of the main app target, and of the test target so I should be accessible.First tried with the older ALAssetsLibrary approach. The code works in the main app (without the expectations) but not in the test runner. - (void)setUp { [super setUp]; NSURL *path = [[NSBundle mainBundle] URLForResource:@video1 withExtension:@m4v ]; XCTestExpectation *exp = [self expectationWithDescription:@video]; [self.assetsLibrary writeVideoAtPathToSavedPhotosAlbum:path completionBlock:(ALAssetsLibraryWriteVideoCompletionBlock) ^{ NSLog(@Wrote video %@, path); [exp fulfill]; }]; [self waitForExpectationsWithTimeout:10 handler:^(NSError *error) { NSLog(@Errr %@, error); }]; }I've also tried the newer PhotoKit version. -(void) setUp { [super setUp]; NSBundle *bundle
1
0
1.8k
Aug ’15
Unable to load http URL Image
I'm trying to convert a watchOS 1 app to watchOS 2.But I saw an error when trying to load an image from an URL with this code: let url:NSURL = NSURL(string: http://www.xxxxxxxx.com/xxx/xyz.jpg)! let data:NSData = try! NSData(contentsOfURL:url, options:[]) imageone.setImage(UIImage(data: data))The error is:> Error Domain=NSCocoaErrorDomain Code=256 The file “xyz.jpg” couldn’t be opened. UserInfo={NSURL=http://www.xxxxxxxx.com/xxx/xyz.jpg}I read on the internet that is because of the new Application Transport Security protocol.I also read to put <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict>in the info.plist on the Watchkit extension but the same error appear.It's the same also if I use an image in an HTTPS domain.NOTE: On the simulator it works perfectly!I'm using XCode 7 beta 5.Anyone knows how to solve?Thanks
5
0
6.3k
Aug ’15
iOS App Getting SigKill on WatchOS 2 Launch
In beta 5, our ios app is receiving sigkill when launching our watchos2 app. Somethig is causing the watch app installation to be skipped:Aug 20 21:53:37 companionappd[396] <Notice>: (Note ) WatchKit: MobileInstallation says that we should SKIP the installDoes anyone know of a fix or workaround for this?Aug 20 21:53:35 streaming_zip_conduit[414] <Warning>: LaunchServices: installing app for existing placeholder <LSApplicationProxy: 0x14651e5a0> <(null) *Not found in database*>Aug 20 21:53:35 streaming_zip_conduit[414] <Warning>: LaunchServices: Not creating progress for <LSApplicationProxy: 0x14651e5a0> <(null) *Not found in database*> since it is not a placeholder.Aug 20 21:53:35 installd[50] <Notice>: 0x16e1bb000 -[MIClientConnection installPath:withOptions:completion:]: Install of /var/mobile/Media/PublicStaging/TheWeather.app_sparse.ipa type Developer requested by streaming_zip_conduit (pid 414)Aug 20 21:53:35 MobileStorageMounter[1353] <Error>: 0x19f1
1
0
1k
Aug ’15
Reply to Notification triggered from iPhone to Watch
Yeah I do exactly that, but I see this happening in my iOS Device backlog when the watch tries to send a message to the iOS device to schedule that notification. The problem doesn't appear to be the fact that notifications don't appear, but more that my watch can't seem to connect to the iOS device without getting rejected:Aug 21 11:25:16 glendcs-iPhone apsd[100] <Notice>: (Note ) WatchKit: SPDeviceConnection, createXPCConnection, invalidationHandler Aug 21 11:25:16 glendcs-iPhone apsd[100] <Notice>: (Error) WatchKit: -[SPDeviceConnection activeComplicationsWithCompletion:] - error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.companionappd was invalidated from this process. UserInfo={NSDebugDescription=The connection to service named com.apple.companionappd was invalidated from this process.} Aug 21 11:25:16 glendcs-iPhone companionappd[113] <Notice>: (Error) WatchKit: <SPCompanionAppServer.m -[SPCompanionAppServer listener:shouldAcceptNewC
Topic: App & System Services SubTopic: Core OS Tags:
Aug ’15