Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Reply to Fragment large size data sent and received using NSKeyedArchiver.archivedData in GameCenter
[quote='796608022, DTS Engineer, /thread/759890?answerId=796608022#796608022'] Finally, how is MCPeerID coming into this? I thought you were using GameKit? [/quote] Actually, I am using both GameKit and MCSession. Trying to play with fragmenting the data, as you prompted. Although it is more or less clear how to send data: func sendData(dictionaryWithData dictionary: Dictionary, toPeer targetPeers: [MCPeerID]) { do { let dataToSend = try NSKeyedArchiver.archivedData(withRootObject: dictionary, requiringSecureCoding: true) let fragments = fragmentsForMessage(dataToSend, messageID: 0xa1a2a3a4, maxMessageBytesInFragment: 50000) for fragment in fragments { try session.send(fragment, toPeers: targetPeers, with: MCSessionSendDataMode.reliable) } } catch { } } ... I am frankly a bit stuck as to how to handle it in func session(_ session: MCSession,didReceive data: Data,fromPeer peerID: MCPeerID) { DispatchQueue.main.async { do { .... Append data to a property and then at some point implement NSDictionary.unsecureUna
Jul ’24
Can't open file user granted access to.
Our app has a note section that allows you to drag and drop an email to it. Our app then adds a link to the note, that when clicked, will open the email again. Currently andy email dragged from the mail.app doesn't have a problem. Works fine. The issue is with other mail clients at least with Outlook. When a user drags and drops an email from Outlook, we add the link, and if you click the link it will open fine. The problem is that this only works as long as you don't close our app. If you close our app, re-open and click the Outlook email link, we get a permission error. The application “DragAndDropEmails” does not have permission to open “Re- Customize Login- Registration Form.eml.” “NSCocoaErrorDomain” - code: 256 “NSURL” : “file:///Applications/Microsoft%200utlook.app/” “NSLocalizedDescription” : “The application “Microsoft Outlook” could not be launched because a miscellaneous error occurred.” “NSUnderlyingError” : domain: “NSOSStatusErrorDomain” - code: 18446744073709551562 When a drop is made
1
0
500
Jul ’24
PreviewApplication open Spatial Video issue
Hi, I have a Spatial Video that I am trying to load in a visionOS app with PreviewApplication API let url = URL(string: https://mauiman.azureedge.net/videos/SpatialJourney/watermelon_cat.MOV) let item = PreviewItem(url: url!) _ = PreviewApplication.open(items: [item]) When I run the application, I am getting the following error. Did I miss anything? QLUbiquitousItemFetcher: could not create sandbox wrapper. Error: Error Domain=NSPOSIXErrorDomain Code=2 couldn't issue sandbox extension com.apple.quicklook.readonly for '/videos/SpatialJourney/watermelon_cat.MOV': No such file or directory UserInfo={NSDescription=couldn't issue sandbox extension com.apple.quicklook.readonly for '/videos/SpatialJourney/watermelon_cat.MOV': No such file or directory} #PreviewItem The screen shows up as: Putting the spatial video locally, I get the following error: let url = URL(fileURLWithPath: watermelon_cat.MOV) let item = PreviewItem(url: url) _ = PreviewApplication.open(items: [item]) Error getting the size of file(watermelon
3
0
1k
Jul ’24
Error loading automation support library: Error Domain=com.apple.dt.xctest.error
Good morning. I'm executing XCUitest tests on a real iPhone with iOS 17 and I'm receiving the following error: 2024-04-09 11:11:10.000 E HelloWorldE2EUITests-Runner(FrontBoardServices)[489] : Snapshot request 0x281f1c390 complete with error: { NSLocalizedDescription = an error occurred during a scene snapshotting operation; } 2024-04-09 11:11:10.000 E HelloWorldE2E(XCTTargetBootstrap)[490] : Error loading automation support library: Error Domain=com.apple.dt.xctest.error Code=1 UserInfo={NSLocalizedDescription=} 2024-04-09 11:11:12.000 E HelloWorldE2E(XCTTargetBootstrap)[491] : Error loading automation support library: Error Domain=com.apple.dt.xctest.error Code=1 UserInfo={NSLocalizedDescription=} 2024-04-09 11:11:13.000 E HelloWorldE2EUITests-Runner(FileProvider)[489] : [ERROR] Cannot query for providers. Error: NSError: Cocoa 257 The file couldnM-bM^@M^Yt be opened because you donM-bM^@M^Yt have permission to view it. 2024-04-09 11:11:13.000 E HelloWorldE2EUITests-Runner(FileProvider)[489] : [ERROR] recei
1
0
1.1k
Apr ’24
SwiftData error 134020 - "The model configuration used to open the store is incompatible with the one that was used to create the store."
Hi all, I have tried everything (that i'm aware of) but i cannot seem to get around this error. My app is setup using only SwiftData and is basically a custom version of the apps shown in SwiftData docs. I have done the following to try to debug: Deleted app from device Clean and re-build Delete derived data and rebuild I have tried reverting changes made to the @Models i have define Every combination of the above steps + rebuilding Im at a loss. No clue how to resolve this. Some weird observations. This error only occurs after the first context.insert call. The first is successful and data is properly persisted across app launches. All subsequent attempts to insert result in the following error: Error Domain=NSCocoaErrorDomain Code=134020 The model configuration used to open the store is incompatible with the one that was used to create the store. UserInfo={NSAffectedObjectsErrorKey= (entity: Track; id: 0x2807a7de0 ; data: { createdAt = 2023-07-02 23:45:45 +0000; name = Test; })}
5
0
2.5k
Sep ’23
The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled.
I've downloaded xip-archive of Xcode to my external drive and tried to unarchive it. Then I opened Xcode.app and got this error. Same error I've got on my internal drive.My OS: macOS Hight Sierra 10.13.4Xcode 9.3------------------------------------------------------------------------------------------------[MT] DVTPlugInLoading: Failed to load code for plug-in com.apple.dt.dbg.DebuggerLLDB (/Volumes/Untitled/Xcode.app/Contents/PlugIns/DebuggerLLDB.ideplugin), error = Error Domain=NSCocoaErrorDomain Code=3587 dlopen_preflight(/Volumes/Untitled/Xcode.app/Contents/PlugIns/DebuggerLLDB.ideplugin/Contents/MacOS/DebuggerLLDB): Library not loaded: @rpath/LLDB.framework/LLDB Referenced from: /Volumes/Untitled/Xcode.app/Contents/PlugIns/DebuggerLLDB.ideplugin/Contents/MacOS/DebuggerLLDB Reason: image not found UserInfo={NSLocalizedFailureReason=The bundle is damaged or missing necessary resources., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Volumes/Untitled/Xcode.app/Contents/Plug
2
0
2.1k
Oct ’20
Issue while accessing file from another PC on local network using document picker with SMB.
We are trying to access and copy some files [e.g., video file] from another PC on local network using SMB protocol. We found some third party libraries like AMSMB2 for this. But we want to try to use Apple inbuilt features like File management mentioned in - https://developer.apple.com/videos/play/wwdc2019/719/ We could able to select file from SMB server using document picker in app manually. Also we got its url in debug which gets generated under Shared section in files app. The URL I get from document picker is -> /private/var/mobile/Library/LiveFiles/com.apple.filesystems.smbclientd/asd0QUsers/testuser/iOS/SMB_ShareFolder Now we want to avoid manual selection of file to user. We want directly open /private/var/mobile/Library/LiveFiles/com.apple.filesystems.smbclientd/asd0QUsers/testuser/iOS/SMB_ShareFolder path as soon as document picker opens. So that user can directly select file. But it is not working. It opens normal files app and all folders. Getting below error - Access Shared URL directly using
1
0
984
Jul ’24
Issue while accessing file from another PC on local network using document picker with SMB.
We are trying to access and copy some files [e.g., video file] from another PC on local network using SMB protocol. We found some third party libraries like AMSMB2 for this. But we want to try to use Apple inbuilt features like File management mentioned in - https://developer.apple.com/videos/play/wwdc2019/719/ We could able to select file from SMB server using document picker in app manually. Also we got its url in debug which gets generated under Shared section in files app. The URL I get from document picker is -> /private/var/mobile/Library/LiveFiles/com.apple.filesystems.smbclientd/asd0QUsers/testuser/iOS/SMB_ShareFolder Now we want to avoid manual selection of file to user.We want directly open /private/var/mobile/Library/LiveFiles/com.apple.filesystems.smbclientd/asd0QUsers/testuser/iOS/SMB_ShareFolder path as soon as document picker opens. So that user can directly select file. But it is not working. It opens normal files app and all folders. Getting below error - Access Shared URL directly using d
1
0
1.1k
Jul ’24
Unable to Simulate Messages and Sticker Packs
I'm on a fresh install of MacOS (14.5) with a fresh install of the latest XCode (15.4) and when I create a new Messages app or Sticker Pack, it compiles but fails to deploy on the simulator. (This is the default project configuration provided by Xcode with no changes.) I have tried reinstalling Xcode and the simulators but nothing fixes it. I've tried also changing the device to simulate but it still doesn't work. Regular applications however do deploy on the simulator and work as normal. But Messages and Sticker Packs do not show up on the simulator in the messages app and give the following errors: objc[3958]: Class CKDetailsTUConversationCell is implemented in both /Library/Developer/CoreSimulator/Volumes/iOS_21F79/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.5.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/ChatKit.framework/ChatKit (0x1ecbe7280) and /Library/Developer/CoreSimulator/Volumes/iOS_21F79/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.5.simrunti
1
0
1k
Jul ’24
iCloud Drive Desktop not syncing
Just installed 19A487l and I don't see my iCloud Desktop being synced. I tried various things like logging out and back into iCloud, toggling the Desktop sync option off and then back on, rebooting, etc. unfortunately with no change.Someone in another post suggested that adding certain system daemons to the Full Disk Access list in System Preferences -> Security & Privacy -> Privacy syspref would fix it, but when I click on the '+' button to try, System Preferences hangs. The best I could debug was correlate some messages in Console by timestamp to when I clicked on '+':error16:20:02.458461-0800diagnostics_agentInvalid receipt [0 bytes] -- [<private>]fault16:20:02.479769-0800cfprefsdAllowing process impersonation by process com.apple.appkit.xpc.openAndSav (909) despite not having the com.apple.private.defaults-impersonate entitlement due to it not being sandboxed. Please add com.apple.private.defaults-impersonate instead, this will stop working in the future.fault16:20:02.479798-0800cfprefsdAl
8
0
3.8k
Jun ’19
Reply to File transfer issue from iPhone to Watch after iOS 17.5 & WatchOS 10.5 update
Also having the very same problem here with my app: -[WCFileStorage persistOutgoingFileTransfer:] error serializing file transfer , transferring: YES> due to Error Domain=NSCocoaErrorDomain Code=4866 Caught exception during archival: This object may only be encoded by an NSXPCCoder. The file arrives at the phone but the didFinishFileTransfer on watch's delegate never gets called. Because of this, the files are kept in queue and keep being synced to phone app repeatedly consuming watch battery. Also happens on simulator. iOS 17.5.1 watchOS 10.5.
Topic: App & System Services SubTopic: General Tags:
Jul ’24
CloudKit Stopped Syncing after adding new Entities
Can someone please shed some light? I have an app that uses Core Data and CloudKit, up until the last version, I was able to sync data between devices but now after I added two new Entities for some reason it stopped syncing between devices. Here is how I did the change: Created a new Core Data container. Added the new Entities and their Attributes Tested the new Entities locally to be able to send the new schema to CloudKit. Went to CloudKit and made sure that the new Entities and Attributes were reflected on the Developent database. Deploy Schema Cahnges. Went to the Production database to make sure the new schema was deployed; and it was, both databases look the same. Testing: Tested in the simulator and with a real device and everything syncs, even the new Entities. If I download the app from the App Store on two different devices they do NOT sync. Based on the procedure I'm describing above, is there any important step I may have missed when doing the migration? I'm not sure if this is related to the syn
3
0
3.2k
Jun ’24
Log Messages after upgrading to Xcode 15.3
Hello everyone, after upgrading to Xcode 15.3 I noticed several log messages that weren't present in my project before. Here are some examples: BOOL _NSPersistentUIDeleteItemAtFileURL(NSURL *const __strong) Failed to stat item: file:///Users/ ... savedState/restorecount.plist [SendServerMessage](com.apple.mobileasset.autoasset) ErrorHandler: Calling provided reply completion on connection error Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.mobileasset.autoasset was invalidated: failed at lookup with error 159 - Sandbox restriction. UserInfo={NSDebugDescription=The connection to service named com.apple.mobileasset.autoasset was invalidated: failed at lookup with error 159 - Sandbox restriction.} for connection connection to service named com.apple.mobileasset.autoasset MA-auto{_failedLockContent} | failure reported by server | error:[NSCocoaErrorDomain:4099] I'm at a loss here. Can I treat these messages as log noise and safely ignore them or is there a
3
0
3k
Mar ’24
Xcode 15's "Replace Container" feature replaces the container with incorrect permissions?
I recently updated to Xcode 15.0 and seem to be encountering permissions related errors after using the Replace Container function to replace an app container. Similarly, editing the current run scheme and choosing a new App Data container fails with an identical error. It seems like the Documents directory and other similar directories are blocked from being able to write. Here is an example of what appears in the log after replacing the container: Failed to create directory /var/mobile/Containers/Data/Application/A3C32E7A-34F3-4C69-B037-478027F2A4AC/Library/Preferences because of 13. Couldn't write values for keys ( /google/measurement/app_instance_id ) in CFPrefsPlistSource<0x280a82760> (Domain: com.google.gmp.measurement, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): Directory needed os_unix.c:47395: (13) lstat(/private/var/mobile/Containers/Data/Application/A3C32E7A-34F3-4C69-B037-478027F2A4AC/Documents) - Permission denied os_unix.c:47395: (13) lstat(/
30
0
11k
Jun ’24
Error when downloading files with multiple background urlsession
Hi, I am trying to download multiple files in background (using multiple background urlsession). I initiate the download on click of a button and push the app to background where the download should happen. I am getting the following error: Error Domain=NSCocoaErrorDomain Code=4 “CFNetworkDownload_EYp3BT.tmp” couldn’t be moved to “Documents” because either the former doesn’t exist, or the folder containing the latter doesn’t exist. UserInfo={NSSourceFilePathErrorKey=/private/var/mobile/Containers/Data/Application/85AEEB4F-1512-4C0C-8B04-C9C73634CC49/Library/Caches/com.apple.nsurlsessiond/Downloads/com.mycompany.DownloadMultipleFilesTestApp/CFNetworkDownload_EYp3BT.tmp, NSUserStringVariant=(n Moven), NSDestinationFilePath=/var/mobile/Containers/Data/Application/85AEEB4F-1512-4C0C-8B04-C9C73634CC49/Documents/file-441966.pdf, NSFilePath=/private/var/mobile/Containers/Data/Application/85AEEB4F-1512-4C0C-8B04-C9C73634CC49/Library/Caches/com.apple.nsurlsessiond/Downloads/com.mycompany.DownloadMultipleFiles
3
0
1.3k
Jun ’24