Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Reply to iOS Development: Create file failed(return domain:NSCocoaErrorDomain,code:512)
May I add your wei xin(fang zhi he xie)? my wei xin is rock_homeboy and my dian hua hao ma is 18616309756, Im a RD of ByteDance(Douyin), and I have encountered the same problem as you mentioned above, currently contacting the user so that I can provide disk and system log diagnosis to Apple.Let me describe the problem:1.Failed to create file through NSFileManager function- (BOOL)createFileAtPath:(NSString *)path contents:(nullable NSData *)data attributes:(nullable NSDictionary<nsfileattributekey, id=> *)attr;The error information obtained by printing errno and strerror (errno) is as follows:errorCode = 17, errorDesc = File exists.The following key file attributes are provided:{ NSFileCreationDate = 1970-01-01 00:00:02 +0000; NSFilePosixPermissions = 493; NSFileSystemNumber = 16777222; NSFileType = NSFileTypeDirectory; }2.Can't write to file using NSData- (BOOL)writeToFile:(NSString *)path options:(NSDataWritingOptions)writeOptionsMask error:(NSError **)errorPtr; error: Error Domain=NSCocoaErrorDomain
Topic: App & System Services SubTopic: Core OS Tags:
May ’20
Reply to How to configure Kerberos SSO Extension to handle challenges in native app
Hi VMdominguez,I'm getting the same error. Are you able to confirm in your console logs of the device:*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSCFConstantString stringByAppendingString:]: nil argument' *** First throw call stack: (0x1b81d0164 0x1b7ee4c1c 0x1b848e5b8 0x1e3faef54 0x1e3fac914 0x1023df684 0x1023e2f30 0x1b7e6eec4 0x1b7e7033c 0x1b7e727b4 0x1b7e7f5c0 0x1b7e7fd9c 0x1b7ed76d8 0x1b7edd9c8)Looks like the KerberosExtension Process crashes, (Note the animation of the new SSOExtension disappears really fast after entering your password and hitting enter)The crashes should be generating logs and found in:iPhone > Settings > Privacy > Analytics & Improvements > Analytics Data > KerberosExtensionSSO.logGeneration of SysDiagnostics.logs: https://developer.apple.com/bug-reporting/profiles-and-logs/Instructions: https://download.developer.apple.com/iOS/iOS_Logs/Single_SignOn_Diagnostics_Logging_Instructions.pdfEdit:Check out this error too,
Topic: Privacy & Security SubTopic: General Tags:
May ’20
Reply to Extension frequently crashes for a large number of users
If revevant, I'm seeing these issues while debugging in Xcode, however they may be basic/expected type errors as I am not able to reproduce the issue on my machine anyway.objc[99539]: Class AMSupportURLConnectionDelegate is implemented in both /System/Library/PrivateFrameworks/OSPersonalization.framework/Versions/A/OSPersonalization (0x7fff8b54cb68) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103cfb228). One of the two will be used. Which one is undefined. objc[99539]: Class AMSupportURLSession is implemented in both /System/Library/PrivateFrameworks/OSPersonalization.framework/Versions/A/OSPersonalization (0x7fff8b54cbb8) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103cfb278). One of the two will be used. Which one is undefined. 2020-05-21 11:09:44.426694-0400 Safari[99539:37398753] Metal API Validation Enabled 2020-05-21 11:09:46.158099-0400 Safari[99539:37398994] Bogus event on event stream listener. 2020-05-21 11:09:46
Topic: Safari & Web SubTopic: General Tags:
May ’20
Reply to TestFlight - missing On Demand Resources
I've been in touch with Rich Kubota who is working to get to the bottom of the ODR request issue. He was able to reproduce the error with my app and capture device logs to help the ODR engineers track down the issue. To be clear, the error that's being returned by a request for any ODR: Error Domain=NSCocoaErrorDomain Code=4994 The requested application data doesn’t exist. UserInfo={NSUnderlyingError=0x281b6a730 {Error Domain=_NSBundleResourceRequestErrorDomain Code=100 No manfiest found for bundle ID com.xxxxxx UserInfo={NSLocalizedFailureReason=No manfiest found for bundle ID com.xxxxxx}}} (where com.xxxxxx is the bundle ID of my app) (and note the typo manfiest 😐) Again, ODR works for me in TestFlight and every other configuration I'm able to try, only fails in App Review.I received this message from Rich last Friday 5/29: I finally managed to get the ODR engineer set up with the App Review Network administrator to provide the info needed to investigate this issue. It’s unfortunate that this is t
Jun ’20
NSBatchInsertRequest problem with decoding a simple Date
Hi,I have backup functionality which takes the NSManaged Object and save them as JSON File.The JSON looks like this :[ { id: 58454F9D-08BC-4302-A5FC-11545EFB8C42, created: 608479894.33327103, name: Freezer, modified: 608479894.33327198 }, { id: 3AB234DF-E16D-43BE-AA57-CA14E729EEA8, created: 608479894.33316803, name: Fridge, modified: 608479894.33318496 }, { id: 6FA1E8D0-8629-413B-9C71-0377260ECFFF, created: 608479894.33331501, name: Pantry, modified: 608479894.33331501 } ]And the corresponding NSManagedObject class looks as Below :@objc(Storage) class Storage: NSManagedObject, Encodable { // MARK: - Properties @NSManaged public var id: String @NSManaged public var name: String @NSManaged public var created: Date @NSManaged public var modified: Date // MARK: - Encodable public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) try container.encode(id, forKey: .id) try container.encode(created, forKey: .created) try container.encode(modified, forKey: .modified)
5
0
1.7k
Jun ’20
Reply to iOS Development: Create file failed(return domain:NSCocoaErrorDomain,code:512)
I'm also experiencing a similar issue. One user (out of thousands) is getting a 512 error – NSFileWriteUnknownError when the iOS app attempts to write a file to the caches directory or the documents directory.The user is on iOS 13.3, and logging the error shows Error Domain=NSCocoaErrorDomain Code=512 The file couldn’t be saved. UserInfo={NSUserStringVariant=Folder}
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’20
CoreData+CloudKit Model Migration Failing
So I've been developing happily with CoreData+CloudKit for a while now, and really haven't run into any issues until this. I've migrated my model a couple of times, and it worked fine, but this was the first time I added a new entity to the model. If I run on a device (any device, iPhone, iPad, Mac via Catalyst), I get a migration error. Here's the entirety of my persistentContainer setup: public var persistentContainer: NSPersistentContainer = { let modelPath = Bundle(for: CoreDataStack.self).url(forResource: Progress, withExtension: momd)! let model = NSManagedObjectModel(contentsOf: modelPath)! let container = NSPersistentCloudKitContainer(name: Progress, managedObjectModel: model) container.loadPersistentStores(completionHandler: { (storeDescription, error) in if let error = error as NSError? { print(storeDescription) fatalError(Unresolved error (error), (error.userInfo)) } }) return container }()And here's the error I'm getting:Callstacks=true}}}CoreData: annotation: : Attempting recovery from error enco
10
0
5.9k
Jun ’20
CloudKit, 2 quick saves, error: "Could not merge changes"
I'm experimenting with Core Data and CloudKit using the recommended `NSPersistentCloudKitContainer`. I'm kind of new to Core Data so maybe I'm doing something simple/stupid. I get an error when changing the object twice, quickly.I have a SwiftUI view of one of my managed objects, with button toggle the isActive property. If I tap it twice in a row, I get an error from `NSManagedObjectContext.save`. How do you prevent or recover from this kind of error?It seems to be a timing thing, because I'm having trouble duplicating it. private func toggleActiveState() { exercise.isActive = !exercise.isActive try! moc.save() // error }RobFatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=133020 Could not merge changes. UserInfo={conflictList=( NSMergeConflict (0x282fb15c0) for NSManagedObject (0x2819ca8a0) with objectID '0xb61bc172bb432131 <x-coredata://6C618B32-5866-4E35-93C9-3B7F3D221FE6/MyObject/p7>' with oldVersion = 4 and newVersion = 5 and old object snap
1
0
941
Jun ’20
Reply to Unexpected SIGKILL when privacy access to folder is unchecked
However, if I then uncheck that box and launch my app again, it gets killed right away. I agree that this is unexpected. I repeated your test here in my office and it’s not what I saw. Specifically, I created a new test app and added this code to access Documents: do { ttprint(will get doc dir) ttlet docDir = try FileManager.default.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: true) ttprint(will list doc dir) ttlet docContents = try FileManager.default.contentsOfDirectory(at: docDir, includingPropertiesForKeys: nil, options: []) ttprint(did list doc dir, contents: (docContents)) } catch { ttprint(error) } When I ran the app after revoking the app’s access to Documents, I saw this: will get doc dir will list doc dir Error Domain=NSCocoaErrorDomain Code=257 The file “Documents” couldn’t be opened because you don’t have permission to view it. UserInfo={NSURL=file:///Users/quinn/Documents, NSFilePath=/Users/quinn/Documents, NSUnderlyingError=0x600000cb6130 {Error Domain=
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’20
Reply to Retrieving Logs from a Customer's Device
@bens OSLogStore is marked available in iOS 14: https://developer.apple.com/documentation/oslog/oslogstore?changes=latest_minor Unfortunately, there is an issue with retrieving entries (the which I asked about during labs and have filed a Feedback Request for. Please duplicate if you get a chance!: FB7787937 This is for the error message: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service on pid 0 named com.apple.OSLogService was invalidated.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’20
Can't debug Failed Shortcut Intent Launch.
I've been trying to use the console to debug a problem with my SiriKit Intent which I added to launch my app from short cuts. The Log messages are as follows: error 21:39:20.087846-0400 intents_helper +[INUIImageSizeProvider downscaledPNGImageForImage:size:error:] Non-fatal error: Error Domain=IntentsErrorDomain Code=6009 Scaled size is larger than image size UserInfo={NSDebugDescription=Scaled size is larger than image size} error 21:39:20.090408-0400 Shortcuts -[INCache cacheableObjectForIdentifier:] Unable to find cacheable object with identifier intents-remote-image-proxy:?proxyIdentifier=82C0975C-D3F9-69E5-6F55-7E4EBEE3F41A.png&storageServiceIdentifier=com.apple.Intents.INImageServiceConnection in cache. error 21:39:20.096812-0400 Shortcuts _INCExtensionManagerFetchMatchingSiriExtensionForIntent_block_invoke_2 Failed to find extension Error Domain=INExtensionMatchingErrorDomain Code=3001 (null) UserInfo={ExtensionPointName=com.apple.intents-service} error 21:39:20.100112-0400 Shortcuts -[WFAction run
7
0
5.4k
Jun ’20
usr of NSCustomPersistantContainer with "forSecurityApplicationGroupIdentifier"
For using today extension, I override default directory with app group. class NSCustomPersistentContainer: NSPersistentContainer { override open class func defaultDirectoryURL() -> URL { var storeURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: group.YourApp) storeURL = storeURL?.appendingPathComponent(YourApp.sqlite) return storeURL! } } it's working fine : on my widget I could retrieve my Coredata information... BUT I've notice that an error appear on the first time I install my app returned error NSCocoaErrorDomain(512) with userInfo dictionary { reason = Failed to create file; code = 2; it's not crashing app and could use Coredata but could you tell me how why this error on debug? thanx a lot
0
0
557
Jun ’20
Reply to App does not appear in File and Folder permissions
HI all: I have the same problem, my app is a normal swift project no other process involves, when it's running at the version after macOS 10.15.4, some users report that no system pop up to allow access to the Documents folder, after authentication by NSOpenPanel, And now we found this problem always exists in macOS 11.0 (Big Sur), After granting the permission by click NSOpenPanel confirm button, we grant the permission of user home path, but we can only access this folder, if you access its subfolder, it will give an error : Error Domain=NSCocoaErrorDomain Code=257 The file “Documents” couldn’t be opened because you don’t have permission to view it.. no system pop up alert, so my app not appearing in File and Folder permissions I don't know if any workaround here? did you found a solution?
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’20
[Bug] Using PHPickerViewContrller cannot get any data
Step 1: Remove all photos in Album. Step 2: Sync some iCloud photos, NOT download original photos. Step 3: Then the demo below cannot get any data with error. Even if i create some photos after meet the bug (such as taking photo and downloading images), i still cannot get any data from delegate method. This is the error log:👇 2020-07-08 15:26:46.884818+0800 NewsInHouse[1523:58692] [claims] Upload preparation for claim 73945DAC-B563-4954-A0F9-E98BC430ADF7 completed with error: Error Domain=NSCocoaErrorDomain Code=260 未能打开文件“F7BC94F4-157E-46B9-AEAB-32224F254171.png”,因为它不存在。 UserInfo={NSURL=file:///private/var/mobile/Containers/Shared/AppGroup/B5732C05-0CBA-4A8D-B405-CCBF0F058C2A/File%20Provider%20Storage/F7BC94F4-157E-46B9-AEAB-32224F254171.png, NSFilePath=/private/var/mobile/Containers/Shared/AppGroup/B5732C05-0CBA-4A8D-B405-CCBF0F058C2A/File Provider Storage/F7BC94F4-157E-46B9-AEAB-32224F254171.png, NSUnderlyingError=0x28059ce10 {Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory}} (vo
1
0
1.1k
Jul ’20
Why is there an error when loading livePhoto in PHPicker without the photo library premissions?
hello,I am trying to figure out how to get livePhoto、gif and the picture on the icloud in PHPicker without the Photo Library permissions, but I get the error message like this : 2020-07-10 20:38:42.314255+0800 NewsInHouse[1307:315714] error = Error Domain=NSItemProviderErrorDomain Code=-1000 Cannot load representation of type com.apple.live-photo-bundle UserInfo={NSLocalizedDescription=Cannot load representation of type com.apple.live-photo-bundle, NSUnderlyingError=0x282049680 {Error Domain=NSCocoaErrorDomain Code=260 未能打开文件“7B1C8EE4-4A3E-4287-9369-8592943BC4AD.pvt”,因为它不存在。 UserInfo={NSURL=file:///private/var/mobile/Containers/Shared/AppGroup/3343D5E0-FD07-49AB-9131-3DADE85A46DC/File%20Provider%20Storage/7B1C8EE4-4A3E-4287-9369-8592943BC4AD.pvt, NSFilePath=/private/var/mobile/Containers/Shared/AppGroup/3343D5E0-FD07-49AB-9131-3DADE85A46DC/File Provider Storage/7B1C8EE4-4A3E-4287-9369-8592943BC4AD.pvt, NSUnderlyingError=0x2820042d0 {Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory}}}}
2
0
2.4k
Jul ’20