Search results for

NSCocoaErrorDomain Error Code 4

170,055 results found

Post

Replies

Boosts

Views

Activity

"Unlikely error" - code 14
Dear forum,We keep getting a strange Unlikely error (code 14). It's actually not quite unlikely, as it happens a lot.When the error occurs, it follows the same scenario:The app successfully connects to a BLE device (domestic robot) and scans the services and characteristics.It successfully writes to the first characteristic (the authentication characteristic), thereby imitating bonding (exchanging of keys) and reads the response.The app registers for notifications on a second characteristic (the read characteristic).The app attempts to write to a third character tic (the write characteristic) but after about 70 mSec (give or take) the didWriteValueForCharacteristic callback function is called with error 14. The description of the error looks like this: Error Domain=CBATTErrorDomain Code=14 Unlikely error. UserInfo={NSLocalizedDescription=Unlikely error.} This error does not always occur, but when it does - it repeats its
0
0
1.8k
May ’17
Reply to English always being loaded.
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 b
Oct ’15
Code Sign Error
My app won't run and I get the message:Code Sign Error:SecKey API returned: -25304, (null)/Users/scottglickman/Library/Developer/Xcode/DerivedData/------------alygwtpfdrajvmaamwzrurcxzuuz/Build/Products/Debug-iphoneos/---------.app: unknown error -1=ffffffffffffffffCommand /usr/bin/codesign failed with exit code 1I've sent two separate requests to Apple for support and they just won't respond.I have an automatic manage signing and an XCode Managed Profile.I've cleaned the project and deleted derived data multiple times. I've rebooted the computer. Nothing works.Can anyone tell me how to fix this?Thanks
1
0
795
Mar ’17
noob error on my code, how to fix it?
Hi guys i'm new to swift programming and i'm trying to create an app for testing using firebase. I wrote this code and i get just one error on line 90 of my code here on pastebin:https://pastebin.com/vHCzE2rMthe error sayscannot convert value of type ('String -> UIViewController' to expected argument type 'UIViewController'basically the problem is that vc...how can i easily fix it?pls i really need to solve the problem.thanks a lot for your time 🙂
6
0
722
Jun ’17
AVPlayerLooper error code "-12848"
implementing a video looper by following the avplayerlooper approach in the sample code found in the link below:https://developer.apple.com/library/archive/samplecode/avloopplayer/Introduction/Intro.htmlthe following error occurs on random bases for diffrent devices with different iOS versionsNSLocalizedDescription: Cannot OpenNSUnderlyingError: Error Domain=NSOSStatusErrorDomain Code=-12848 (null)the video formats we're using are : mp4 m4aand the assets are stored in .documentDirectory
0
0
958
Apr ’20
Reply to getEnabledStatusForExtensionWithIdentifier
Hi, can you please describe (code example) how you did it?With my code:let cdm = CXCallDirectoryManager.init(); cdm.getEnabledStatusForExtension(withIdentifier: com.urnoftheapp.Sperrliste, completionHandler: { (status:CXCallDirectoryManager.EnabledStatus, e:Error?) -> Void in if (status == CXCallDirectoryManager.EnabledStatus.enabled) { // do something } print(status) print(e) })I get the following error:Optional(Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.CallKit.CallDirectory was invalidated from this process. UserInfo={NSDebugDescription=The connection to service named com.apple.CallKit.CallDirectory was invalidated from this process.})com.urnoftheapp is placeholder for the URN of the App Bundle, which is the beginning of the URN of the Extension, which just added .SperrlisteThanks and Regards,Emil
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’16
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
run code in background? On WatchOS 4
Hello,how can i run some code in background useing WatchOS 4.1 Xcode: Version 9.1 (9B55)Some code:import WatchKit class ExtensionDelegate: NSObject, WKExtensionDelegate { func applicationDidFinishLaunching() { // Perform any final initialization of your application. //this will run in foreground mode. print(start script) } func handle(_ backgroundTasks: Set<WKRefreshBackgroundTask>) { //this will run in background mode. print(in backgorund) // Sent when the system needs to launch the application in the background to process tasks. Tasks arrive in a set, so loop through and process each one. for task in backgroundTasks { // Use a switch statement to check the task type switch task { case let backgroundTask as WKApplicationRefreshBackgroundTask: // Be sure to complete the background task once you’re done. backgroundTask.setTaskCompletedWithSnapshot(false) case let snapshotTask as WKSnapshotRefreshBackgroundTask: // Snapshot tasks have a unique completion call, make sure to set your expiration dat
1
0
1.6k
Nov ’17
AVAssetWriter error code on finishWriting
Hello guys, I constantly keep getting error code -12780 while saving the file.Configuration isAVAssetWriterInput(mediaType: AVMediaType.video, outputSettings: [ AVVideoCodecKey: AVVideoCodecType.h264, AVVideoWidthKey: floor(UIScreen.main.bounds.width / 16) * 16, AVVideoHeightKey: floor(UIScreen.main.bounds.height / 16) * 16, AVVideoCompressionPropertiesKey: [ AVVideoAverageBitRateKey: 2300000, ], ])I don't understand what NSOSStatusErrorDomain -12780 means. The localized description is The operation could not be completed.Other than that I discovered that on my iOS 13 beta device the error code is: -17508,but still is The operation could not be completed.
6
0
6.2k
Aug ’19
NSURLConnection Error Code -1100
Hello,I am trying to load content into UIWebView, and when testing in the simulator all I get is a white screen and the following error in the console:NSURLConnection finished with error - code -1100Can anybody help? My current Swift Code is:class ViewController: UIViewController { @IBOutlet weak var webView: UIWebView! override func viewDidLoad() { super.viewDidLoad() webView.allowsInlineMediaPlayback = true; webView.mediaPlaybackRequiresUserAction = false; webView.loadRequest(URLRequest(url: URL(fileURLWithPath: Bundle.main.path(forResource: www/index, ofType: html)!))) let statusBar = UIApplication.shared.value(forKeyPath: statusBarWindow.statusBar) as? UIView statusBar?.backgroundColor = UIColor.clear } }Just to clarify, this code usual works for me. Many thanks.
1
0
15k
Sep ’17
Unable to find problem. Error Domain=com.apple.accounts Code=7 "(null)"
Even with sample code from Apple, the same warning forever. Error returned from daemon: Error Domain=com.apple.accounts Code=7 (null) Failed to log access with error: access= accessor:<> identifier:2EE1A54C-344A-40AB-9328-3F8E8B5E8A85 kind:intervalEvent timestampAdjustment:0 visibilityState:0 assetIdentifierCount:0 tccService:kTCCServicePhotos, error=Error Domain=NSCocoaErrorDomain Code=4097 connection to service with pid 235 named com.apple.privacyaccountingd UserInfo={NSDebugDescription=connection to service with pid 235 named com.apple.privacyaccountingd} Entitlements are reviewed.
2
0
1.1k
Dec ’23
Homekit - An Unknown Error Occurred with Error Code 52
open func addAndSetupAccessories(completionHandler completion: @escaping (Error?) -> Void) I have HomeKit enable accessory and to pair that accessory with IOS 14 , I am using .addAndSetupAccessories { (error) in method and it is throwing the Error Code 52 I am getting error in iOS 14 even though accessory setup is successful. I am not getting this error in iOS12 , iO13 devices Can anyone please help here to understand this behaviour.
0
0
759
Jan ’21
Reply to Core ML Model Deployment can not upload mlarchive file,InvalidArgumentError: Unable to unzip MLArchive
MLModelCollection.beginAccessing(identifier: Collection Name) { result in var modelURL: URL? switch result { case .success(let collection): print(collection) modelURL = collection.entries[io.aben.animegan2face.v1]?.modelURL case .failure(let error): print(error) } print(modelURL as Any) } Got failure error: MLModelCollection: namespace (animegan2face_paint_512_v2) registration failed. Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.triald.namespace-management was invalidated: failed at lookup with error 159 - Sandbox restriction. UserInfo={NSDebugDescription=The connection to service named com.apple.triald.namespace-management was invalidated: failed at lookup with error 159 - Sandbox restriction.} Error Domain=com.apple.CoreML Code=10 Failed to begin access for model collection with identifier 'animegan2face_paint_512_v2': invalid identifier UserInfo={NSLocalizedDescription=Failed to
Topic: Machine Learning & AI SubTopic: Core ML Tags:
Jan ’23