I've built a macOS app (in Xcode 12.5) with Finder extensions, and set all the components to share a common app group, with the name correctly formatted as CD......7C.com.orexresearch.EMPSecure.group . Up till now, it's been working fine for everything I've needed it to do, with app and extension both accessing common files. But now I need to do file downloads for the FileProvider extension, and these are failing. I know part of the problem is to do with the App group -- in the main app, the download works if I initialise the Dropbox component without the app group identifier, but if I switch Dropbox to use the app group identifier, it fails repeatedly in both the main app and the extension: error 21:36:44.487814+1100 EMPFileProvider BackgroundSession <7764EC70-AC7F-46F4-91DC-547FAA23249C> an error occurred on the xpc connection to setup the background session: Error Domain=NSCocoaErrorDomain Code=4097 UserInfo={NSDebugDescription=} error 21:36:44.487893+1100 EMPFileProvider BackgroundSession &
Search results for
NSCocoaErrorDomain
1,063 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Thanks for your reply! I've tried both methods, unfortunately without success. The canonical path method did not resolve /System/Volumes/Data/Test/ to /Test/ and the string replacement results in error Domain=NSCocoaErrorDomain Code=260 Scoped bookmarks can only be created for existing files or directories
Topic:
App & System Services
SubTopic:
General
Tags:
So when I try retreive the JSON from my site I get an error with the Json problem, here it is Error Domain=NSCocoaErrorDomain Code=3840 Garbage at end. on this line of code let json = try NSJSONSerialization.JSONObjectWithData(data!, options: .MutableContainers) as! NSDictionaryit happens with both NSArray and NSDictionary
@logicat I have the same problem as you. Have you found the reason?Error Domain=NSCocoaErrorDomain Code=512 wei neng cun chu gai wen jian。 UserInfo={NSUserStringVariant=Folder}。 And @eskimo it‘s a system problem? I don't have any ideas about this.
Topic:
App & System Services
SubTopic:
Core OS
Tags:
Nothing like a public question to un-wedge the debugging muscle. Debugging this some more, I found that I had not run with DEBUG=electron-notarizer, and turning that on, shows the following output: 2021-12-23T19:09:25.522Z electron-notarize notarizing using the legacy notarization system, this will be slow An unhandled rejection has occurred inside Forge: Error: Failed to upload app to Apple's notarization servers *** Error: Notarization failed for '/var/folders/w8/hsj6918d0fsb8hxb127hqgp00000gn/T/electron-notarize-JveOtm/CloudInstance.zip'. *** Error: Unable to upload your app for notarization. Failed to get authorization for username 'jwatte@observeinc.com' and password. ( Error Domain=NSCocoaErrorDomain Code=0 Status code: 0 UserInfo={NSLocalizedDescription=Status code: 0, NSLocalizedFailureReason=The auth server returned a bad status code.} ) (-1011) { NSLocalizedDescription = Unable to upload your app for notarization.; NSLocalizedFailureReason = Failed to get authorization for username 'jwatte@
Topic:
Code Signing
SubTopic:
General
Tags:
Hi, eskimo Lightning to USB OTG Adapter is from another vendor. I tried to use CryptoTokenKit in my iOS14+ app to connect to smart card token but I can't to find out how to fix next problem: this is my simple code import CryptoTokenKit let mngr = TKSmartCardSlotManager.default According official documentation in CryptoLibSwift.entitlements I have added this com.apple.security.smartcard but I have this one when app runs 2021-12-22 xxxx CryptoLibSwift[5479:4269434] [smartcard] ctk: connecting to slot registration server ( connection to service on pid 0 named com.apple.ctkd.slot-client) failed, error Error Domain=NSCocoaErrorDomain Code=4099 The connection to service on pid 0 named com.apple.ctkd.slot-client was invalidated. UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.ctkd.slot-client was invalidated.} of course my next code doesn't work but token connected to iPhone let slotName = mngr?.slotNames[0] print(slotName:, slotName) How to fix this? Thanks.
Topic:
App & System Services
SubTopic:
Drivers
Tags:
Hi there, I just downloaded the Sample Code provided by de developer documentation in order to run a simple Client-Server app with TVML Kit for tvOS. https://developer.apple.com/documentation/tvmljs/creating_a_client-server_tvml_app I'm following the docs step by step and after running the server in the terminal. I would go and open the project in Xcode and hit the build button. It would lauch the simulator but I get the following error in the simulator: This operation couldn't be completed (TVMLKitErrorDomain error 3.) And in my console I would get this: CreateTVMLApp[82816:2094742] [Image] _TVAssetGroup failed to purge cache path: Shared Asset Group, Error Domain=NSCocoaErrorDomain Code=4 “SharedImageCache” couldn’t be removed. UserInfo={NSUserStringVariant=( Remove ), NSFilePath=/Users/aeum3893/Library/Developer/CoreSimulator/Devices/A976E6FD-6B0D-4C24-BB4C-DDA1F31B0F01/data/Containers/Data/Application/9AC60995-C9EB-4051-803B-334E1A06F9DC/Library/Caches/com.example.apple-samplecode.creating-a-basi
As I mentioned in this thread https://developer.apple.com/forums/thread/695207 I want my containing app to be active after Mac restarts. I thought about something that could work - I wrote a helper embedded app which will be added to the login items, and after a restart this helper app will open the containing app. However, after archiving the project (with developer ID, it will be distributed outside the App Store), I see the following error at the Console: Non-fatal error enumerating at , continuing: Error Domain=NSCocoaErrorDomain Code=260 The file “PlugIns” couldn’t be opened because there is no such file. UserInfo={NSURL=PlugIns/ -- file:///Applications/MyMainApp.app/Contents/Library/LoginItems/LauncherApplication.app/Contents/, NSFilePath=/Applications/MyMainApp.app/Contents/Library/LoginItems/LauncherApplication.app/Contents/PlugIns, NSUnderlyingError=0x7fc5cb02c6f0 {Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory}} I see that there's really no plugin folder, but why? Is it a
Topic:
App & System Services
SubTopic:
Drivers
Tags:
System Extensions
Developer ID
Network Extension
continued: this is the error we get fairly often (same file works other times). this is a file from the photos folder. Error Domain=NSCocoaErrorDomain Code=260 The file “IMG_2685.mp4” couldn’t be opened because there is no such file. UserInfo={NSFilePath=/var/mobile/Media/DCIM/102APPLE/IMG_2685.mp4, NSUnderlyingError=0x281af1cb0 {Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory}}
Topic:
App & System Services
SubTopic:
Core OS
Tags:
When running a cfgutil command I can verify across multiple OS versions, 10.15.7, and 11 that we get the following. % cfgutil get all objc[2358]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x7fff8ad23a30) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x10681a8c0). One of the two will be used. Which one is undefined. objc[2358]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x7fff8ad23a80) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x10681a910). One of the two will be used. Which one is undefined. cfgutil: error: Error Domain=NSCocoaErrorDomain Code=3840 Found non-key inside dict at line 112188 UserInfo={NSDebugDescription=Found non-key inside dict at line 112188, kCFPropertyListOldStyleParsingError=Error Domain=NSCocoaErrorDomain Code=3840 Malformed data byte group at line 1; invalid hex UserInfo={NSDebugDescription=Malformed dat
Is it possible to write to an App Group's Container folder or UserDefaults from an iOS Thumbnail Extension or QuickLook Extension? It doesn't work. It does work for a Widget extension. I've added the App Group to the Entitlements of each extension. For writing a file to App Group Container I get Error Domain=NSCocoaErrorDomain Code=513 Du hast nicht die Zugriffsrechte, um die Datei „quicklook 01 current.log“ im Ordner „DocumentInvestigation“ zu sichern. UserInfo={NSFilePath=/private/var/mobile/Containers/Shared/AppGroup//DocumentInvestigation/quicklook 01 current.log, NSUnderlyingError=0x28090bb10 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}} For setting App Group UserDefaults [User Defaults] Couldn't write values for keys ( ttexample ) in CFPrefsPlistSource<0x2839cc700> (Domain: , User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data
@tpian928 did you get this functioning in the end? I see no real difference between your code and mine (although obviously more code is needed to generate a live photo), but it's still not functioning on iOS 15.1. On attempting to add the paired video and photo to the library we get a non-nil assetPlaceholder but the completion handler is not called by [[PHPhotoLibrary sharedPhotoLibrary] performChanges:completionHandler:] and we see errors like this in the log: 2021-11-09 13:54:48.122501+0000 REDACTED[480:23929] [error] error: XPC: synchronousRemoteObjectProxyWithErrorHandler encountered error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service created from an endpoint was invalidated: failed to check-in, peer may have been unloaded: mach_error=10000003. UserInfo={NSDebugDescription=The connection to service created from an endpoint was invalidated: failed to check-in, peer may have been unloaded: mach_error=10000003.} 2021-11-09 13:54:48.122518+0000 REDACTED[480:23913] CoreData: XP
Topic:
Media Technologies
SubTopic:
Photos & Camera
Tags:
Hi, I'm trying to write a Quick Look extension for my iOS app. However, I'm having issues initializing AVAudioEngine in my QLPreviewingController subclass from preparePreviewOfFile. The following error messages are printed to the console after attempting to initialize AVAudioEngine, and the Quick Look Extension crashes with EXC_BAD_ACCESS. The same code works fine within the main iOS app. It also works on macOS inside a Catalyst app on the macOS Monterey RC when previewing a file in the Finder. I've also filed feedback with feedback number FB9713048. Thanks for taking a look at this. Console output: [audiocomp] AudioComponentPluginMgr.mm:545 reg server remote proxy error Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.audio.AudioComponentRegistrar was invalidated: failed at lookup with error 159 - Sandbox restriction. UserInfo={NSDebugDescription=The connection to service named com.apple.audio.AudioComponentRegistrar was invalidated: failed at lookup with error 159
Hi All I am hitting an issue when developing an app that uses the CloudKit Public DB. I am relatively new to this, and I may be doing something wrong. I have distilled the issue to use just the template app that comes when you create a new Core Data with iCloud app, and detailed the steps below. My question is basically, am I doing something stupid? If I'm not then seems likely it's a bug in Xcode and I'll just have to wait. In a nutshell, syncing to the public DB works for the first run of the app only. Stopping and restarting the app seems to throw errors and cause the mirroring delegate to fail. Step by simple step, I can recreate my issue with this: Create App with Use Core Data and Host in ICloud - interface is SWiftUI In project signings and capabilities add iCloud and Background Modes In nearly appeared iCloud section enable Cloudkit and choose or create a container In newly appeared Background Modes section enable Remote Notifications In persistence.swift add : import CloudKit Still in persistence.swi
I’m converting a MusicKit app from iOS to macOS with Catalyst but can’t get the player to work. The app works flawlessly on iOS but I get the following error in my console on macOS whenever the MPMusicPlayer tries to manipulate the queue by adding a song with a store id [SDKPlayback] Failed to obtain remoteObject: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service on pid 0 named com.apple.Music.MPMusicPlayerApplicationControllerInternal was invalidated. UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.Music.MPMusicPlayerApplicationControllerInternal was invalidated.} Both the player, setQueue and play methods are according to the documentation supported on Mac Catalyst 13+: https://developer.apple.com/documentation/mediaplayer/mpmusicplayercontroller https://developer.apple.com/documentation/mediaplayer/mpmusicplayercontroller/1624253-setqueue https://developer.apple.com/documentation/mediaplayer/mpmusicplayercontroller/2582424-preparetoplay https://dev