When I upgraded to Xcdoe 12 and build the previous app project, And then I got an error when running the simulator, it seemed to be a permission problem. I also went to File> Get Info for what the error said, but no exception was found. Any ideas? ======================== The following is the error content: Details The file “xxx” couldn’t be opened because you don’t have permission to view it. Domain: NSCocoaErrorDomain Code: 257 Failure Reason: You don’t have permission. Recovery Suggestion: To view or change permissions, select the item in the Finder and choose File > Get Info. User Info: { NSFilePath = /Users/momo/Library/Developer/Xcode/DerivedData/xxx-dxvphugocaepzfaicmcbykxrlgrt/Build/Products/Debug-iphonesimulator/xxx.app; }- The operation couldn’t be completed. Permission denied Domain: NSPOSIXErrorDomain Code: 13 Failure Reason: Permission denied- System Information macOS Version 10.15.6 (Build 19G2021) Xcode 12.0.1 (17220)
Search results for
NSCocoaErrorDomain
1,063 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I upgraded our legacy app to use Blackberry Dynamics IOS SDK 5.0.0.63 to be compatible with Xcode 10.1. Even without calling on Blackberry APIs (by not using GD), I would get this error - The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.The app would work with Xcode 9.4 and Blackberry Dynamics IOS SDK 3.0.2.51. Good Dynamics (GD) was purchased by Blackberry.Is it because I have not completely upgraded the GD code that I am getting the telephony error - the app needs to have internet access for a web service call before showing a login screen and it is failing to resolve - Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated. UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.Thank you.
Hi All, I have the following code in swift to read and print a file's content: import Foundation let a = try String(contentsOfFile: /Users/humza/Desktop/test.txt) print(a) I am able to run the code in an Xcode playground. However, when I make a command line project in Xcode 11.4.1, I get the following error when running the project: Fatal error: Error raised at top level: Error Domain=NSCocoaErrorDomain Code=257 The file “test.txt” couldn’t be opened because you don’t have permission to view it. Note the build is successful and I can run the executable from terminal. What is preventing this from running within Xcode? I do not have a sandboxing capability added to my project. I have tried clearing the project's build folder. I have also given Xcode full disk access. I have also given my file full 777 permissions to help debug.
I need to send a mail(s) in the background for my app. What is the best way of doing this? I have tried Mailgun, but hav not got it working. Any tips on what the best/easiest way to send mail in background? Here´s the code I was trying for Mailgun: let parameters = [ from: my@mail.com, to: you@mail.com, subject: Test, text: Testing] let header : HTTPHeaders = [ Authorization: MY-KEY, Content-Type : application/x-www-form-urlencoded] let url = MY-URL AF.request(url, method: .post, parameters: parameters, encoding: URLEncoding.default, headers: header) .responseJSON { response in print(Response: (response)) }This throws the following error:failure(Alamofire.AFError.responseSerializationFailed(reason: Alamofire.AFError.ResponseSerializationFailureReason.jsonSerializationFailed(error: Error Domain=NSCocoaErrorDomain Code=3840 Invalid value around character 0. UserInfo={NSDebugDescription=Invalid value around character 0.})))
After the release of StoreKit 2.0, the in-app purchase failure rate increased by 63.19%, with the majority of errors being StoreKitError.unknown. When encountering this error, many users repeatedly attempt to make a purchase, but the outcome remains unchanged, resulting in the same unknown error. In some cases, users who wait approximately 2 minutes before retrying the purchase may either succeed or encounter the following error: “StoreKit.StoreKitError.systemError(Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.storekitd”)”. This issue has directly impacted our app's purchasing flow. Because our app only displays the promotional purchase offer once, these issues have significantly reduced the number of users successfully completing the offer. As a result, the conversion rate for this promotion has dropped well below expectations, negatively impacting our business metrics.
My coworker has just installed the Xcode 7 beta onto his OS X 10.10 machine.Whenever he tries to build or execute a playground, he gets a popup with the message The operation couldn’t be completed. (Cocoa error -102.)He also gets the following message in Console:8/4/15 1:23:19.293 PM Xcode[813]: [MT] IDEPlaygroundDocument: Error encountered running playground: Error Domain=NSCocoaErrorDomain Code=-102 The operation couldn’t be completed. (Cocoa error -102.) UserInfo=0x7fdcee925780 {Error=LaunchServices: RegistrationFailed}Can someone please help us figure out what might be going wrong here? We've tried all the obvious things (restarting, reinstalling Xcode, etc.). The issue occurs only with Xcode 7 (latest) beta (i.e. issue does not reproduce in Xcode 6.x)
Hi there, Had no issues with Core Data and Cloud Kit syncing. Then, when I updated my macOS to 13.3, I am getting the following error from cloud kit: reason=Can't find or automatically infer mapping model for migration, NSUnderlyingError=0x60000367b330 {Error Domain=NSCocoaErrorDomain Code=134190 (null) UserInfo={entity=Item, property=image, Reason=Unable to use inferred mapping to move external reference into store.}}} The reason I think it's due to the macOS update is because my cloud kit initialization and syncing has no trouble on my phone simulator or physical devices. Also, I didn't change my model in any significant way, and checking out old versions of my code lead to the same error. Has anyone else experienced issues with Core Data migration on macOS 13.3? Or can anyone explain why I might see this issue on macOS specifically?
Software Update just hangs on No keys matching () available for download if we run it as root. neither returning success nor failure on MacOS Monterey (OS Version 12.0.1) SUOSUNotificationManagerController having XPC issue saying No Such Process. faced this issue in normal XPC connection also. root process trying to connect user process throws the same error when it will be fixed. is there any work around for root to install via software update log trace: ues-mac-testl softwareupdate[2710]: SUOSUNotificationManagerController: Error connecting to notification manager service to set authorization: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.SoftwareUpdateNotificationManagerService was invalidated: failed at lookup with error 3 - No such process. UserInfo={NSDebugDescription=The connection to service named com.apple.SoftwareUpdateNotificationManagerService was invalidated: failed at lookup with error 3 - No such process.}
I have my macOS app, which I'm distributing outside the MAC App Store through Notarizing the App. When my end-user unzipped my App (which they downloaded from a shared URL path) and opened it, It crashed after the first time opening (by clicking on the Gatekeeper check popup: Chrome downloaded this file today at 11:10 AM. Apple checked it for malicious software and none was detected. ) In my macOS app (distributing outside the MAC App Store through Notarizing the app), though I removed AppSandbox capability, I am still not able to read/write to the Resource folder. Error ESPlus-2023-06-28-173050_ips.txt Error Domain=NSCocoaErrorDomain Code=513 You don’t have permission to save the file “SupportTextFiles” in the folder “Resources”. UserInfo={NSFilePath=/x.app/Contents/Resources/SupportTextFiles, NSUnderlyingError=0x6000030e3c00 {Error Domain=NSPOSIXErrorDomain Code=1 Operation not permitted}}
I have an iOS app that is building on both xcode8 (Sierra) and on xcode9 (High Sierra).When I'm doing exportArchive it passes on xcode8 but fails on xcode9.I have the provisioningProfiles section in my plist, and the failure in on correct format. <?xml version=1.0 encoding=UTF-8?> <!DOCTYPE plist PUBLIC -//Apple//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd> <plist version=1.0> <dict> <key>method</key> <string>enterprise</string> <key>teamID</key> <string><Our teamID></string> <key>signingStyle</key> <string>manual</string> <key>signingCertificate</key> <string><Our signingCertificate></string> <key>provisioningProfiles</key> <dict> <key><Our bundleID></key> <string><App Name></string> </dict> </dict> </plist>I have another app that I'm building and everything is fine. Both xcode8 and xcod
This is the altool command -> FAILURE xcrun altool --verbose --list-providers -u USERNAME --password APPLICATION_PASS 2025-01-28 11:54:56.589 Verbose logging enabled. 2025-01-28 11:54:56.591 Will look for transporter at executable bundle relative path: /Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/itms/bin/iTMSTransporter 2025-01-28 11:54:56.591 Looking for Transporter at path: /Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/itms/bin/iTMSTransporter 2025-01-28 11:54:56.591 Looking for Transporter at path: /Applications/Xcode.app/Contents/Developer/usr/bin/../SharedFrameworks/ContentDeliveryServices.framework/itms/bin/iTMSTransporter 2025-01-28 11:54:56.591 Looking for Transporter at path: /Applications/Xcode.app/Contents/Developer/usr/bin/../itms/bin/iTMSTransporter 2025-01-28 11:54:56.591 Looking for Transporter at path: /Applications/Transporter.app/Contents/itms/bin/iTMSTransporter 2025-01-28 11:54:56.591 Looking for Transporter a
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
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'm trying to play an audio file in my SwiftUI app and first through something was wrong with the URL or file. But even with this URL, it still gives me the following error: Error Domain=NSCocoaErrorDomain Code=262 The file couldn’t be opened because the specified URL type isn’t supported. What am I missing. This is in a playground on Xcode 11.6 import UIKit import AVKit ifttlet url = URL(string:https://audio-ssl.itunes.apple.com/apple-assets-us-std-000001/AudioPreview18/v4/9c/db/54/9cdb54b3-5c52-3063-b1ad-abe42955edb5/mzaf_520282131402737225.plus.aac.p.m4a) { ttvar audioPlayer:AVAudioPlayer? ttdo { ttttlet isReachable = try url.checkResourceIsReachable() ttttprint(isReachable) ttttaudioPlayer = try AVAudioPlayer(contentsOf: url) tt} ttcatch tt{ ttttprint(error) ttttaudioPlayer = nil tt} }
Hi team, I am working with CommandPlugin and with the help of command plugin I can able to create files inside my Package directory but I want to create a file in my project directory but whenever I try to create new file outside Package directory it is saying like there is no permission to create a file in this folder. Is this possible to create new file inside project directory using CommandPlugin ? Can you please help me for this ? I am struggling on this more than a week. Eagerly waiting for you kind support. Thank you so much. Scenario, 1.Able to Crete new file inside Package directory, 2.Facing permission issues - while creating new files inside project directory with the help of CommandPlugin Issue: Error Domain=NSCocoaErrorDomain Code=513 You don’t have permission to save the file file.txt in the folder ProjectFolder
Topic:
Programming Languages
SubTopic:
Swift
Tags:
Swift
Swift Packages
wwdc2022-110359
wwdc2022-110401
When I have a TextField or TextEditor, tapping into it produces these two console entries about 18 times each: CHHapticPattern.mm:487 +[CHHapticPattern patternForKey:error:]: Failed to read pattern library data: Error Domain=NSCocoaErrorDomain Code=260 The file “hapticpatternlibrary.plist” couldn’t be opened because there is no such file. UserInfo={NSFilePath=/Library/Audio/Tunings/Generic/Haptics/Library/hapticpatternlibrary.plist, NSURL=file:///Library/Audio/Tunings/Generic/Haptics/Library/hapticpatternlibrary.plist, NSUnderlyingError=0x600000ca1b30 {Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory}} <_UIKBFeedbackGenerator: 0x600003505290>: Error creating CHHapticPattern: Error Domain=NSCocoaErrorDomain Code=260 The file “hapticpatternlibrary.plist” couldn’t be opened because there is no such file. UserInfo={NSFilePath=/Library/Audio/Tunings/Generic/Haptics/Library/hapticpatternlibrary.plist, NSURL=file:///Library/Audio/Tunings/Generic/Haptics/Library/hapticpatternli