Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Reply to Severe App Store bug: IAP Restore no longer working in live version
The problem hasn't been fixed on Apple's end.Here's what's happening:1) App sends restoration request via StoreKit's standard APIs.2) Device log shows that iOS is unable to parse a proto col from the App Store:error13:04:12.641399 +0100itunesstoredDaemonProtocolDataProvider: Couldn't parse protocol: Error Domain=NSCocoaErrorDomain Code=38403) StoreKit acknowledges that it is unable to fulfill the request:default13:04:12.643606 +0100itunesstoredStoreKitClient: Restore completed transactions failed for client: <private> with error: Error Domain=SSErrorDomain4) End result: Restoration of In-App purchases is impossible using StoreKit's APIs. I've had this problem some years ago and Apple had fixed it on their servers. The fix lasted a while, then the problem resurfaced. I reposted my initial bug report with technical documentation and logs, easily verifyable with any device.IAP restoration remains broken for my app worldwide. Now since about a year it has not been fixed, although it is all easily v
Topic: App & System Services SubTopic: StoreKit Tags:
Feb ’19
The file could not be moved to the trash because of a disk error
I keep getting the same error the file xx could not be moved to the trash because of a disk error. I even tried to reinstall Xcode and nothing worked. I'm not a developer, I'm just a designer trying to update my sticker pack. I'm afraid I ruined my stick pack and can no longer edit it :(.I tried to even make a new sticker pack with the same name, and that didn't work either. Anytime I try to delete anything from the sticker pack assets, it gives me that error. I don't know what's going on.You can find a screenshot here: https://imgur.com/Z2P0rhT2019-03-06 21:09:09.400517-0800 MobileSMS[11739:1135687] libMobileGestalt MobileGestalt.c:890: MGIsDeviceOneOfType is not supported on this platform.2019-03-06 21:09:09.470800-0800 MobileSMS[11739:1135687] [Warning] Splitview controller <UISplitViewControllerClassicImpl: 0x7fe8fac0cc20> is expected to have a view controller at index 0 before it's used!2019-03-06 21:09:09.625558-0800 MobileSMS[11739:1135687] [logging-persist] cannot open file at line 42263 of [95f
1
0
1.9k
Mar ’19
NSUserScriptTask unhappy about script format
I've got a trivial MacOS script:#!/bin/sh # OpenInSafari.sh open /tmp/GitNAVs.htmlthat I try to invoke with:let bundle = Bundle.main if let script = bundle.url(forResource: OpenInSafari, withExtension: sh) { do { let scriptTask = try NSUserScriptTask(url: script) scriptTask.execute(completionHandler: nil) } catch { print(error) }But I get:Error Domain=NSCocoaErrorDomain Code=259 The file “OpenInSafari.sh” couldn’t be opened because it isn’t in the correct format.The *.sh file was created by Xcode and is where it's supposed to be in the bundle with read and write permissions. Any clue what's the problem?Thanks,Richard
1
0
1.1k
Mar ’19
Reply to Xcode crash on both Distribute App and Validate App
Previous XCode versions correctly reported the problem without crashing, see:https://stackoverflow.com/questions/41786330/uploading-app-to-app-store-mach-o-header-code-0x72613c21You can check the xcdistributionlogs/IDEDistribution.standard.log2019-03-07 16:34:58 +0000 [OPTIONAL] Didn't find archived user entitlements for <DVTFilePath:0x7f91fdb33e40:'/Users/bruno/Library/Developer/Xcode/Archives/2019-03-07/TEST 07-03-2019, 17.34.xcarchive/Products/Applications/TEST.app/Frameworks/libavdevice.framework'>: Error Domain=NSCocoaErrorDomain Code=4 Item at /Users/bruno/Library/Developer/Xcode/Archives/2019-03-07/TEST 07-03-2019, 17.34.xcarchive/Products/Applications/TEST.app/Frameworks/libavdevice.framework did not contain a archived-expanded-entitlements.xcent resource. UserInfo={NSLocalizedDescription=Item at /Users/bruno/Library/Developer/Xcode/Archives/2019-03-07/TEST 07-03-2019, 17.34.xcarchive/Products/Applications/TEST.app/Frameworks/libavdevice.framework did not contain a archived-expanded-ent
Mar ’19
Xcode 10 can't open workspace file
My Xcode 10 can't open workspace file, but it can load the project file.I can see error from console logs: 10:09:38.285666 +0800 fileproviderd Unable to setup extension context - error: Couldn’t communicate with a helper application. 10:09:38.286052 +0800 fileproviderd [ERROR] Cannot provide item at /Users/nali/Documents/studyspace/XMIProjects/StreamingKit/StreamingKit.xcworkspace for extension com.apple.CloudDocs.MobileDocumentsFileProvider. Error: Error Domain=NSFileProviderInternalErrorDomain Code=7 A connection to the extension “com.apple.CloudDocs.MobileDocumentsFileProvider” could not be made. UserInfo={NSLocalizedDescription=A connection to the extension “com.apple.CloudDocs.MobileDocumentsFileProvider” could not be made., NSUnderlyingError=0x7fe508feab00 {Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.CloudDocs.MobileDocumentsFileProvider.apple-extension-service was invalidated. UserInfo={NSDebugDescription=The connection to service named com.apple.CloudDo
3
0
5.7k
Mar ’19
Safari crashes running default Safari App Extension
When creating a new Safari App Extension, I am able to run the application. However, running the application the NSLogs are not printed to the console.The logs should be shown when running only the extension. If I do that, however, Safari crashes after a few seconds similar to the problem inhttps://stackoverflow.com/questions/51657557/how-can-crashes-of-safari-extensions-on-mojave-be-avoidedThis is the console output:2019-03-10 19:25:13.863237+0100 Safari[1264:38205] [default] Unable to load Info.plist exceptions (eGPUOverrides)2019-03-10 19:25:13.936899+0100 Safari[1264:38205] [SQLiteStore] Failed to acquire database store coordination lock at /Users/username/Library/Safari/Favicon Cache/favicons.db-lock: [35: Resource temporarily unavailable]2019-03-10 19:25:13.938206+0100 Safari[1264:38205] [SQLiteStore] Failed to acquire exclusive access to database at file:///Users/username/Library/Safari/Favicon%20Cache/favicons.db.2019-03-10 19:25:13.939730+0100 Safari[1264:38205] [SQLiteStore] Failed to acquire databa
1
0
2.3k
Mar ’19
bookmarkDataWithOptions yields: NSCocoaErrorDomain Code=256
When calling:NSURL* aURL = [NSURL URLByResolvingBookmarkData:secBookmark options:options relativeToURL:nil bookmarkDataIsStale:&isStale error:&err];isStale is YES.When attempting to get a fresh bookmark, calling:NSData* secureBookmark = [aURL bookmarkDataWithOptions:options includingResourceValuesForKeys:nil relativeToURL:nil error:&err];produces:2019-03-11 15:53:51.603133-0700 XXX[534:8439] Error: Error Domain=NSCocoaErrorDomain Code=256 Could not open() the item UserInfo={NSURL=file:///Users/oldmancoyote1/Desktop/E%20Projects%20folder/Drawing/Drawing%201%20.pdf, NSDebugDescription=Could not open() the item}If I ignore isStale, there appears to be no problem. Can I safely ignore isStale?
Topic: UI Frameworks SubTopic: AppKit Tags:
2
0
1.8k
Mar ’19
The horizontal orientation of "orientation = 6" that has been metadata-edited to the camera roll can not be saved.
Hi everyone,Summary:I am trying to edit the metadata of the camera roll photo.However, if you try to overwrite the photo after editing the metadata, always giving me the following error:'Error Domain=NSCocoaErrorDomain Code=-1 The operation couldn't be completed. (Cocoa error -1.)'This occurs with photos such as landscape images (with orientation tag '6').For portrait images (orientation tag is '1'), it is possible to overwrite and save photos correctly.If you decode with UIImageJPEGRepresentation (image, 1.0), landscape images can be overwritten and saved.But I do not want to reduce the quality of the image, so I am looking for another way. Steps to Reproduce:1. Save the picture of the camera roll under 'Documents / .2. Edit the metadata of one photo. (From now on, under Documents /)3. Get the asset requestContentEditingInputWithOptions ().4. Acquire the URL of the photo of 'Step2', and acquire CGImageSourceRef with 'CGImageSourceCreateWithURL ()'5. Get CGImageDestinationRef by specifying contentEdi
1
0
1.1k
Apr ’19
OSLog crashes on device but not on simulator
import Foundation import os.log extension OSLog { private static var subsystem = Bundle.main.bundleIdentifier! static let session = OSLog(subsystem: subsystem, category: session) static func Debug(_ s: StaticString, args: CVarArg...) { os_log(s, log: OSLog.session, type: .debug, args) } static func Error(_ s: StaticString, args: CVarArg...) { os_log(s, log: OSLog.session, type: .error, args) } static func Info(_ s: StaticString, args: CVarArg...) { os_log(s, log: OSLog.session, type: .info, args) } }I defined this extension for using OSLog instead of NSLog in my project. I then wrote the following code which uses the extension:/// Instantiate an array of `Tweet`s from a property list. /// /// - Parameter url: The URL for a property list made up of one or more `Tweet`s. /// - Returns: Optinal `Tweet` array. If the property list exists, is not malformed, /// and contains all of the key/value pairs required to create one or /// more `Tweet` items, an array of said items will be returned. Othrwise, nil func tweet
1
0
2.6k
Apr ’19
Reply to Using SecureCoding for NSKeyedArchiver
Many thanks, that works well.I just get an error message :Error Domain=NSCocoaErrorDomain Code=4865 requested key: 'root' UserInfo={NSDebugDescription=requested key: 'root'}Error Domain=NSCocoaErrorDomain Code=4865 requested key: 'root' UserInfo={NSDebugDescription=requested key: 'root'}It is a bit a shame that XCode documentation is so poor.At least, when an API is deprecated, it would be great to have some detail on how to migrate to the new one. But document is getting worse and worse, now a mere reference for API signatures, less and less a man pages.
Topic: Programming Languages SubTopic: Swift Tags:
Apr ’19
Using Secure Enclave from a Daemon Process
I'm working on a daemon that's going to be controled from launchd. I would like to use a secure enclave key to back the private key this daemon is going to be using to communicate with an external service. I have same simple code put together for how to generate that key:#include <CoreFoundation/CoreFoundation.h> #include <Security/Security.h> void generateSeKey(SecKeyRef *publicKey, SecKeyRef *privateKey) { OSStatus rc; CFErrorRef err = NULL; SecAccessControlRef access = NULL; CFMutableDictionaryRef params = NULL; CFMutableDictionaryRef privateKeyAttrs = NULL; CFMutableDictionaryRef publicKeyAttrs = NULL; access = SecAccessControlCreateWithFlags(kCFAllocatorDefault, kSecAttrAccessibleAlways, kSecAccessControlPrivateKeyUsage, &err); if (err != NULL) { return; } params = CFDictionaryCreateMutable(kCFAllocatorDefault, 0, &kCFCopyStringDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); CFDictionarySetValue(params, kSecAttrKeyType, kSecAttrKeyTypeECSECPrimeRandom); CFDictionarySetV
2
0
2.1k
Apr ’19
Reply to universal links not working
I'm seeing the same thing. Other issues that I have found searching around and see for the .well-known path on my own are clearly logged. For example:### Bad apple-app-site-association JSON: Error Domain=NSCocoaErrorDomain Code=3840 JSON text did not start with array or object and option to allow fragments not set. UserInfo={NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.}### Download URL 'https://<domain>/.well-known/apple-app-site-association' failed: -6717/0xFFFFE5C3 kFormatErrThat makes perfect sense because I do not have the file at .well-known. Generic HTML for a page not found page is returned. I do have the file at root and am seeing the exact same thing for that request- 0/0x0 noErr followed by an unexplained cancellation.
Topic: App & System Services SubTopic: General Tags:
Apr ’19
com.apple.telephonyutilities.calservicesdaemon.callstatecontroller error
When attempting to have iOS make a phone call I am getting this error:Error using remote object proxy: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.telephonyutilities.callservicesdaemon.callstatecontroller was invalidated.I create a phone URL with:let phoneLink = tel://5551119999if let url = URL(string: phoneLink) { UIApplication.shared.open(url) { }}Any ideas on how to resolve:Error using remote object proxy: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.telephonyutilities.callservicesdaemon.callstatecontroller was invalidated.I have attempted several different formats for the phone string, URL(string: ) seems pretty lenient and will accept different types of strings and convert them correctly, so I don't think that's the issue.I have added logs so I know my code is only being run once so it isn't an issue of making several calls to UIApplication.shared.open()
0
0
3.7k
May ’19
Problems when receiving a Voip push on iOS12
I'm using a voip push.My app has some code to read the Plist during the action when it receives a voip push.There was no problem in iOS11 and below, but iOS12 does not load the file due to the following error.Error Domain=NSCocoaErrorDomain Code=257 The file “myPlist.plist” couldn’t be opened because you don’t have permission to view it. UserInfo={NSFilePath=/.../Library/myPlist.plist, NSUnderlyingError=0x2824c5e90 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}}How do I resolve this?In addition, when I received a push on iOS12, App life cycle seems to have changed.[AppDelegate applicationWillEnterForeground:] function is executed and then the push function is executed.It was a behavior that did not exist in iOS11.Is this the intended behavior on iOS12?
0
0
1.1k
May ’19
Eror Domain
Hello. I am developing a chat app. when I .get data from the server I have to get this error. I have a check in postman its works perfect but not in code please tell me how to solve this issue Error Domain=NSCocoaErrorDomain Code=3840 JSON text did not start with array or object and option to allow fragments not set. UserInfo={NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.
0
0
375
Jun ’19