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;}
Search results for
NSCocoaErrorDomain
1,063 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
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?
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)!
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
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
Topic:
Developer Tools & Services
SubTopic:
General
Tags:
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
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
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
Topic:
App & System Services
SubTopic:
Processes & Concurrency
Tags:
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
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
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?
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
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
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?
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags:
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
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:
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:
I tried to fix it by creating a new model version where Allows external storage was unchecked but i have got an error: Thread 1: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=134140 Persistent store migration failed, missing mapping model.
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: