Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Xcode 9 Beta 3 crashes trying to open
Just re-downloaded. Running on the Desktop - simply crashes when trying to open.Process: Xcode [26076]Path: /Users/USER/Desktop/Xcode-beta.app/Contents/MacOS/XcodeIdentifier: com.apple.dt.XcodeVersion: 9.0 (13199.7)Build Info: IDEFrameworks-13199007000000000~18Code Type: X86-64 (Native)Parent Process: ??? [1]Responsible: Xcode [26076]User ID: 501Date/Time: 2017-07-14 14:24:52.077 -0400OS Version: Mac OS X 10.12.5 (16F73)Report Version: 12Anonymous UUID: 689C28E5-9F31-365C-DC18-61B967290E8CSleep/Wake UUID: 7309525C-E105-4CB6-B2F4-D2CA9193F6C1Time Awake Since Boot: 43000 secondsTime Since Wake: 11000 secondsSystem Integrity Protection: enabledCrashed Thread: 0 Dispatch queue: com.apple.main-threadException Type: EXC_CRASH (SIGABRT)Exception Codes: 0x0000000000000000, 0x0000000000000000Exception Note: EXC_CORPSE_NOTIFYApplication Specific Information:ProductBuildVersion: 9M174dUNCAUGHT EXCEPTION (NSInternalInconsistencyException): Error getting value for parameter key 'name' of extension 'Xcode.InterfaceBuilderK
6
0
3.3k
Feb ’21
Reply to NSCocoaErrorDomain when trying to run
I'm facing the exact same problem with the application I'm working on. Have tried clean up the build folder also check the permission settings for then DerivedData folder but no result. Build succeeds but get the below error Details: The file “myapp” 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/sysuser/Library/Developer/Xcode/DerivedData/myapp-aylojruwzhsbrrbwomkiwefxqlxv/Build/Products/Debug-iphonesimulator/myapp.app; } - The operation couldn’t be completed. Permission denied Domain: NSPOSIXErrorDomain Code: 13 Failure Reason: Permission denied - System Information macOS Version 10.15.7 (Build 19H114) Xcode 12.4 (17801) (Build 12D4e) Please if someone can help resolve this issue?
Feb ’21
NSCocoaErrorDomain when trying to run
I have been struggling with this error. My build succeeds but won't run. I've tried every suggestion I've ready in every article I could find and nothing has worked. This happens if I run it on the simulator or device. Any tips? ============================== The file “APP NAME” 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/Me/Library/Developer/Xcode/DerivedData/Main-ekzzcailcbrpykazzxdtbnpsjuhr/Build/Products/Debug-iphoneos/APP NAME.app; } - The operation couldn’t be completed. Permission denied Domain: NSPOSIXErrorDomain Code: 13 Failure Reason: Permission denied
1
0
1.2k
Feb ’21
iOS 14.4 creation of symbolic link failing
I am having trouble on iOS 14.4 creating a symbolic link. This is prompted by the fact that I cannot get a image pointing to a file with spaces in its name to work even if I urlencode the path. I will post about that in a separate request. My work around for the above is to create a symbolic link to a file in the application support directory that is added dynamically as part of normal app function. I tried the URL and the path version of createSymbolicLinkAt<URL,PATH> path=/var/mobile/Containers/Data/Application/6AFD230E-EC7A-4E50-80A5-38E0DB0B1F07/Library/Application Support/1612401575.M10168/Iridium Portal Icons-Address Book.png symlinkPath=/var/mobile/Containers/Data/Application/6AFD230E-EC7A-4E50-80A5-38E0DB0B1F07/Library/Application Support/1612401575.M10168/Iridium-Portal-Icons-Address-Book.png NSFileManager* fm = NSFileManager.defaultManager; NSString* path = [NSString stringWithFormat:@%@/%@, dir, filename]; NSString *symlinkPath; NSError *simError; NSError *urlsimError; symlinkPath=[path strin
4
0
2.2k
Feb ’21
Reply to iOS 14.4 creation of symbolic link failing
Hello, I solved the primary issue but in the process of exploring I discovered an oddity with symbolic link creation that warrants explanation. I am trying to create a symbolic link to a file in a subdirectory of the Application Support Directory. When I try to create a symbolic link by path it throws an error. When I repeat the same thing but with URL I do not get an error. I have revised my code above to correct an error that I discovered. For a sanity check I downloaded the app container and inspected the directory and I do not see the symbolic link. what am I missing. NSFileManager* fm = NSFileManager.defaultManager; NSString* path = [NSString stringWithFormat:@%@/%@, dir, filename]; tttttt NSString *symlinkPath; NSError *simError; NSError *urlsimError; NSString *symlinkFile = [filename stringByReplacingOccurrencesOfString:@ withString:@-] symlinkPath=[NSString stringWithFormat:@%@/%@,dir,symlinkFile]; [fm createSymbolicLinkAtPath:symlinkPath toPath:path error:&simError]; [fm createSymbolicLinkAtURL:
Topic: App & System Services SubTopic: Core OS Tags:
Feb ’21
Reply to App does not use my permissions to create dir
I have discovered an error that functioned in macOS but does not in iOS. Specifically, all the atPath: 's above are fed .absoluteString which must be .path in iOS. Correcting this eliminated the debugger statement: Error Domain=NSCocoaErrorDomain Code=642 You can’t save the file Thanks to Leo Dabus Nov 23 '20 at 3:53 @ stackoverflow.com for pointing out the different results of each.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’21
CallKit integration with multi target application
integrate the app extension by using the guides from: https://developer.apple.com/documentation/callkit ;once the extension is created on our app and linked to the target and with the proper development certificate, we run the app;on system settings when we try to activate the extension we get the following error:Error Enabling Extension - An error ocurred while attempting to enable <Extension name>. On Call Blocking & Identification system settings.these are the system logs related to such error:Aug 11 16:08:07 iPhone Preferences(UIKit)[281] <Notice>: activate generator <_UIFeedbackImpactBehavior: 0x174110a10: prepared=1> with style: TurnOn; activationCount: 1 -> 0; styleActivationCount: 1 -> 0 Aug 11 16:08:07 iPhone Preferences(UIKit)[281] <Notice>: feedback engine <_UIFeedbackHapticEngine: 0x1744c4a60: state=0, numberOfClients=1, prewarmCount=0, _isSuspended=0> state changed: Inactive -> Activating Aug 11 16:08:07 iPhone Preferences(AudioToolbox)[281] <Notice&g
1
0
2.1k
Jan ’21
Error initializing MLMediaLibrary instance
In an application I'm developing, I followed these directions on Stack Overflow to initialize a new instance of MLMediaLibrary. Rather than get back a properly-formed instance, I get the following logged to the console:__38-[MLMediaLibraryImpl connectToService]_block_invoke connection interruptedMLMediaLibrary error obtaining remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 Couldn't communicate with a helper application. (connection to service named com.apple.MediaLibraryService) UserInfo=0x60000026a140 {NSDebugDescription=connection to service named com.apple.MediaLibraryService}So I made a new test application, copied the code from the application I'm developing and pasted it into the test application. Surprise of surprises, it works fine.I've checked the build settings, etc, to make sure the two are the same and can't figure out why the new application works, but the other doesn't. (Of note: The old application was originally an Xcode 3.2.6 project that has been upgraded numerous tim
2
0
1.5k
Jan ’21
Reply to How to publish an XPC Service in a global daemon that employs EndpointSecurity framework?
I saved and compared the output of launchctl print for both the working sample global-daemon and mine. They both look benign and identical, except for the expected differences (label of the daemon, path of executable, PID and port number of the endpoint). They also both have this environment = { XPC_SERVICE_NAME => com.mycompany.itm.service } entry, which says launchd KNOWS my global daemon should publish an XPC Service by this name. I managed to make another tiny progress, by trying to connect to my global daemon from the UI app of the sample-code I'm using - the one that succeeds in communicating with the sample daemon. I duplicated the code there, and try to talk to the two daemons - each with its own label and protocol. Now, the UI client app no longer calls my connection invalidation handler immediately as I try to get to the remote object proxy and send it a message, like thus: id ro = [self.myServiceConnection remoteObjectProxyWithErrorHandler:^(NSError * _Nonnull error) { NSLog(@Error obtaining rem
Topic: Code Signing SubTopic: Entitlements Tags:
Jan ’21
Why does my AudioUnit (AUv3) host lose XPC connection immediately after instantiation in iOS 14?
I'm an author of an AudioUnit host for iOS written in Objective C. In iOS 14, it began crashing on instantiation of any AU instrument, but the same AUs work in other hosts. If I put a break in the completion handler for instantiateWithComponentDescription, I immediately see an error as soon as I step out (but not continue), before anything else is called: Error in destroying pipe Error Domain=NSCocoaErrorDomain Code=4099 The connection on anonymousListener or serviceListener from pid 630 was invalidated from this process. UserInfo={NSDebugDescription=The connection on anonymousListener or serviceListener from pid 630 was invalidated from this process.} Sometimes it's a 4097. The next call into the plugin crashes the host, of course. In the log, the only entry that catches my eye is this: default 14:38:47.105386-0700 MPC Pro 2 [u 01E943B9-94B5-4BF2-8926-9E843EB6482D:m (null)] [()] invalidating startup assertion default 14:38:47.106987-0700 runningboardd Invalidating assertion 32-637-996 (target:[xpcse
1
0
1.2k
Jan ’21
Connection to ModelIO Assetloader interrupted
I am working on ARKit4, trying to generate a 3D model from the mesh. I am trying to display the 3D .obj file in SceneKit but the model doesn't show up. I get the following error: 2020-09-25 17:56:32.532137-0700 connection to com.apple.ModelIO.AssetLoader was interrupted 2020-09-25 17:56:32.532201-0700 AssetLoader.loadURL errorHandler: Error Domain=NSCocoaErrorDomain Code=4097 connection to service on pid 0 named com.apple.ModelIO.AssetLoader UserInfo={NSDebugDescription=connection to service on pid 0 named com.apple.ModelIO.AssetLoader} 2020-09-25 17:56:32.535432-0700 Couldn’t communicate with a helper application. Please help me resolve this error.
3
0
1.4k
Jan ’21
Help Me: SpotlightNetHelper Hijacks System is this a Virus?
To Whom It May Concern:I apparently have a self propagating virus that was introduced to my network by purchase of a used Mac computer from Amazon.com on approximately December 24, 2015. That is when I first started noticing erratic behavior on my machines. I have clean formatted and reinstalled OS from computers on an isolated network that was not infected. As soon as I connect the newly reinstalled OS iMacs to the infected network they become reinfected on first boot. I've spent something like 40 labor hours on this so far and I can't afford anymore resource allocation to this issue until there are some steps to cure the system.This activity on my computer appears to be a nasty virus. From what I can tell, it tries injecting itself in every executable it can locate. It trys to obtain the icloud login credentials, it attempts to obtain administrator credentials, and on one computer it appears to have secured and stolen my credentials to completely hijack the computer. Once it hijacks the computer it deletes
2
0
6.7k
Jan ’21
The file “App Name” couldn’t be opened because you don’t have permission to view it.
I didn't get any idea, Xcode doesn't show any error when I build the app to simulator get permission error, please anybody know this kind of error. Details The file “App name” 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 = local path/Build/Products/Debug-iphonesimulator/Appname.app; } - The operation couldn’t be completed. Permission denied Domain: NSPOSIXErrorDomain Code: 13 Failure Reason: Permission denied - System Information macOS Version 10.15.7 (Build 19H2) Xcode 12.0.1 (17220)
5
0
1.2k
Dec ’20
Xcode 12.2, App and simulator crashing during parsing JSON file into array
Hi all. I have an error as Xcode isn’t letting me parse my JSON file data into an array. It says in the diagnostic report that “Fatal error: Couldn’t parse Rest.json as Array: dataCorrupted(Swift.DecodingError.Context(codingPath: , debugDescription: “The given data was not valid JSON.”, underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 “No string key for value in object around character 3.” UserInfo={NSDebugDescription=No string key for value in object around character 3.}))): file SaiMirrasKitchen/ModelData.swift, line 30” So if anyone could help, I would appreciate it! Harri
1
0
613
Dec ’20
AppClip failed to download file with NSURLSessionDownloadTask
Hi,everyone. :) Recently, I'm trying to make AppClip for my project. When I tried to use NSURLSessionDownloadTask[created by NSURLSession which is initialized with the config backgroundSessionConfigurationWithIdentifier] to download a file with a legal HTTPS URL. It's finally failed 1)Environment: MasOS BigSur Xcode 12.2 Simulator [Run with automatic profile settings] 2)Confusion: The Main Target's download function is normal in the simulator with automatic profile settings.[Someone's advise, I just wanted to try] 3)The Error Info: Trigger Paths: Run AppClip->didFinishLaunchWithOptions->Initialize DownloadSessionTask->Task Resume.[UIApplicationState = UIApplicationStateActive] callBack:URLSession:task:didCompleteWithError below is lldb outputs: 2020-12-10 16:39:45.199333+0800 MFWAppClip[78965:2018825] BackgroundSession <73023646-DBBD-4BD9-B9EF-D79C9DB0B3AB> connection to background transfer daemon interrupted 2020-12-10 16:39:47.716800+0800 MFWAppClip[78965:2022242] Task <E6284F80-16C0-498B-
1
0
873
Dec ’20