Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

On demand resource host
On demand resource can be used on external server (not apple host server)? I get error like below: Error Domain=NSCocoaErrorDomain Code=4994 The requested application data doesn’t exist. UserInfo={NSUnderlyingError=0x2814fd3b0 {Error Domain=_NSBundleResourceRequestErrorDomain Code=100 No manifest found for bundle ID xxxxx UserInfo={NSLocalizedFailureReason=No manifest found for bundle ID xxxxx}}} How to solve this? Any advice?
0
0
679
Apr ’23
Reply to CoreData stack init is freeze
I decided to apply my previous attempts on the original WAL file. First, the checkpoint forcing via journal_mode=DELETE doesn't work for the original WAL file. The CoreData is freeze and file is not removed at the end of session. Second, I moved (didn't copy) original file under different name myDB2.sqlite and the CoreData stack init is freeze again. Interesting in my previous tests that the copied file with the same name was opened but with periodic errors. Third, If the original file is moved and copied to the path with initial name then the CoreData stack initialized successfully and opened the DB. The addPersistentStoreWithType:configuration:URL:options:error: func started to return the error: ... CoreData: error: sourceURL : file:///var/mobile/Containers/Data/Application/08D158CE-7216-4271-A3F2-AF3E4E5DA772/Documents/myDB.sqlite CoreData: error: reason : Cannot migrate store in-place: error during SQL execution : database or disk is full CoreData: error: destinationURL : file:///var/mobile/Containers/Dat
Mar ’23
“History.db” couldn’t be copied because you don’t have permission to access
I am trying to read history of below browsers in Mac through daemon. Safari (History.db) Google Chrome (History) Firefox (places.sqlite) Since the original History.db files are locked, i am copying it to another location so i can read from copied one. However i get below error, **“History.db” couldn’t be copied because you don’t have permission to access Error Domain=NSCocoaErrorDomain Code=512** Any help is much appreciated.
4
0
2.1k
Aug ’21
Reply to Swift 4 Rest API oauth v1.0 and base signature
It looks like it is due to missing oauth parameters. I am also missing the rest of the signature as well. Here is the error message for the reference:<?xml version=1.0 encoding=utf-8 ?><error xmlns=http:/ <code>2</code> <message>Missing required oauth parameter: oauth_signature_method</message></error>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.}My signature base string would need to include the following information:HTTP MethodWe support both HTTP methods GET and POST.Request URLThe URL to make API calls is: platform . fatsecret . com / rest / server . apiNormalized ParametersPlease refer to the FatSecret REST API documentation for the full parameter list for each method, but for OAuth authentication the following parameters are required for every request:oauth_consumer_
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’17
Reply to Swift 4: Errors When Loading Web Page Content in iOS app
I put your code into a test project here and then tweaked the catch clause to print the error: NSLog(error %@, error as NSError)Here’s what I see:2018-07-23 10:36:18.485751+0100 xxsi[3066:315833] error Error Domain=NSCocoaErrorDomain Code=264 The file “notam.cgi” couldn’t be opened because the text encoding of its contents can’t be determined. UserInfo={NSURL=https://flightplanning.navcanada.ca/cgi-bin/Fore-obs/notam.cgi?ni_FIR=on&Stations=CZEG}So the problem isn’t that you can’t load the resource, it’s that the resource isn’t being parsed correctly. That’s because of a text encoding problem; you’re using String(contentsOf:), whose text encoding behaviour is not well specified. I strongly recommend that you fetch the resource using URLSession. For example, code like this: let url = URL(string: https://flightplanning.navcanada.ca/cgi-bin/Fore-obs/notam.cgi?ni_FIR=on&Stations=CZEG)! let request = URLRequest(url: url, cachePolicy: .reloadIgnoringLocalCacheData, timeoutInterval: 60.0) URLSession.
Jul ’18
Error on writing with AVAssetExportSession with iOS 17.0 (21A5291h), works fine in IOS 16
I have these code snippets to take an existing video file, write one additional track to it and then write the result to a new file. let movie = AVMovie(url: fromFileUrl) let mutableMovie = movie.mutableCopy() as! AVMutableMovie (removed some code here that adds another track to the mutableMovie) let exporter = AVAssetExportSession( asset: mutableMovie, presetName: AVAssetExportPresetPassthrough ) exporter!.outputFileType = .mov exporter!.outputURL = newFilePath exporter!.exportAsynchronously {... This works great up to IOS 16, but from IOS 17 beta I get the following errors in the console of XCODE 15 beta 5 <<<< AVAsset >>>> +[AVURLAsset _getFigAssetCreationOptionsFromURLAssetInitializationOptions:assetLoggingIdentifier:figAssetCreationFlags:error:]: AVURLAssetHTTPHeaderFieldsKey must be a dictionary <<<< AVError >>>> AVLocalizedErrorWithUnderlyingOSStatus: Returning error (NSCocoaErrorDomain / 257) status (-12 203) The export then fails with the follo
4
0
1.1k
Jul ’23
Share security scoped bookmark in app group?
1) Main app and extension register for app groups.2) Main app gets a url from NSOpenPanel, makes a security scoped bookmark and saves is in NSUserdefaults with group container as the suite name.3) Run the extension, grab the bookmark data from user defaults and resolve it. The data is not nil, but fails to resolve:Error Domain=NSCocoaErrorDomain Code=259 The file couldn’t be opened because it isn’t in the correct format.
20
0
9.9k
Oct ’16
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
Connection to plugin invalidated while in use UIImagePickerController
I am trying to pick images from the PhotoLibrary. But When I tried to open the Photo Library by clicking the button, an empty screen appears with the following error. And this error are showed: UIImagePickerController UIViewController create error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service on pid 0 named com.apple.mobileslideshow.photo-picker.viewservice was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid. What do I have to do?. Please Someone Guide me through. Thankyou.
5
0
3.1k
Nov ’20
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
Save 48MP ProRaw to PhotoLibrary may fail
After took 48MP ProRaw photo, captureOutput:(AVCapturePhotoOutput *)output didFinishProcessingPhoto write to photo library use [PHPhotoLibrary sharedPhotoLibrary] performChangesAndWait: or [PHPhotoLibrary sharedPhotoLibrary] performChanges There is a high probability of failure No matter use fileURL or [photo fileDataRepresentation] failure info below 2022-09-28 10:43:57.353815+0800 LUTCamera[2031:218103] [GatekeeperXPC] Error received from proxy factory in sendChangesRequest:usingProxyFactory:error:: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.photos.service was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid. UserInfo={NSDebugDescription=The connection to service named com.apple.photos.service was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid.} 2022-09-28 10:43:57.354114+0800 LUTCamera[2031:218103] [PhotoKit] PhotoKit XPC proxy is invalid.
1
0
1.6k
Sep ’22
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
SwiftData errors when trying to insert multiple objects
I have two models: @Model class User: Codable { @Attribute(.unique) var username: String @Attribute(.unique) var email: String var firstName: String var lastName: String @Attribute(.unique) var id: Int @Relationship(inverse: House.members) var houses: [House] = [] init(username: String, email: String, firstName: String, lastName: String, id: Int) { self.username = username self.email = email self.firstName = firstName self.lastName = lastName self.id = id } enum CodingKeys: String, CodingKey { case username case email case firstName = first_name case lastName = last_name case id } required init(from decoder: Decoder) throws { ... } func encode(to encoder: Encoder) throws { ... } } and @Model class House: Codable { var name: String var city: String var address: String @Attribute(.unique) var id: Int var ownerID: Int var members: [User] init(name: String, city: String, address: String, id: Int, ownerID: Int, members: [User]) { self.name = name self.city = city self.address = address self.id = id self.ownerID =
3
0
1.9k
Sep ’23
Crash with my app in iOS 13.4 using SwiftUI
My app crashes with iOS 13.4 I tried everything but nothing happen.it works with ios 13.xx below ios 13.4here is the console output :2020-03-20 13:14:48.207967+1100 UTG - Up To Game Pro[34539:1410138] FBSDKLog: Unable to find a valid UIWindow 2020-03-20 13:14:48.208020+1100 UTG - Up To Game Pro[34539:1412059] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated. UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.} 2020-03-20 13:14:48.210178+1100 UTG - Up To Game Pro[34539:1412077] [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated. UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated
0
0
2.1k
Mar ’20
NSFileProviderExtension results in console errors and no breakpoints
Greetings! I'm trying to write a simple NSFileProviderExtension in Swift in a simple Single View iOS app with the new Xcode 9 / iOS 11 beta. I used the templates in Xcode to create a Single View universal iOS app in Swift, then added a new File Provider extension using the Xcode template in Swift. Everything builds and runs, but when I try to debug the File Provider extension against the Files app on my iPad Pro device connected to Xcode, I get these errors in the console when I switch to my file provider which shows up in the Locations list in Files:2017-06-10 13:45:02.755981-0700 Files[3040:585145] [default] [ERROR] received an error while enumerating changes: Error Domain=NSCocoaErrorDomain Code=3328 The requested operation couldn’t be completed because the feature is not supported.2017-06-10 13:45:02.756438-0700 Files[3040:585145] [UI] collection(_:didEncounterError:): collection <FPItemCollection:0x1c01b2980 id:NSFileProviderRootContainerItemIdentifier> did encounter error Error Domain=NSCocoaErrorDomain
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
1.9k
Jun ’17