My iOS app sends a database to WatchKit (watchOS 2). In WatchKit i use the following code to get the watch document folder to save the new file in:- (void)session:(WCSession * _Nonnull)sessiondidReceiveFile:(WCSessionFile * _Nonnull)file{NSURL* url = [file fileURL];NSURL* fileURL = [[[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject] URLByAppendingPathComponent:@MyDatabase.sqlite];// This results in an URL:// @file:///var/mobile/Containers/Data/PluginKitPlugin/47E13085-9030-4ED2-906F-01CBA323F07A/Documents/MyDatabase.sqlite// However, when I call the function:[[NSFileManager defaultManager] replaceItemAtURL:fileURL withItemAtURL:url backupItemName:nil options:0 resultingItemURL:nil error:&error];}It throws an error saying:Error Domain=NSCocoaErrorDomain Code=512 The file “MyDatabase.sqlite” couldn’t be saved in the folder “Documents”. Error Domain=NSCocoaErrorDomain Code=513 You don’t have permission to save the file “MyDatabase.s
Search results for
NSCocoaErrorDomain
1,063 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I'm concerned my 2012 MBP's firmware might have been compromized prior to updating to El Capitan. How can I check to verify that my firmware is identical to what it's supposed to be from Apple? I've been seeing a lot of stuff like this in the logs:10/5/15 1:51:35.035 AM CMA[427]: GetDYLDEntryPointWithImage(/System/Library/PrivateFrameworks/CacheDelete.framework/CacheDelete,CacheDeleteCopyPurgeableSpaceWithInfo) failed.10/5/15 1:51:37.209 AM mds[72]: (Volume.Normal:2464) volume:0x7ff3738df000 ********** Bootstrapped Creating a default store:0 SpotLoc:(null) SpotVerLoc:/Volumes/firmwaresyncd.QaBPxz/.Spotlight-V100/Store-V1 occlude:0 /Volumes/firmwaresyncd.QaBPxz10/5/15 1:51:41.962 AM deleted[368]: normalizeUserMountpoint:738 volRoot failed for /Volumes/firmwaresyncd.QaBPxz10/5/15 1:51:43.492 AM com.apple.photomoments[479]: Connection error while checking Apple Internalness. Error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.CrashReporterSupportHelper was invalida
Hello,I have a similar problem. After installing El Capitan, I can't reboot my iMac.In Safe modus, I've choosen for reinstalling the OS.Then it automatically starts up, but after a reboot, I have the same problem.I've been looking on this forum and saw a lot of similar problems.I did:cd /Volumes/Macintosh HD ; ls -1 Library/Extensions/ ; ls -1 Library/Application Support/VirtualBox/ ; find System/Library/Extensions -ctime +2w -depth 2 ; tail -70 var/log/system.log ; find Library/Logs/DiagnosticReports -name *.panic -ctime -1wThe result:ACS6x.kextATTOCelerityFC8.kextATTOExpressSASHBA2.kextATTOExpressSASRAID2.kextAVFrameBuffer.kextAVVideoCard.kextArcMSR.kextCalDigitHDProDrv.kextHighPointIOP.kextHighPointRR.kextPromiseSTEX.kextSoftRAID.kextUnsupportedls: Library/Application Support/VirtualBox/: No such file or directorySystem/Library/Extensions/BJUSBLoad.kext/ContentsSystem/Library/Extensions/EltimaAsync.kext/ContentsSystem/Library/Extensions/EPSONUSBPrintClass.kext/ContentsSystem/Library/Extensions/hp_designjet
Topic:
App & System Services
SubTopic:
Core OS
Tags:
Hello,After installing El Capitan, I can't reboot my iMac.In Safe modus, I've choosen for reinstalling the OS.Then it automatically starts up, but after a reboot, I have the same problem.I've been looking on this forum and saw a lot of similar problems.I did:cd /Volumes/Macintosh HD ; ls -1 Library/Extensions/ ; ls -1 Library/Application Support/VirtualBox/ ; find System/Library/Extensions -ctime +2w -depth 2 ; tail -70 var/log/system.log ; find Library/Logs/DiagnosticReports -name *.panic -ctime -1wThe result:ACS6x.kextATTOCelerityFC8.kextATTOExpressSASHBA2.kextATTOExpressSASRAID2.kextAVFrameBuffer.kextAVVideoCard.kextArcMSR.kextCalDigitHDProDrv.kextHighPointIOP.kextHighPointRR.kextPromiseSTEX.kextSoftRAID.kextUnsupportedls: Library/Application Support/VirtualBox/: No such file or directorySystem/Library/Extensions/BJUSBLoad.kext/ContentsSystem/Library/Extensions/EltimaAsync.kext/ContentsSystem/Library/Extensions/EPSONUSBPrintClass.kext/ContentsSystem/Library/Extensions/hp_designjet_series.kext/ContentsSyste
What I found for myself where using iOS 9 they don't work, but iOS 8 they do (I thought it was Xcode, but it seems its iOS):(lldb) po [[NSBundle mainBundle] localizedStringForKey:@Event value:@ table:@InformantCommon] 2015-10-05 15:49:37.570 Informant[16125:14938518] Unable to load .strings file: CFBundle 0x7fefa2404100 </Users/akac/Library/Developer/CoreSimulator/Devices/9B2E40B5-7E2E-45C5-9C8A-E96044F37E4A/data/Containers/Bundle/Application/53B52216-15FA-4050-8564-69F65E664A1E/Informant.app> (executable, loaded) / InformantCommon: Error Domain=NSCocoaErrorDomain Code=3840 Unexpected character / at line 1 UserInfo={NSDebugDescription=Unexpected character / at line 1, kCFPropertyListOldStyleParsingError=Error Domain=NSCocoaErrorDomain Code=3840 Unexpected ';' or '=' after key at line 4801 UserInfo={NSDebugDescription=Unexpected ';' or '=' after key at line 4801}} EventSo obviously something in my strings file is not as kosher as it should be. Would be nice if Xcode could identify this
Topic:
Accessibility & Inclusion
SubTopic:
General
Tags:
Sure, but I thought I did that in the original post. Look at the strings file. When I start I have an n in the line. When I export and then import, its broken up into multiple lines in the strings file. This causes iOS to tell you that the strings file is misformatted and now it will not load the string.So I start with:BackupFailReason=A database integrity failure occurred.nnThe backup cannot be performed.;and end up with:BackupFailReason=A database integrity failure occurred. The backup cannot be performed.;And then when iOS tries to load the strings file, you get:(lldb) po [[NSBundle mainBundle] localizedStringForKey:@Event value:@ table:@InformantCommon] 2015-10-05 15:49:37.570 Informant[16125:14938518] Unable to load .strings file: CFBundle 0x7fefa2404100 </Users/akac/Library/Developer/CoreSimulator/Devices/9B2E40B5-7E2E-45C5-9C8A-E96044F37E4A/data/Containers/Bundle/Application/53B52216-15FA-4050-8564-69F65E664A1E/Informant.app> (executable, loaded) / InformantCommon: Error Domain=NSCocoaErrorDomain
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
BTW - on a separate note, with Xcode 7.1 beta 3 (the one that just came out today), I import an xliff file that works under 7.01 - and it gets me to the window where I approve the import and then I get this error (radar 22997699):XLIFF target-language attribute missingBasically I'm just seeing XCode's localization tools go downhill big time since Xcode 7. It seems like every release does not fix any of the issues that I talked to you about at WWDC and introduces new ones. I can't tell you how disappointed and discouraging this is. I've put in so many bug reports only to see things get worse.I tell you, if you sat down with me for a few days and we ran through my project back and forth, you would fix so many issues.Console:10/6/15 2:59:51.695 PM Xcode[61177]: Failed to connect (comparisonSplitView) outlet from (DVTComparisonScrollCoordinator) to (DVTComparisonSplitView): missing setter or instance variable10/6/15 3:00:05.349 PM Xcode[61177]: [default] Failed to updated bookmark for item (null) [063E9DE3-3FFD-4
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Hi AllJust try to save remote video but all time get error: Error Domain=NSCocoaErrorDomain Code=-1 (null)Xcode 7.0.1.iPhone 4s with iOS 9.0.2[[[NSURLSession sharedSession] downloadTaskWithURL:[NSURL URLWithString:@<url to file>] completionHandler:^(NSURL * _Nullable location, NSURLResponse * _Nullable response, NSError * _Nullable error) { [PHPhotoLibrary requestAuthorization:^( PHAuthorizationStatus status ) { if ( status == PHAuthorizationStatusAuthorized ) { // Save the movie file to the photo library and cleanup. [[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{ // In iOS 9 and later, it's possible to move the file into the photo library without duplicating the file data. // This avoids using double the disk space during save, which can make a difference on devices with limited free disk space. if ( [PHAssetResourceCreationOptions class] ) { PHAssetResourceCreationOptions *options = [[PHAssetResourceCreationOptions alloc] init]; options.shouldMoveFile = YES; PHAssetCreationRequest *ch
When the image is nil, there is indeed an error, but it's certainly not very telling: PHImageErrorKey: Error Domain=NSCocoaErrorDomain Code=-1 (null)
Topic:
Media Technologies
SubTopic:
Photos & Camera
Tags:
I'm running into the same issue. UI Test is running via a Bot. It works fine on simulators, on a physical iOS simulator through Xcode, but not on a physical iOS devices plugged into the computer using a Bot.Xcode 7.0.1, iPhone 6 with iOS 9.0.2, Xcode Server 5.0.4, using a Bot.Bot Issue for MyBot Bot (error) Integration #80 of MyBot Bot Open in Xcode: xcbot://(null)/botID/e7f117d90d5259fe86a059a24a005a30/integrationID/02a785e2fc7352a91083f18f3e1abcba Assertion: Test target UITests encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted) File: (null):(null)While the bot is running the test, I can see it install the OurAppUITests app, and OurApp. Then it launches OurAppUITest, quits, and then doesn't do anything else. In the simulator, it does the same, but launches OurApp and runs the UI Tests successfully.Here's some context in the raw logs regarding the bootstrapping message when running the tests via a Bot through Xcode Server 5.0.4 with Xcode 7.0.1
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
I get the following error when trying to create a string from a file. Code below was added to viewDidLoad(). Test.txt file contains string Hello, World!From url pathlet path = NSBundle.mainBundle().pathForResource(Test, ofType: txt) let url = NSURL(string: path!) do { let string = try String(contentsOfURL: url!, encoding: NSUTF8StringEncoding) print(string) } catch { }However, this code worksFrom string pathlet path = NSBundle.mainBundle().pathForResource(Test, ofType: txt) do { let string = try String(contentsOfFile: path!, encoding: NSUTF8StringEncoding) print(string) } catch { }Am I missing something? This worked for me before. Now on Xcode 7/ iOS 9.0.2, I can't get it to work.rey
Good morning everyone,Trying to figure out what is happening with my content blocker for iOS Safari under iOS 9.0.2. When I run from Xcode on my device, everything works perfectly. Content blocker blocks content. Enable it. Disable it. Perfect.However, when I submit to app store, reviewer said they couldn't confirm it blocked any content. So I took the same build and submitted it to TestFlight, and then downloaded on my actual device. When I launch the app part on the device, it looks fine. However, when I go into Settings -> Safari -> Content Blockers and enable mine, I get this error in the device console log:Oct 13 07:12:24 Andrews-iPhone6 Preferences[203] <Warning>: Error loading content blocker (com.AndrewBenson.AndrewBundleName---Content-Blocker): Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.SafariServices.ContentBlockerLoader UserInfo={NSDebugDescription=connection to service named com.apple.SafariServices.ContentBlockerLoader}When I launch Safari
Hey quick question... I've got a content blocker I've developed -- it works perfectly when launched from Xcode on my device, but the app store reviewer says they can't see that it blocks anything. So I sent the build to TestFlight and downloaded on my device and then it doesn't work. When I move the slider to enable it in settings, I see this error in console:Oct 13 07:12:24 Andrews-iPhone6 Preferences[203] <Warning>: Error loading content blocker (com.AndrewBenson.AndrewBundleName---Content-Blocker): Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.SafariServices.ContentBlockerLoader UserInfo={NSDebugDescription=connection to service named com.apple.SafariServices.ContentBlockerLoader}When I launch Safari then, no content is blocked, and no amount of closing and reopening Safari and enabling and disabling the blocker will make it work.I did stick some NSLogs in my ActionHandler for the content blocker just to make sure beginRequestWithExtensionContext was getting
Topic:
Safari & Web
SubTopic:
General
Tags:
I'm starting to see telemetry come back for our latest release build with Xcode 7. I'm seeing what seems to be data corruption for our CoreData databases, but only on iOS 9. I'm seeing two forms, both when the application tries to reopen the database on launch:Could not create history store with error Error Domain=NSCocoaErrorDomain Code=259 The file couldn’t be opened because it isn’t in the correct format. UserInfo={NSSQLiteErrorDomain=26, NSUnderlyingException=File at path does not appear to be a SQLite database: /var/mobile/Containers/Data/Application/95677339-A20B-4EBF-B1B4-0AB6AC5E1080/Library/Application Support/History.db}That one I have no ideas on. It's like our database just became magically corrupted.Could not create thumbnail store with error Error Domain=NSCocoaErrorDomain Code=134110 An error occurred during persistent store migration. UserInfo={destinationURL=file:///var/mobile/Containers/Data/Application/36E5990A-CF49-44C4-8C1B-9338C7A2A3FE/Library/Caches/.Thumbnails.db.migr
I encountered a problem when using ABNewPersonViewController on iOS9 with xcode 7.1.I use the following code to edit an exsiting person (goes directly to edit mode).- (IBAction)editBtnPressed:(id)sender{ ABAddressBookRef addressBook = ABAddressBookCreateWithOptions(NULL, NULL); NSNumber *cid = [self.contact objectForKey:@contactId] ; ABRecordID recordId = (ABRecordID) [cid intValue] ; ABRecordRef person = ABAddressBookGetPersonWithRecordID(addressBook, recordId); ABNewPersonViewController *picker = [[ABNewPersonViewController alloc] init] ; picker.newPersonViewDelegate = self ; picker.displayedPerson = person ; picker.navigationItem.title = @Edit Contact ; self.editContactNVC = [[UINavigationController alloc] initWithRootViewController:picker]; [self presentViewController:self.editContactNVC animated:NO completion:nil]; [picker release] ;}-(void)newPersonViewController:(ABNewPersonViewController *)newPersonView didCompleteWithNewPerson:(ABRecordRef)person{ [self.editContactNVC dismissViewControllerAnimated:NO