Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Reply to instantiated view controller displays for 1 second then segues to next view controller for no reason
Ok i'll try my best to re-explain, the nextVC (aka the correct vc) shows up for a split second with all the UI and everything meaning the view controller instantiation was successful but then it automatically segues to the DashboardVC (the vc I want users to goto after nextVC). I am aware I push the nextVC, I didn't mean to say segue, but when that vc loads for a split second you don't even have time to interact with it, it automatically segues to the DashboardVC. Here is what prints in the console when I finish authenticating: ocean@gmail.com School Name Saved! Algolia Search Client Swift: Default minimal log severity level is info. Change Logger.minLogServerityLevel value if you want to change it. 2021-04-19T14:03:59-0400 info com.algolia.InstantSearchCore : Default minimal log severity level is info. Change Logger.InstantSearchCore.minLogSeverityLevel value if you want to change it. Permission granted: true Notification settings: UNNotificationSettings: 0x13332fed0; authorizationStatus: Authorized, notific
Topic: Programming Languages SubTopic: Swift Tags:
Apr ’21
How do I implement NSAttributedStringValueTransformer for attributed strings stored in Core Data
I have an application that uses a Transformable property in Core Data to store NSAttributedStrings and get compiler warnings Object.property is using a nil or insecure value transformer. Please switch to NSSecureUnarchiveFromDataTransformerName or a custom NSValueTransformer subclass of NSSecureUnarchiveFromDataTransformer [2] NSSecureUnarchiveFromDataTransformerName does not support archiving and unarchiving of NSAttributedStrings and so as I understand it I have to create a custom transformer, register that in AppDelegate and enter the transformer class name in the Core Data models object property details. Below is the custom transformer class, however I get an error when trying to decode existing attributed strings. Can anyone shed any light on this ? Why is the new unarchiver unable to handle the NSFileWrapper given this is a property of the NSTextAttachment and works fine with the deprecated unarchiver ? Is this a bug or intentional ? Is there some way to add support for unarchiving the NSFileWrapper ? @
3
0
1.8k
Apr ’21
SKAdNetwork startImpression issue
I am testing SKAdNetwork 2.2 version; iPhone 12 ProMax beta iOS 14.5 and Version 12.5 beta (12E5220o) in my m1 clip macbookpro; after run below code [SKAdNetwork startImpression:theSkAdImpressionObject completionHandler:^(NSError * _Nullable error) { }]; //theSkAdImpressionObject is valid nothing happened, and I got below log: SKAdNetwork: Error in remote proxy while starting view-through impression: Error Domain=NSCocoaErrorDomain Code=4097 connection to service on pid 0 named com.apple.storekitservice UserInfo={NSDebugDescription=connection to service on pid 0 named com.apple.storekitservice} so, any suggestions ? thanks
2
0
1.4k
Apr ’21
Reply to AVPlayerItem is not able to reproduce audio from music folder on Macbook M1
Thanks for the comments, there is in fact an error that i didn't see before : AVQueuePlayer status: AVPlayerStatusReadyToPlay AVQueuePlayer error: nil AVPlayerItem status: AVPlayerItemStatusFailed AVPlayerItem error: Error Domain=NSCocoaErrorDomain Code=257 The file couldn’t be opened because you don’t have permission to view it. UserInfo={NSUnderlyingError=0x600002a7f5d0 {Error Domain=NSOSStatusErrorDomain Code=-12203 (null)}} AVURLAsset: AVURLAsset: 0x600002504980, URL = file:///Users/xx/Music/Music/Media.localized/Music/xx/xx/xx.mp3 It only happens with audios from Music folder Something interesting is that the app has permission for Music & Apple Music in Security & Privacy from System preferences Is something else needed to access music folder ?
Topic: Media Technologies SubTopic: General Tags:
Apr ’21
Error when running a binary from containing app
I am running a Safari Web extension and looking to launch a shell script from the containing app. Error in process Error Domain=NSCocoaErrorDomain Code=4 The file “test.command” doesn’t exist. I get the above error when I try to access the binary. I use NSOpenPanel to allow the user to give permission to access the file system. The program works perfectly without the sandbox and so that ensures there is no file path error. I have the following entitlements: com.apple.security.scripting-targets com.apple.security.files.user-selected.executable com.apple.security.files.user-selected.read-write let task = Process() task.launchPath = /Users/test/test.command let openPanel = NSOpenPanel() openPanel.prompt = Choose openPanel.canChooseFiles = false openPanel.canChooseDirectories = true do{ try task.run() }catch{ os_log(.error,Error in process) print( (error)) } What could be the issue ?
8
0
1.2k
Apr ’21
How to Use eSIM api
1. I am working for the carrier.2. On July 24, I filed an eSIM Access Entitlement request through the Apple Developer Portal.3. I didn't receive any feedback from Apple, but I found out that when I create a development provisioning profile, I can add a eSIM Development to the Entitlement.4. After downloading and opening the profile, I could check the following information.<key>Entitlements</key><dict><key>com.apple.CommCenter.fine-grained</key><array><string>public-cellular-plan</string></array>...5. I executed the following code but did not get the desired result as the log.<DEVICE>iPhone XS MAXiOS 12.2<code>if #available(iOS 12.0, *) {let provision = CTCellularPlanProvisioning()let cellrequest = CTCellularPlanProvisioningRequest()let isSupportEsim = provision.supportsCellularPlan()cellrequest.address = https://rsp... // Address confirmed to download eSIM n
3
0
5.7k
Apr ’21
Reply to Apple Document - Creating a Basic Video Player
I finally got the video to play by going to the Signing & Capabilities tab in the Project Settings and checked Outgoing Connections (Client) under App Sandbox. Apple should make note of this requirement in their guide. However, I am still getting the following errors in the console: 2021-03-30 14:45:34.347266-0500 Streamer[12701:657907] [plugin] AddInstanceForFactory: No factory registered for id CFUUID 0x600003974980 F8BB1C28-BAE8-11D6-9C31-00039315CD46 2021-03-30 14:45:34.474219-0500 Streamer[12701:657916] validateSessionInfo: bundleID is invalid. Please specify the bundleID for kRTCReportingSessionInfoClientBundleID 2021-03-30 14:45:34.475221-0500 Streamer[12701:657894] startConfigurationWithCompletionHandler: Failed to get remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 connection to service on pid 0 named com.apple.rtcreportingd UserInfo={NSDebugDescription=connection to service on pid 0 named com.apple.rtcreportingd} 2021-03-30 14:45:34.475366-0500 Streamer[12701:657894] star
Topic: Media Technologies SubTopic: Audio Tags:
Mar ’21
Apple Document - Creating a Basic Video Player
I followed this - https://developer.apple.com/documentation/avfoundation/media_playback_and_selection/creating_a_basic_video_player_macos document to try and create a streaming video player in a macOS app and I am getting nothing but errors. Here's my code: import Cocoa import AVFoundation import AVKit class ViewController: NSViewController { @IBOutlet var playerView: AVPlayerView! override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. guard let url = URL(string: https://devstreaming-cdn.apple.com/videos/streaming/examples/img_bipbop_adv_example_ts/master.m3u8) else { return } // Create a new AVPlayer and associate it with the player view let player = AVPlayer(url: url) playerView.player = player } override var representedObject: Any? { didSet { // Update the view, if already loaded. } } } When I run the code, I get the following errors in the console: 2021-03-27 09:24:44.920720-0500 Streamer[27640:1013041] [plugin] AddInstanceForFactory: No factory registered for
2
0
2.4k
Mar ’21
Core Data errors when saving context after syncing from CloudKit
In my new SwiftUI app I am using NSPersistentCloudKitContainer API to persist my data and also share it between multiple different devices. I am always using viewContext to fetch or save records, also my Stack consists of two custom configurations where CloudKit is enabled. One for entities to be stored in the CK public database and one for records in the private database. This usually works just fine. I can save or delete records on one device and they appear on the other device. However in some situations, usually after I imported data on device A and use the same device to create a new record I get errors like this when saving context: Error Domain=NSCocoaErrorDomain Code=133020 Could not merge changes. UserInfo={conflictList=( NSMergeConflict (0x28126df40) for NSManagedObject (0x28242eda0) with objectID '0xb76a5d0f17dd5aa9 ' with oldVersion = 33 and newVersion = 34 and old object snapshot = {n id = D1E2B253-723C-406C-8566-2307DA2D5C17;n name = bench;n} and new cached row = {n id = D1E2B253-723C-4
3
0
1.9k
Mar ’21
Reply to How to read property list (binary format) if the iOS fails to load it via NSPropertyListSerialization
I tested in playground (Xcode 12.4). Works with 128. Fails with 129, with a different error message: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=3840 Unexpected character b at line 1 UserInfo={NSDebugDescription=Unexpected character b at line 1, kCFPropertyListOldStyleParsingError=Error Domain=NSCocoaErrorDomain Code=3840 Conversion of string failed.
Topic: App & System Services SubTopic: General Tags:
Mar ’21
Reply to Network token with CryptoTokenKit
Can you please explain what is the actual reason behind the below error - [client] Unable to connect to tokenServer even after retries. (ep=(null) uid=(null)) Some more information I got from system log - 2021-03-09 00:26:09.036130+0530 localhost ctkd[469]: ctkd [com.apple.CryptoTokenKit:tokenhost] Failed to communicate with driver (null), error: Error Domain=NSCocoaErrorDomain Code=4099 The connection on anonymousListener or serviceListener from pid 21919 was invalidated. UserInfo={NSDebugDescription=The connection on anonymousListener or serviceListener from pid 21919 was invalidated.} 2021-03-09 00:26:09.036225+0530 localhost ctkd[469]: ctkd [com.apple.CryptoTokenKit:tokenhost] failed to acquire token from extension myTokenExtension, error:Error Domain=NSCocoaErrorDomain Code=4099 The connection on anonymousListener or serviceListener from pid 21919 was invalidated. UserInfo={NSDebugDescription=The connection on anonymousListener or serviceListener from pid 21919 was invalidated.} 2021-03
Topic: Privacy & Security SubTopic: General Tags:
Mar ’21
Big Sur Upgrade completely destroyed my user
People at Apple apparently are not capable of writing stable code. After Big Sur update I started getting this 0 CoreFoundation 0x00007fff204976af __exceptionPreprocess + 242 1 libobjc.A.dylib 0x00007fff201cf3c9 objc_exception_throw + 48 2 CoreFoundation 0x00007fff204c0512 +[NSException raise:format:arguments:] + 88 3 Foundation 0x00007fff212796c9 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 191 4 AccountsDaemon 0x00007fff37dd111e -[ACDDatabaseConnection _persistentStore] + 258 5 AccountsDaemon 0x00007fff37dd0f20 -[ACDDatabaseConnection version] + 28 6 AccountsDaemon 0x00007fff37d89c1c __58-[ACDDatabaseInitializer updateDefaultContentIfNecessary:]_block_invoke + 60 7 CoreData 0x00007fff25ad2821 developerSubmittedBlockToNSManagedObjectContextPerform + 161 Does anybody know what is ACDDatabase, where to find it and how to fix this. Cause I am completely locked out of my Mac account now and apple support is useless. Error is Exception Type: EXC_CRASH (SIGABRT) Exception Codes
1
0
512
Mar ’21
NSXPCConnection from LaunchDaemon to LaunchAgent
Hi there! Is it possible to use NSXPCConnection(machServiceName: x, options: y) from service running as LaunchDaemon (system context) to call methods on LaunchAgent running in Aqua Session (gui context)? I have a running code where I connect to LaunchAgent from binary running in Xcode with elevated privileged. However when I launch my application as a LaunchDaemon I get: Agent could not connect: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service on pid 0 named x was invalidated. I suspect this could be happening by (XPC/launchd) design because each item is in different launchd domain. Could anyone shed more light on this? If it is not possible to initiate XPC from LaunchDaemon to LaunchAgent, what kind of IPC alternative would you recommend to control the agent from the daemon?
5
0
3k
Mar ’21
Crash core data - NSCocoaErrorDomain Code=256
Crash occurs frequently in testflight builds, below log is reported in crashlytics for the crashFatal error: Unresolved error Error Domain=NSCocoaErrorDomain Code=256 The file ####.sqlite” couldn’t be opened. UserInfo={NSFilePath=/var/mobile/Containers/Data/Application/D73975F3-ED76-4C7B-A30A-0C751C8471AA/Library/Application Support/####.sqlite, NSSQLiteErrorDomain=23}, [NSFilePath: /var/mobile/Containers/Data/Application/D73975F3-ED76-4C7B-A30A-0C751C8471AA/Library/Application Support/####.sqlite, NSSQLiteErrorDomain: 23]: file /Users/elanarulaj/Desktop/voxer_client/packages/sdk.swift/VoxerKit/VoxerKit/Classes/####SDK.swift, line 86I do not find any working solution in StackOverFlow
2
0
2k
Feb ’21