Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Error on iOS14 when using MDLAsset(url:) initializer
When loading OBJs into an MDLAsset using the MDLAsset(url:) initializer (to eventually get the model into SceneKit), the operation fails frequently and inconsistently on iOS14. This operation works fine for these same files on previous iOS versions. I've also observed the bug on iPadOS, although maybe less frequently. Not sure if it's relevant, but these OBJs are pulled from server and stored locally. But this bug is occurring after files are already downloaded. I already submitted an Apple bug report FB8734401. The console output seems to indicate a failure to communicate with ModelIO XPC service. I tried restarting my device, but the bug continues to occur. Console output: connection to com.apple.ModelIO.AssetLoader was interrupted AssetLoader.loadURL errorHandler: Error Domain=NSCocoaErrorDomain Code=4097 connection to service on pid 0 named com.apple.ModelIO.AssetLoader UserInfo={NSDebugDescription=connection to service on pid 0 named com.apple.ModelIO.AssetLoader} Couldn’t communicate with a hel
3
0
1k
Dec ’20
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
Dec ’20
run app in Xcode 12 simulator
when i run my app in Xcode 12 simulator it give this error The file “ERP” couldn’t be opened because you don’t have permission to view it. Domain: NSCocoaErrorDomain Code: 257 Failure Reason: You don’t have permission. Recovery Suggestion: To view or change permissions, select the item in the Finder and choose File > Get Info. User Info: { NSFilePath = /Users/Hani/Library/Developer/Xcode/DerivedData/ERP-famblluulftfkoeqfddavcaudaym/Build/Products/Debug-iphonesimulator/ERP.app; } - The operation couldn’t be completed. Permission denied Domain: NSPOSIXErrorDomain Code: 13 Failure Reason: Permission denied - System Information macOS Version 10.15.7 (Build 19H2) Xcode 12.0.1 (17220)
5
0
1.9k
Dec ’20
[Xcode 12]Build and run project for simulator, But got a permission issue
When I upgraded to Xcdoe 12 and build the previous app project, And then I got an error when running the simulator, it seemed to be a permission problem. I also went to File> Get Info for what the error said, but no exception was found. Any ideas? ======================== The following is the error content: Details The file “xxx” couldn’t be opened because you don’t have permission to view it. Domain: NSCocoaErrorDomain Code: 257 Failure Reason: You don’t have permission. Recovery Suggestion: To view or change permissions, select the item in the Finder and choose File > Get Info. User Info: { NSFilePath = /Users/momo/Library/Developer/Xcode/DerivedData/xxx-dxvphugocaepzfaicmcbykxrlgrt/Build/Products/Debug-iphonesimulator/xxx.app; }- The operation couldn’t be completed. Permission denied Domain: NSPOSIXErrorDomain Code: 13 Failure Reason: Permission denied- System Information macOS Version 10.15.6 (Build 19G2021) Xcode 12.0.1 (17220)
3
0
853
Dec ’20
Reply to run app in Xcode 12 simulator
Same issue when launching iOS simulator with Xcode 12.2 Domain: NSCocoaErrorDomain Code: 257 Failure Reason: You don’t have permission. Recovery Suggestion: To view or change permissions, select the item in the Finder and choose File > Get Info. User Info: { .... }- The operation couldn’t be completed. Permission denied Domain: NSPOSIXErrorDomain Code: 13 Failure Reason: Permission denied- Any solution so far?
Dec ’20
Can't save file on iOS
Hello all! I've killed a few days trying to save a file and list it in a home directory. First I retrieve a home directory URL. I tried several options: docDir = try FileManager.default.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: true) docDir = URL(fileURLWithPath: NSHomeDirectory()) In any way when running on simulator or my iPhone it results in just file:/// Well, maybe that's ok for sandboxed iOS app... After that I prepare a file URL. I tried two ways: let file = docDir.appendingPathComponent(myfile.tmp) let file = URL(fileURLWithPath: myfile.tmp) print(file.absoluteURL) Here I get file:///myfile.tmp Finally I try to create file do { try Data(count: 0).write(to: file2) } catch { print(Failed to create file: '(file)' because of: (error)) } And here is what I get On simulator: Failed to create file: './myfile.tmp -- file:///' because of: Error Domain=NSCocoaErrorDomain Code=642 You can’t save the file “myfile.tmp” because the volume “AirHD — данные” is read only.
1
0
4.7k
Dec ’20
Reply to JSONDecoder Limit
I got a similar error playing in Playground (Xcode 12.2) with the initial data completed to 12 keys. Error message: NEWDATA 183 bytes Playground execution terminated: An error was thrown and was not caught: ▿ DecodingError ▿ dataCorrupted : Context codingPath : 0 elements debugDescription : The given data was not valid JSON. ▿ underlyingError : Optional some : Error Domain=NSCocoaErrorDomain Code=3840 Badly formed object around character 161. UserInfo={NSDebugDescription=Badly formed object around character 161.} I then realised that I forget the ending comma in NEWDATA after NAME9: HELLO Adding it solved the problem. So I tested with 18 keys and works as well.
Topic: Programming Languages SubTopic: Swift Tags:
Dec ’20
Reply to StoreKit testing in Xcode produces a weird error
I'm having this same issue on a simulator. I'm using Xcode 12.2 and simulator 14.2. I did the setup as in https://developer.apple.com/documentation/xcode/setting_up_storekit_testing_in_xcode and I'm testing a subscription purchase and the error happens right after payment confirmation screen. When I printed out the transaction error I got the following (lldb) po transaction.error Error Domain=NSCocoaErrorDomain Code=4097 connection to service on pid 25563 named com.apple.storekitservice UserInfo={NSDebugDescription=connection to service on pid 25563 named com.apple.storekitservice} Is there a way to fix it? Did I missed some config step>
Topic: App & System Services SubTopic: StoreKit Tags:
Nov ’20
Reply to How to initialize Schema?
Has anyone gotten schema initialization to work with the new initializeCloudKitSchemaWithOptions function? I am always getting an internal CoreData No authToken receive for asset error thrown from this call: Error Domain=NSCocoaErrorDomain Code=134060 A Core Data error occurred. (Dry run option completes without error)
Nov ’20
CoreData context save with large number of items fails
The same code for 100 items works, but fails with exception for 600 with the Error Domain=NSCocoaErrorDomain Code=1570 title is a required value. ... all other properties of the objects are reported as nil as well. The objects are setup on the same thread and are valid before context.save is called. As I said before, it works for 100 items but fails for 600. let users = DataLayer().loadObjectsFromDB(context:self.context) var inspections = InspectionDTO.inspectionsForSave(json: json, users:users, in: self.context) do { try self.context.save() } catch { print(error._userInfo ?? ) } cross posted on stackoverflow - https://stackoverflow.com/questions/64671451/coredata-context-objects-deallocated-in-a-block/64671707?noredirect=1#comment114361636_64671707 any recommendations are greatly appreciated
1
0
734
Nov ’20
can't get extremely simple macOS video player to work...
... following Apple's example. Going off of this tutorial: https://developer.apple.com/documentation/avfoundation/media_playback_and_selection/creating_a_basic_video_player_macos I have dragged into the storyboard the AVKit Player View, and here is my ViewController code: import Cocoa import AVKit import AVFoundation class ViewController: NSViewController { @IBOutlet weak var playerView: AVPlayerView! override func viewDidLoad() { super.viewDidLoad() guard let url = URL(string: linkWasHere) else { return //could not post actual link due to this forum's security issues, see link above for actual link. ??? } let player = AVPlayer(url: url) playerView.player = player } } here is what the console is outputting when I run this, any idea why this no longer works? 2020-11-01 20:28:31.491145-0800 Player01[13477:15207676] [plugin] AddInstanceForFactory: No factory registered for id F8BB1C28-BAE8-11D6-9C31-00039315CD46 2020-11-01 20:28:31.494171-0800 Player01[13477:15207338] CDN - client insert callback function clien
2
0
2.0k
Nov ’20
macOS Catalina - Current bundle does not have a SystemExtensions directory
I've upgraded my macOS to Catalina. Then I tried to run via Xcode my macOS VPN app (implemented with Packet Tunnel Provider) -The VPN fails to connect and I see at the Console a lot of errors, such as:Current bundle (/Users/myClientPath/Client.app) does not have a SystemExtensions directoryNESMVPNSession[Primary Tunnel:myDetails:(null)]: Received a start command from myClient[2061]Found 0 (0 active) registrations for com.my.bundle.id.extension (com.apple.networkextension.packet-tunnel) - this msgs repeats several timesNEVPNTunnelPlugin(com.my.bundle.id[794]): Validation of the extension failedNESMVPNSession in state NESMVPNSessionStateStarting: plugin NEVPNTunnelPlugin started with PID 0 error (null)Hub connection error: Error Domain=NSCocoaErrorDomain Code=4097 connection to service on pid 0 named com.my.bundle.id.extensiondisposingFailed to start extension com.my.bundle.id.extensionNSDebugDescription=connection to service on pid 0 named com.my.bundle.id.extensionHow can I solve it?
5
0
1.5k
Oct ’20
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
Oct ’20
Reply to Error on iOS14 when using MDLAsset(url:) initializer
Got the same error on a large mesh 2020-10-21 11:07:46.374517-0700t[19062:6094948] connection to com.apple.ModelIO.AssetLoader was interrupted 2020-10-21 11:07:46.377911-0700t[19062:6094927] AssetLoader.loadURL errorHandler: Error Domain=NSCocoaErrorDomain Code=4097 connection to service on pid 0 named com.apple.ModelIO.AssetLoader UserInfo={NSDebugDescription=connection to service on pid 0 named com.apple.ModelIO.AssetLoader} 2020-10-21 11:07:46.380719-0700t[19062:6094927] Couldn’t communicate with a helper application.
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’20