Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

XCUITest: xcodebuild test failed with error: ".. com.apple.testmanagerd.control was invalidated"
Hey there, the following error message appears when running xcodebuild test command on a simulator (through ssh): IDETestOperationsObserverDebug: Failure collecting logarchive: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.testmanagerd.control was invalidated: failed at lookup with error 3 - No such process. UserInfo={NSDebugDescription=The connection to service named com.apple.testmanagerd.control was invalidated: failed at lookup with error 3 - No such process.} 2023-03-29 02:09:10.346 xcodebuild[86494:1840011] IDETestOperationsObserverDebug: Failure collecting logarchive: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.testmanagerd.control was invalidated: failed at lookup with error 3 - No such process. UserInfo={NSDebugDescription=The connection to service named com.apple.testmanagerd.control was invalidated: failed at lookup with error 3 - No such process.} 2023-03-29 02:09:15.996 xcodebuild[86494:1839901] [MT] I
1
0
2.4k
Apr ’23
What is the files and folders permission?
Hi there, I am currently making an app and trying to download content to a user-selected download directory (like how safari does it). However, whenever I set the download directory outside the App's documents, I get the following error when running my code on a real iOS device. downloadedFileMoveFailed(error: Error Domain=NSCocoaErrorDomain Code=513 “CFNetworkDownload_dlIcno.tmp” couldn’t be moved because you don’t have permission to access “Downloads”. UserInfo={NSSourceFilePathErrorKey=/private/var/mobile/Containers/Data/Application/A24D885A-1306-4CE4-9B15-952AF92B7E6C/tmp/CFNetworkDownload_dlIcno.tmp, NSUserStringVariant=(Move), NSDestinationFilePath=/private/var/mobile/Containers/Shared/AppGroup/E6303CBC-62A3-4206-9C84-E37041894DEC/File Provider Storage/Downloads/100MB.bin, NSFilePath=/private/var/mobile/Containers/Data/Application/A24D885A-1306-4CE4-9B15-952AF92B7E6C/tmp/CFNetworkDownload_dlIcno.tmp, NSUnderlyingError=0x281d045d0 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}}
4
0
12k
Oct ’23
Why wont my decoder parse .json files
launchdata.json: [ { name: Smartcard, imageName: Smartcard, description: A all new way to buy and sell stuff featuring RFID and NFC for touchless transactions and with local server you can pay with your phone., department: Ticki Finance, productid: 1737484, id: 1, creator: The Ticki Team }, { name: Ink pad, imageName: Inkpad, description: A quick and easy way to take fingerprints and stamp stamps:), And with a quick water activation taking only 15 seconds you can setup in no time. Also, refilling the ink chamber is super easy, all you have to do is put ink in the middle hole., department: Ticki Design, productid: 7338388, id: 2, creator: The Ticki Team }, { name: Wallet, imageName: Wallet, description: Ever had issues with your credit cards falling out of your pocket/wallet? Well this fixes any issues. Introducing Ticki Wallet. , department: Ticki Finance, productid: 2444495, id: 3, creator: The Ticki Team }, { name: Pencil Case, imageName: PencilCase, description: I always lose my my pencils. How about you?
4
0
713
Apr ’23
Album Artwork is not loading when music is playing
Hi Apple Engineers, In my app Caset, the album artwork is no longer displaying correctly, instead the console is printing with error: [Artwork] [MPArtwork] Failed to create directory at 'file:///var/mobile/Media/iTunes_Control/iTunes/Artwork/Caches/96x96/61/' with error: Error Domain=NSCocoaErrorDomain Code=513 You don’t have permission to save the file “61” in the folder “96x96”. UserInfo={NSFilePath=/var/mobile/Media/iTunes_Control/iTunes/Artwork/Caches/96x96/61, NSUnderlyingError=0x280552dc0 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}} Here is the code I am using to display the album artwork of the current item: @ObservedObject private var playerQueue = ApplicationMusicPlayer.shared.queue //In the BODY switch playerQueue.currentEntry?.item { case .song(let song): if let artwork = song.artwork { ArtworkImage(artwork, width: 40, height: 40) } case .musicVideo(let video): if let artwork = video.artwork { ArtworkImage(artwork, width: 70, height: 40) } case nil: EmptyView() } Relat
3
0
1.3k
Jun ’22
I am creating keyboard with UIInputViewController and has this debug output. Anyone knows how to silent this.
2023-03-15 16:49:27.504266-0400 Flip[32191:1879406] [WindowServer] Failed to register for CADisplay change notifications: 0x9 2023-03-15 16:49:27.505090-0400 Flip[32191:1879406] [WindowServer] Failed to register for CADisplay power notifications: 0x9 2023-03-15 16:49:27.549439-0400 Flip[32191:1879406] [Common] BKSAccelerometer unable to create notifyd token for device orientation 2023-03-15 16:49:27.549252-0400 Flip[32191:1879672] [default] Failed to register for server availability: 9 2023-03-15 16:49:27.736276-0400 Flip[32191:1879406] [Default] Unable to register for test daemon availability notification. 2023-03-15 16:49:27.737912-0400 Flip[32191:1879406] [Default] Unable to register token for checking test daemon availability. 2023-03-15 16:49:27.739657-0400 Flip[32191:1879406] [Default] Unable to register for test daemon availability notification. 2023-03-15 16:49:27.741339-0400 Flip[32191:1879406] [Default] Unable to register token for checking test daemon availability. 2023-03-15 16:49:27.743108-0400 F
3
0
658
Mar ’23
In-app purchase fails on Apple Silicon Mac
I'm testing IPhone and iPad Apps on Apple Silicon Macs. When I purchase In-app product in the app on Apple Silicon Mac, the payment receipt is not created, so the purchase fails. In console log, it says it doesn't have permission to write to the file. storekitagent [6913DE38_SK1] Error writing receipt (5095 bytes) to file:///Users/XXXX/Library/Containers/90FE2A60-9FDF-4ECF-848F-CE3D396322CA/Data/StoreKit/sandboxReceipt: Error Domain=NSCocoaErrorDomain Code=513 You don’t have permission to save the file “sandboxReceipt” in the folder “StoreKit” UserInfo={NSFilePath=/Users/XXXX/Library/Containers/90FE2A60-9FDF-4ECF-848F-CE3D396322CA/Data/StoreKit/sandboxReceipt, NSUnderlyingError=0x14202c920 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}} The App is using Original API for In-App Purchase written in Objective-C. When I purchase in-app product, the app calls SKPaymentQueue::addPayment. And then it gets paymentQueue:updatedTransactions callback with SKPaymentTransactionStatePurchased. Th
7
0
1.5k
Mar ’23
Reply to In-app purchase fails on Apple Silicon Mac
I'm still facing the issue (despite earlier comment that it's fixed). macOS is up-to-date (macOS 13.1, 22C65) no system updates are available. I cannot refresh the receipt either. I'm always returned the old receipt from just before I upgraded to Ventura. : Finished refreshing receipt with error: Error Domain=ASDErrorDomain Code=500 Failed to write receipt to URL: file:///Users/jeko/Library/Containers/447F8668-DE02-4E43-8350-6AEED8A3408E/Data/StoreKit/sandboxReceipt UserInfo={NSDebugDescription=Failed to write receipt to URL: file:///Users/jeko/Library/Containers/447F8668-DE02-4E43-8350-6AEED8A3408E/Data/StoreKit/sandboxReceipt, NSUnderlyingError=0x6000026f2490 {Error Domain=NSCocoaErrorDomain Code=513 You don’t have permission to save the file “sandboxReceipt” in the folder “StoreKit”. UserInfo={NSFilePath=/Users/jeko/Library/Containers/447F8668-DE02-4E43-8350-6AEED8A3408E/Data/StoreKit/sandboxReceipt, NSUnderlyingError=0x6000026f3720 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}}
Topic: App & System Services SubTopic: StoreKit Tags:
Mar ’23
Reply to CoreData stack init is freeze
I decided to apply my previous attempts on the original WAL file. First, the checkpoint forcing via journal_mode=DELETE doesn't work for the original WAL file. The CoreData is freeze and file is not removed at the end of session. Second, I moved (didn't copy) original file under different name myDB2.sqlite and the CoreData stack init is freeze again. Interesting in my previous tests that the copied file with the same name was opened but with periodic errors. Third, If the original file is moved and copied to the path with initial name then the CoreData stack initialized successfully and opened the DB. The addPersistentStoreWithType:configuration:URL:options:error: func started to return the error: ... CoreData: error: sourceURL : file:///var/mobile/Containers/Data/Application/08D158CE-7216-4271-A3F2-AF3E4E5DA772/Documents/myDB.sqlite CoreData: error: reason : Cannot migrate store in-place: error during SQL execution : database or disk is full CoreData: error: destinationURL : file:///var/mobile/Containers/Dat
Mar ’23
Cannot create instance of NSSavePanel
I've recently migrated my MacOS app to deployment target 12.0 and when I try to create an instance of NSSavePanel, like this: let panel = NSSavePanel() I get the following error: 2023-02-07 18:11:49.362237+0100 Acsy[31010:8797816] [miscellany] CLIENT ERROR: remote view delegate NSSavePanel lacks method which can react to the details of Error Domain=NSCocoaErrorDomain Code=4097 connection to service created from an endpoint UserInfo={NSDebugDescription=connection to service created from an endpoint} 2023-02-07 18:11:49.362584+0100 Acsy[31010:8797816] [OpenSavePanels] Unable to display save panel (unrecognized error: Error Domain=NSCocoaErrorDomain Code=4097 connection to service created from an endpoint UserInfo={NSDebugDescription=connection to service created from an endpoint}) Any ideas what this means? This used to work MacOS 11.5. I'm on Xcode 14.1 / Ventura 13.0 entitlements: com.apple.security.files.user-selected.read-write is set to true
6
0
1.4k
Mar ’23
Cannot use PHPickerViewController to load mpeg-4 video
I'm trying to use PHPickerViewController to load video from user's photo library. Here is my code: func videoSelectorAskForSelectFromAlbum(_ selector: VideoSelector) { var config = PHPickerConfiguration(photoLibrary: PHPhotoLibrary.shared()) config.selectionLimit = 1 config.filter = .videos config.preferredAssetRepresentationMode = .compatible let picker = PHPickerViewController(configuration: config) picker.delegate = self present(picker, animated: true) } func picker(_ picker: PHPickerViewController, didFinishPicking results: [PHPickerResult]) { guard results.count == 1 else { picker.dismiss(animated: true) return } let provider = results[0].itemProvider guard let identifier = provider.registeredTypeIdentifiers.first, provider.hasItemConformingToTypeIdentifier(identifier) else { picker.dismiss(animated: true) return } picker.dismiss(animated: true) { [self] in // provider.loadFileRepresentation cause error videoLoadingProgress = provider.loadFileRepresentation(forTypeIdentifier: identifier) { url, err in pr
2
0
1.8k
Mar ’23
An error occurred during persistent store migration (CoreData)
I added new model version and select it like default one. Then I added new attribute to existing entity in new model version. To test migration I installed previous version of app and add filled with all data in app. Then I install new changes and it work on simulator. If I move that build to TestFlight and test via real device then I get this error: Fatal error: ###persistentContainer: Failed to load persistent stores:Error Domain=NSCocoaErrorDomain Code=134110 An error occurred during persistent store migration. UserInfo={sourceURL=file:///private/var/mobile/Containers/Shared/AppGroup/DBB80C75-1B07-4318-8BA3-3F4FFC14FBD7/AppName.sqlite, reason=Cannot migrate store in-place: near null: syntax error, destinationURL=file:///private/var/mobile/Containers/Shared/AppGroup/DBB80C75-1B07-4318-8BA3-3F4FFC14FBD7/AppName.sqlite, NSUnderlyingError=0x281958180 {Error Domain=NSCocoaErrorDomain Code=134110 An error occurred during persistent store migration. UserInfo={reason=near null: syntax error, NSSQ
1
0
1.9k
Feb ’23
Error -24169 returned by authserver when using altool
Hi, I am trying to run xcrun altool --list-providers -u my@email.com -p my-application-specific-password My console response looks as follows with a -24169 error when trying to authenticate. I have used this application password in the past with fastlane, but I do not seem to be able to authenticate today. 2023-02-17 10:09:28.753 Initializing bundle from: /Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/Versions/A/Frameworks/AppStoreService.framework 2023-02-17 10:09:28.762 Will look for transporter at executable bundle relative path: /Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/itms/bin/iTMSTransporter 2023-02-17 10:09:28.762 Looking for Transporter at path: /Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/itms/bin/iTMSTransporter 2023-02-17 10:09:28.762 Looking for Transporter at path: /Applications/Xcode.app/Contents/Developer/usr/bin/../SharedFrameworks/ContentDeliveryServices.framework/itms/bin/iT
2
0
1.1k
Feb ’23
Reply to nsurlsessiond disconnects on queuing several upload tasks
I am facing same problem. I got below error when trying to upload multiple images using background session configuration. Any help is appreciated. I am using uploadTask(with: request, fromFile: URL(fileURLWithPath: path)) for uploading images to server. These all things work fine if i upload 10 or less images at a time. But if i try to upload more tuan 10 then i got below errors. BackgroundSession <17817097-9127-45A7-B9C2-17145F5FD17F> error requesting a NSURLSessionUploadTask from background transfer daemon: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service with pid 65435 named com.apple.nsurlsessiond was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid. UserInfo={NSDebugDescription=The connection to service with pid 65435 named com.apple.nsurlsessiond was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid.
Topic: App & System Services SubTopic: General Tags:
Feb ’23
Reply to Cannot create instance of NSSavePanel
I'm fairly certain it's related to entitlements and possible App Groups. I'm now getting : [OpenSavePanels] Unable to display save panel (unrecognized error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service created from an endpoint was invalidated from this process. UserInfo={NSDebugDescription=The connection to service created from an endpoint was invalidated from this process.})
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’23
iOS-App-On-Mac app unable to restore purchases or IAP receipt due to file permission issue
Hello! I found that on the latest macOS 13 Ventura, my iOS app (iOS-App-On-Mac-With-M1/M2-Chip) is not able to restore IAP purchases or refresh receipt anymore. When using SKReceiptRefreshRequest() to refresh the IAP receipt, I got following error. Error Domain=SKErrorDomain Code=0 An unknown error occurred UserInfo={ NSLocalizedDescription=An unknown error occurred, NSUnderlyingError=0x1330c1840 { Error Domain=ASDErrorDomain Code=500 (null) UserInfo={ NSUnderlyingError=0x13338ebf0 { Error Domain=NSCocoaErrorDomain Code=513 You don’t have permission to save the file “receipt” in the folder “StoreKit”. UserInfo={ NSFilePath=/Users/***/Library/Containers/EC7E888F-3388-418A-92C5-9CBDDC4A1846/Data/StoreKit/receipt, NSUnderlyingError=0x13333a790 { Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted } } } } } } It seems that the receipt cannot be refreshed due to a file permission issue. Also, the SKPaymentQueue.default().restoreCompletedTransactions() function does not get the purchases properl
6
0
2.1k
Feb ’23