Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

currentDiskUsage failed: Error Domain=NSCocoaErrorDomain Code=4097 "
While Using app it start's freezing and i am getting following logs on console. Please help me to resolve this freeze issue.currentDiskUsage failed: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.nsurlstorage-cache UserInfo={NSDebugDescription=connection to service named com.apple.nsurlstorage-cache}; { NSDebugDescription = connection to service named com.apple.nsurlstorage-cache;}
5
0
4k
Aug ’18
Failed to parse json data?
use JSONDecoder().decodeto parse data{aaa: value, bbb: 1}it generated error:Unexpected error: dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: The given data was not valid JSON., underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 No string key for value in object around character 1. UserInfo={NSDebugDescription=No string key for value in object around character 1.}))).why?
2
0
7.3k
Aug ’18
FileProviderExtension workingSet enumerator didn't call
Hello!I have a problem with working set enumerator (Recents tab) in Files app. I implement a working enumerator for Folders, it runs enumerateItems(for observer method when I move to the folder in UI and everything works fine.And I have a different enumerator for working set too, but it is not created and enumerated anything.override func enumerator(for containerItemIdentifier: NSFileProviderItemIdentifier) throws -> NSFileProviderEnumerator { let maybeEnumerator: NSFileProviderEnumerator? if (containerItemIdentifier == NSFileProviderItemIdentifier.rootContainer) { let directory = repository.directory(for: containerItemIdentifier)! maybeEnumerator = FileProviderFolderEnumerator() } else if (containerItemIdentifier == NSFileProviderItemIdentifier.workingSet) { maybeEnumerator = FileProviderWorkingSetEnumerator() // not called } else { _ = repository.item(for: containerItemIdentifier) if repository.isDirectory(at: containerItemIdentifier) { let directory = repository.directory(for: containerItemIdentifier)!
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
812
Sep ’18
Xcode 10 breaks com.apple.commcenter.coretelephony.xpc
Hello,I have upgraded to Xcode 10 and now the rewarded Ad example from AdMob doesn't run anymore. It seems com.apple.commcenter.coretelephony.xpc is somehow corrupted.Can somebody confirm this, please?Many Thanks,2018-09-22 09:21:45.455938+0100 RewardedVideoExample[6416:294056] Failed to create remote object proxy: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated. UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}2018-09-22 09:21:45.456063+0100 RewardedVideoExample[6416:294077] Failed to ping server after delegate was set2018-09-22 09:21:45.456121+0100 RewardedVideoExample[6416:294075] Failed to create synchronous remote object proxy: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated. UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.core
7
0
22k
Sep ’18
Reply to About errors, when use moveItemAtPath
Search for FoundationErrors.h on your Mac, you will get an extensive list.I think here is the most extensive list (some may not be related to moveItemAtPath) :NS_ERROR_ENUM(NSCocoaErrorDomain) { // File system and file I/O related errors, with NSFilePathErrorKey or NSURLErrorKey containing path or URL NSFileNoSuchFileError = 4, // Attempt to do a file system operation on a non-existent file NSFileLockingError = 255, // Couldn't get a lock on file NSFileReadUnknownError = 256, // Read error (reason unknown) NSFileReadNoPermissionError = 257, // Read error (permission problem) NSFileReadInvalidFileNameError = 258, // Read error (invalid file name) NSFileReadCorruptFileError = 259, // Read error (file corrupt, bad format, etc) NSFileReadNoSuchFileError = 260, // Read error (no such file) NSFileReadInapplicableStringEncodingError = 261, // Read error (string encoding not applicable) also NSStringEncodingErrorKey NSFileReadUnsupportedSchemeError = 262, // Read error (unsupported URL scheme) NSFileReadTooL
Sep ’18
Reply to Xcode 10 breaks com.apple.commcenter.coretelephony.xpc
Same here. Launch Screen, then crash. Happens on simulator & device debugging. The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated....[9889:471589] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=9889 ...[9889:471589] SecTaskCopyDebugDescription: iOSSlidingPuzzle[9889]/0#-1 LF=0 ...[9889:471589] libMobileGestalt MobileGestalt.c:890: MGIsDeviceOneOfType is not supported on this platform. ...[9889:471589] [logging] misuse at line 153876 of [95fbac39ba] ...[9889:477148] Failed to create remote object proxy: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated. UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.} ...[9889:477147] Failed to ping server after delegate was set ...[9889:471589] Failed to create synchronous remote object proxy: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service na
Sep ’18
Reply to App freezes due to CoreTelephony.xpc
Anyone find another solution to this? I am getting the same errors while debugging on simulator and device. Launch Screen appears, then crash. ...[9889:471589] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=9889 ...[9889:471589] SecTaskCopyDebugDescription: iOSSlidingPuzzle[9889]/0#-1 LF=0 ...[9889:471589] libMobileGestalt MobileGestalt.c:890: MGIsDeviceOneOfType is not supported on this platform. ...[9889:471589] [logging] misuse at line 153876 of [95fbac39ba] ...[9889:477148] Failed to create remote object proxy: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated. UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.} ...[9889:477147] Failed to ping server after delegate was set ...[9889:471589] Failed to create synchronous remote object proxy: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.commcenter.co
Sep ’18
Reply to iOS12 + CFNetwork Diagnostic Logging
Thank you for your answer eskimo,In Xcode 9.4.1 and iOS 11.4, using UIWebView, even in simulator, CFNETWORK_DIAGNOSTICS provides useful verbose information.Unfortunately, the Console app hooking the iOS device up to the Mac via USB, do not provide any useful system log about about networks connections, just the WKNavigationDelegate protocol methods.I also tried to use SFSafariViewController with CFNETWORK_DIAGNOSTICS, but I get the following error:Failed to get remote view controller with error: Error Domain=NSCocoaErrorDomain Code=4097 Couldn’t communicate with a helper application.I watched the WWDC 2018 Session 234 Whats new in Safari and Webkit.In this session, they talked about what you said:“WKWebView also runs in a completely separate process from the rest of your app.So, unlike UIWebView, even if your web process is compromised, it won't compromise your app.If your web view has complex content, you can't accidentally cause your app to stall.And, even if WKWebView crashes, it's confined to the
Sep ’18
Can't open App Store Receipt
I am rewriting the code I use to validate App Store receipts to use ComonCrypto instead of openssl. In my project is a folder named _MASReceipt with an example receipt that I got from Apple, called receipt. When I call the NSURL method[code]NSURL *receiptURL = [[NSBundle mainBundle] appStoreReceiptURL];[/code]I get a URL that appears to be correct: Contents/_MASReceipt/receipt.But when I use the URL to open the receipt, for example:[code]NSError *theError;NSData *receiptData = [NSData dataWithContentsOfURL: receiptURL options: NSDataReadingMappedAlways error: &theError];[/code]The NSData pointer is nil and the NSError contains this error:domain: @NSCocoaErrorDomain Code: - 260Code 260 is a file not found error.Why cant the URL I get from the mail bundle be used to open the file?
3
0
1.5k
Oct ’18
Reply to Xcode 10 breaks com.apple.commcenter.coretelephony.xpc
Same here. found an issue on github. might be relevant.https://github.com/arnesson/cordova-plugin-firebase/pull/8808 libdispatch.dylib 0x000000010684d5d1 _dispatch_call2018-10-02 20:08:43.858144+0800 BunkerNode[28528:8778202] Failed to create remote object proxy: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated. UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}2018-10-02 20:08:43.858302+0800 BunkerNode[28528:8778204] Failed to ping server after delegate was set2018-10-02 20:08:43.858323+0800 BunkerNode[28528:8777987] Failed to create synchronous remote object proxy: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated. UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}2018-10-02 20:08:43.858452+0800 Bunker
Oct ’18
Reply to Problem updating to Swift 4.2
Hi OOPer, I followed your approach, but now I am getting this error in the get{ } of dictionaryFetchChangeToken : do { return try NSKeyedUnarchiver.unarchivedObject(ofClass: NSDictionary.self, from: tokenData) as? [String : CKServerChangeToken] } catch { print(error) /* Error Domain=NSCocoaErrorDomain Code=4864 value for key 'NS.objects' was of unexpected class 'CKServerChangeToken'. Allowed classes are '{( NSDictionary )}'. UserInfo={NSDebugDescription=value for key 'NS.objects' was of unexpected class 'CKServerChangeToken'. Allowed classes are '{( NSDictionary )}'.} */ return nil }In the set { } prior to: guard let data = try? NSKeyedArchiver.archivedData(withRootObject: newValue, requiringSecureCoding: true) else { fatalError(archivedData failed) }I print in the console newValue, and get:po newValue ▿ 1 element ▿ 0 : 2 elements - key : 7A72KACD - value : <CKServerChangeToken: 0x600000546500; data=AQAAAAAAAAAIf/////////9qgapowFdF0b2yxdsEOx/U>Why is this happening?
Oct ’18
Buildtime warnings: Could not load frameworks ((null)) when running default ARKit app
Hi,I am getting a bunch of warnings at Buildtime when running the default ARKit app (File > New > Augmented Reality App). Is this normal?scntool: warning: Could not load ModelIO.framework ((null))scntool: warning: Could not load SceneKit.framework ((null))scntool: warning: Could not load PhysicsKit.framework ((null))scntool: warning: Could not load Jet.framework ((null))scntool: warning: Could not load SpriteKit.framework ((null))/scntool:-1: The document file:///Users/...art.scnassets/ship.scn is not an archived scene./scntool:-1: Conversion failed, will simply copy input to output./scntool:-1: Copy failed file:///Users/...art.scnassets/ship.scn -> file:///Users/.../art.scnassets/ship.scn error:Error Domain=NSCocoaErrorDomain Code=516 “ship.scn” couldn’t be copied to “art.scnassets” because an item with the same name already exists.I've recently upgraded from iOS 11 to iOS 12, and Xcode 9 to Xcode 10, and I have never run into these warnings before. I have built and run this ship.scn ARKit
5
0
2.8k
Oct ’18
Reply to Share security scoped bookmark in app group?
I'm seeing this same issue, attempting to share a Security Scoped Bookmark from a READ-WRITE main app to a READ-ONLY App Extension.Changing the main app to have READ-WRITE file access seems to have broken it for me; I believe it was working fine when both App Group members were set to READ-ONLY file access. I'm going to test that now.Getting the same error:[User Defaults] Couldn't read values in CFPrefsPlistSource<0x6000000eb380> (Domain: group.com.company.MainApp, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null), Contents Need Refresh: Yes): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsdand Error Domain=NSCocoaErrorDomain Code=259 The file couldn’t be opened because it isn’t in the correct format.
Topic: Code Signing SubTopic: General Tags:
Oct ’18
Reply to Share security scoped bookmark in app group?
This isn't even working, now, only from my Main App.I set the main app to be Read-Only file access. Using the code below to create then immediately resolve the URL's bookmark data.Using `.securityScopeAllowOnlyReadAccess` and then `.withSecurityScope` var stale = false guard let bookmarkData = try? url.bookmarkData(options: .securityScopeAllowOnlyReadAccess, includingResourceValuesForKeys: nil, relativeTo: nil), let url = try? URL(resolvingBookmarkData: bookmarkData, options: [.withoutUI, .withSecurityScope], relativeTo: nil, bookmarkDataIsStale: &stale) else { print(error NSCocoaErrorDomain Code=259 :() return }
Topic: Code Signing SubTopic: General Tags:
Oct ’18