Error Domain=NSCocoaErrorDomain Code=257 The file “ReceiptScans” couldn’t be opened because you don’t have permission to view it. UserInfo={NSURL=file:///Users//Documents/ReceiptScans, NSFilePath=/Users//Documents/ReceiptScans, NSUnderlyingError=0x60000178e280 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}} I turned off sandboxing to make this work in Big Sur with Xcode 13.1 beta, but when I upgraded to Monterey and Xcode 13.1 I started getting the error again. let files: [URL] = try FileManager.default.contentsOfDirectory(at: path, includingPropertiesForKeys: nil, options: [FileManager.DirectoryEnumerationOptions.skipsHiddenFiles]) I checked and sandboxing is still turned off. I cleaned the build directory and recompiled. Can't make it work. Have the permissions been changed? Have some API's been changed? Because sandboxing is turned off I don't think I should have to use any special entitlements.
Search results for
NSCocoaErrorDomain
1,063 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
*can we notarize the .dylib file ? xcrun stapler staple -v libabc.dylib _when I stapling the ticket, I am getting following error _ Downloaded ticket has been stored at file:///var/folders/fl/b7prmh551y33l4wlsvt6fdtdtdcyv2/T/29514381-948a-4aef-af40-7e96663007d2.ticket. Could not remove existing ticket from libabc.dylib/Contents/CodeResources -- file://user/hbhartiabc/ because an error occurred. Error Domain=NSCocoaErrorDomain Code=512 “CodeResources” couldn’t be removed. UserInfo={NSUserStringVariant=( Remove ), NSFilePath=/Users/hbharti/workspace/dlpsdk/libabc.dylib/Contents/CodeResources, NSUnderlyingError=0x7f89ccc182f0 {Error Domain=NSPOSIXErrorDomain Code=20 Not a directory}}
I'm having difficult saving and, more importantly, retrieving URL bookmark data. I'm following the docs here https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/AccessingFilesandDirectories/AccessingFilesandDirectories.html#//apple_ref/doc/uid/TP40010672-CH3-SW10 The resulting file written to my app's sandbox is a MacOS Alias file. which is what I expect as per the docs : If you write the persistent bookmark data to disk using the writeBookmarkData:toURL:options:error: method of NSURL, what the system creates on disk is an alias file. The result when performing my get call is always Error Domain=NSCocoaErrorDomain Code=259 The file couldn’t be opened because it isn’t in the correct format. which leads me to believe I'm not initializing my Data object correctly before calling resolvingBookmarkData. I'm also lead to believe my Data initialization is the problem as I use the same code but instead of writing data to disk with try URL.writeBookmar
Morning Quinn, Are you building your Info.plist and .entitlements file with Apple tools? Modern systems apply additional constraints on security-sensitive XML files. See Ensure Properly Formatted Entitlements for more on this. I am not building either the info.plist or the entitlements file using Apple's tools. I am using [NSPropertyListSerialization dataWithPropertyList:format:options:error:] to create a NSData object of format kCFPropertyListXMLFormat_v1_0 which is then written to the file using a stream. plutil -lint ~/mainEntitlementsAppStore.entitlements ~/mainEntitlementsAppStore.entitlements: OK codesign -d --entitlements :- ~/Aqua Swatch.app Executable= ~/Aqua Swatch.app/Contents/MacOS/Aqua Swatch com.apple.application-identifier QXAFMEPH6X.com.ohanaware.aquaSwatch com.apple.developer.team-identifier QXAFMEPH6X com.apple.security.app-sandbox com.apple.security.network.client keychain-access-groups QXAFMEPH6X.com.ohanaware.aquaSwatch If the mainEntitlements only consists of com.apple.security
Topic:
Code Signing
SubTopic:
Entitlements
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
*** Error: Notarization failed for 'app.zip'. *** Error: Unable to upload your app for notarization. Failed to get authorization for username xxxx 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 'xxxx' and password. (n Error Domain=NSCocoaErrorDomain Code=0 Status code: 0 UserInfo={NSLocalizedDescription=Status code: 0, NSLocalizedFailureReason=The auth server returned a bad status code.}n); }
We use to be able to run the xcrun altool all the time to upload apps to Test flight, but now it has been failing consistently for the last few days. For example: xcrun altool --list-providers -u myemail@email.com then I add my password and get the following error. *** Error: Failed to list providers. *** Error: Failed to list providers. Failed to get authorization for username 'myemail@email.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) I have tried to run it on different networks and even had others on my team try and they get the same error. This was working for a long time (even a few times with Xcode 13) and now it just stopped
I’ve faced the following issue, and shortly the notification picture does not show up with iOS 15 under some conditions. It seems that during INImage processing for INSendMessageIntent, it tries to generate an internal URL with intents-remote-image-proxy if the given source is not a remote URL. But proper URL doesn’t seem to be generated in some cases and the expected image doesn’t show up. Here the weirdest part for me is that the problem only happens when I release my app (for example to the TestFlight), and with the XCode debug build my implementation works perfectly. [This is the error trace when I release the app] default 16:29:26.149259+0900 NotificationExt Persisting INImage for Intent Type 'INSendMessageIntent': sender image _uri: (null) default 16:29:26.149777+0900 NotificationExt Persisting INImage for Intent Type 'INSendMessageIntent': url created from image's _identifier default 16:29:26.149823+0900 NotificationExt Persisting INImage for Intent Type 'INSendMessageIntent': contentURL scheme does no
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
Here is a simple app to demonstrate problem: import SwiftUI import AVFoundation struct ContentView: View { var synthVM = SpeakerViewModel() var body: some View { VStack { Text(Hello, world!) .padding() HStack { Button(Speak) { if self.synthVM.speaker.isPaused { self.synthVM.speaker.continueSpeaking() } else { self.synthVM.speak(text: Привет на корабле! Кто это пришел к нам, чтобы посмотреть на это произведение?) } } Button(Pause) { if self.synthVM.speaker.isSpeaking { self.synthVM.speaker.pauseSpeaking(at: .word) } } Button(Stop) { self.synthVM.speaker.stopSpeaking(at: .word) } } } } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } } class SpeakerViewModel: NSObject { var speaker = AVSpeechSynthesizer() override init() { super.init() self.speaker.delegate = self } func speak(text: String) { let utterance = AVSpeechUtterance(string: text) utterance.voice = AVSpeechSynthesisVoice(language: ru) speaker.speak(utterance) } } extension SpeakerViewModel: AVSpeechSynth
Hi, I am trying to use UIDocumentPickerViewController to select a folder in a 3rd party file provider as a default save location. The goal would be to have that folder be the automatic location to save to whenever the app needs to write a file out to disk, instead of the app's Documents directory. When I present the UIDocumentPickerViewController for selecting folders, however, every 3rd party file provider is grayed out. Only On this Device and iCloud Drive are available. let controller = UIDocumentPickerViewController(documentTypes: [kUTTypeFolder as String], in: .open) controller.delegate = self controller.allowsMultipleSelection = false present(controller, animated: true, completion: nil) The documentation states: With iOS 13, users can select a directory from any of the available file providers using a UIDocumentPickerViewController. It seems strange that this is specifically called out in the docs, but it doesn't work at all. One hypothesis that I have is that there is some confusion in the system betwe
Hello. I'm working on application for managing accessories our partner manufactures. I'm developing PoC of WAC provisioning and I chose HomeKit for that. I'm trying to add our accessory using addAndSetuppAccessories with payload(url) I took from accessory QR code. But is doesn't work. On some devices calling method produces nothing in logs, on some I receive log: [default] Failed to deserialize object of classes: {( HMAccessorySetupCompletedInfo )}, from data {length = 135, bytes = 0x62706c69 73743030 d4010203 04050607 ... 00000000 0000005b }, with error: Error Domain=NSCocoaErrorDomain Code=4865 requested key: 'root' UserInfo={NSDebugDescription=requested key: 'root'} Apart of logs my view controller appearance changes as like some modal controller is going to be presented over it. But never happens. I found that I should add com.apple.developer.homekit.allow-setup-payload entitle ment to the identifier. But Xcode 12.x doesn't see it. Please help. Thanks in advance.
My app says it has built successfully but shows the error No bundle URL Present with the following in the log: [Client] Updating selectors after delegate addition failed with: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service with pid 90 named com.apple.commcenter.coretelephony.xpc was invalidated from this process. UserInfo={NSDebugDescription=The connection to service with pid 90 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.} Using Xcode 13, and React Native 65.1 on and iOS 15 Iphone 12. Can anyone help? Error log in full: 2021-10-02 15:22:54.660199+0100 myracnative[556:74795] [Client] Updating selectors after delegate addition failed with: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service with pid 90 named com.apple.commcenter.coretelephony.xpc was invalidated from this process. UserInfo={NSDebugDescription=The connection to service with pid 90 named com.apple.commcenter.coretelephony.xpc was invalidated from this proce
my app is newsstand app. it is success download issue in my app with iOS14 & iOS15 simulate. when i try on real device, it fail to download. log Error Domain=NSCocoaErrorDomain Code=513 “1318303744724624100” couldn’t be moved because you don’t have permission to access “Caches”. UserInfo={NSSourceFilePathErrorKey=/var/mobile/Media/Downloads/7803184277104936561/1318303744724624100, NSUserStringVariant=( Move ), NSDestinationFilePath=/private/var/mobile/Containers/Data/Application/1C6FE6AF-1670-48ED-BE04-2806C8AECC65/Library/Caches/bgdl-4119-6c4a7ac1c9c0c671.xzip, NSFilePath=/var/mobile/Media/Downloads/7803184277104936561/1318303744724624100, NSUnderlyingError=0x282aa3d80 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}} i have set Privacy - Downloads Folder Usage Description in info.plist please help
Hello. I'm working on application for managing accessories our partner manufactures. I'm developing PoC of WAC provisioning and I chose HomeKit for that. I'm trying to add our accessory using addAndSetuppAccessories with payload(url) I took from accessory QR code. But is doesn't work. On some devices calling method produces nothing in logs, on some I receive log: [default] Failed to deserialize object of classes: {( HMAccessorySetupCompletedInfo )}, from data {length = 135, bytes = 0x62706c69 73743030 d4010203 04050607 ... 00000000 0000005b }, with error: Error Domain=NSCocoaErrorDomain Code=4865 requested key: 'root' UserInfo={NSDebugDescription=requested key: 'root'} Apart of logs my view controller appearance changes as like some modal controller is going to be presented over it. But never happens. There is no information on Apple Developer web site or stackoverflow or any other resource. How can I resolve it? As a developer of iOS app should I have MFi license? Should I include some specific enti