Search results for

NSCocoaErrorDomain

1,063 results found

Post

Replies

Boosts

Views

Activity

Link framework in AU app extension
Instead of copying stuff every time I write a new Audio Unit App Extension, I wanted to gather the reusable stuff in a framework.But when I link against it, I get this:2017-04-23 21:29:07.211034+0200 Host[13448:715188] [ops] Hub connection error Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.XXX.YYY.Compressor UserInfo={NSDebugDescription=connection to service named com.XXX.YYY.Compressor}2017-04-23 21:29:07.211192+0200 Host[13448:715113] 86: Failed to open AudioUnit extension: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.XXX.YYY.Compressor UserInfo={NSDebugDescription=connection to service named com.XXX.YYY.Compressor}Does anyone know what the problem is, and how to fix it? If I simply remove the linking, it will run just fine.
9
0
1.2k
Apr ’17
Does setAlternateIconName: works on background?
The alternateIcon is a very cool feature that can make your user open up your app again if you change for something that the user may be interested.For example, mother's day is coming and I would like to change to a mother's day themed app icon but I don't want to do it after the user clicks. Actually, I want to use this tool as a way to attract mothers that may see a change on her homescreen.Doing it after the app opens makes the feature useless for us.Our idea is to change the icon when the app is on background using a silent notification push that calls theapplication(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void)When I try to do this, I receive the following message:017-04-26 15:38:39.183996-0300 AMARO[1495:318456] [] nw_socket_get_input_frames recvmsg(fd 11, 1024 bytes): [57] Socket is not connected 2017-04-26 15:38:39.184197-0300 AMARO[1495:318456] [] nw_socket_write_close
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
1.1k
Apr ’17
AUv3 hosting: loading back multiple instances
Hello,I was able to isolate an issue affecting AUv3 hosts, where multiple intanciation of AUv3 plug-ins would randomly lead to unexpected behavior / inconsistency in the host. I tried both on iOS 9.3.5 and iOS 10.3.2, both showing the same results.This happens when loading back a project containing multiple instances of the same plugin. In my case, this is not done on the main thread but on a worker thread which take care of various heavy tasks. I use [AUAudioUnit instantiateWithComponentDescription: options: completionHandler:] to instanciate clients. When the completion handler gets called, I will setup my structure, and call allocateRenderResourcesAndReturnError, restore state, and cache the various blocks for later use. Some AUv3 plugins will reload just fine, but some will randomly fail. I could observe multiple reasons for failing:- allocateRenderResourcesAndReturnError returning an error (see below).- AudioUnitRender returning 49 during audio pulling (with error: The operation couldn’t be completed. (O
3
0
1.5k
May ’17
Can't start NE app-extension via startTunnelWithOptions:
I am implementing a custom SSL VPN App using NE and for some not well known reason I am not able to properly start my app-extension (NEPacketTunnelProvider) by invoking NETunnelProviderSession.startTunnelWithOptions: in the containing app. My device is running iOS 10.3.2 and I am using the latest XCode.This is the interesting part of the log about the attempt to start the app-extension, but without success:May 18 00:24:57 Robins-nest MyApp[526] <Notice>: Saving profile before attempting connection... May 18 00:24:57 Robins-nest neagent(Foundation)[288] <Notice>: calling plugIn beginUsing: May 18 00:24:57 Robins-nest pkd[137] <Notice>: allowing host 288 <private> to use plug-in <private>(<private>) uuid=D54BA293-CD8D-482A-AFE6-3BCBAF639397 at <private> May 18 00:24:57 Robins-nest MyApp(NetworkExtension)[526] <Notice>: The configuration was not saved because it was unchanged from the previously saved version May 18 00:24:57 Robins-nest nesessionmanager(NetworkExte
9
0
4.3k
May ’17
Is it possible to get ubiquityIdentityToken in a tvOS app?
FileManager.default.ubiquityIdentityToken always return nil in my tvOS app.I found confusing information about it.In Technical Q&A QA1935:https://developer.apple.com/library/content/qa/qa1935/_index.htmlThe document say that on watchOS and tvOS, iCloud Drive is unavailable, ubiquityIdentityToken hence always returns nil for watchOS 2 WatchKit extensions and tvOS apps.Error message generated when ubiquityIdentityToken is first-time accessed on watchOS or tvOS.[ERROR] error while getting ubiquityIdentityToken: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.bird.token was invalidated. UserInfo={NSDebugDescription=The connection to service named com.apple.bird.token was invalidated.}But in Xcode, I can see for ubiquityIdentityToken.Availability:iOS (6.0 and later), macOS (10.8 and later), tvOS (6.0 and later), watchOS (2.0 and later)And in API Reference:https://developer.apple.com/reference/foundation/filemanager/1408036-ubiquityidentitytokenI can see for ubiquity
8
0
1.8k
May ’17
App Groups for iOS and tvOS not working in AppleTV device but works in AppleTV simulator
I am developing an app that use CoreData with targets for iO and tvOS.I also want to use CoreData with some widgets / extensions.I create an App Groups to share CoreData between App and extensions for iOS and for tvOS:group.com.dummy.AppNameI used the same name for the App Gropus for both iOS and tvOS.I subclass NSPersistentContainer to use as defaultDirectoryURL() the App Group as follow: class PersistentContainerForAppGroups : NSPersistentContainer { override class func defaultDirectoryURL() -> URL { guard let url = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: group.com.dummy.AppName) else { fatalError(Can not get url forSecurityApplicationGroupIdentifier)} return url } }Then I set the persistentContainer as follows: lazy var persistentContainer: PersistentContainerForAppGroups = { let container = PersistentContainerForAppGroups(name: AppName) container.loadPersistentStores(completionHandler: { (storeDescription, error) in if let error = error as NSError? { fatalError(Unresolve
1
0
2.0k
May ’17
neagent fails to start the plugin [NSCocoaErrorDomain Code=4097]
Hi, We have developed a per-app VPN (and containing app) on iOS 9.x/iOS 10.x based on Network Extension NEAppProxyProvider. VPN configurations are generated and distributed to devices. Sometimes the plugin doesn't lauch and fails with below error in device logs. This is an intermittent issue but once the device goes into this state it never comes back unless restarted or enrolled into another environment. It's not clear from the device log nda errorcode 4097 is pretty generic which just means The operation couldn’t be completed. It looks like a IPC failure but reason is unknown. Any insight into this error will help.Jun 6 12:55:10 test-iPhone pkd[90] <Info>: match returned 1 plug-ins Jun 6 12:55:10 test-iPhone neagent(Foundation)[2409] <Notice>: calling plugIn beginUsing: Jun 6 12:55:10 test-iPhone pkd[90] <Info>: assigning plug-in <private>(<private>) D0FC15A1-A6B9-49CC-B4C7-2689CA489B72 to plugin sandbox Jun 6 12:55:10 test-iPhone pkd[90] <Notice>: allowing host 2409 <
2
0
2.6k
Jun ’17
Creating "Application Scripts" subfolder in sandboxed environment
I'm developing a sandboxed application, which should run some scripts and following sandboxing rules, those should be located in ~/Library/Application Scripts/com.mydomain.myapp. The application also tries to be friendly to users and offer them to install predefined scripts (bundled in the application package) into that folder. To gain access to the application script folder, I use standard method of the NSFileManager, so the code looks something like:NSError *error; NSURL *scriptsFolder = [[NSFileManager defaultManager] URLForDirectory:NSApplicationScriptsDirectory inDomain:NSUserDomainMask appropriateForURL:nil create:YES error:&error]This works fine if the scripts subfolder already exists. However, it if doesn't, the application can't create it. If I pass NO as fourth parameter I get back the url, but it's useless (it contains only the path), since the folder is nonexistent. If I pass YES as fourth parameter, so that the folder is created if necessary, I get the following error:Error Domain=NSCocoaErrorDomain
Topic: UI Frameworks SubTopic: AppKit Tags:
2
0
1.4k
Jun ’17
NSFileProviderExtension results in console errors and no breakpoints
Greetings! I'm trying to write a simple NSFileProviderExtension in Swift in a simple Single View iOS app with the new Xcode 9 / iOS 11 beta. I used the templates in Xcode to create a Single View universal iOS app in Swift, then added a new File Provider extension using the Xcode template in Swift. Everything builds and runs, but when I try to debug the File Provider extension against the Files app on my iPad Pro device connected to Xcode, I get these errors in the console when I switch to my file provider which shows up in the Locations list in Files:2017-06-10 13:45:02.755981-0700 Files[3040:585145] [default] [ERROR] received an error while enumerating changes: Error Domain=NSCocoaErrorDomain Code=3328 The requested operation couldn’t be completed because the feature is not supported.2017-06-10 13:45:02.756438-0700 Files[3040:585145] [UI] collection(_:didEncounterError:): collection <FPItemCollection:0x1c01b2980 id:NSFileProviderRootContainerItemIdentifier> did encounter error Error Domain=NSCocoaErrorDomain
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
1.9k
Jun ’17
Reply to Vision Framework - Barcode Descriptor
I am getting these errors:1. Cannot connect to remote service: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.BarcodeSupport.BarcodeNotificationService2. libMobileGestalt MobileGestalt.c:555: no access to InverseDeviceID (see problem/11744455>)3. connection to service named com.apple.BarcodeSupport.BarcodeNotificationService Error Domain=NSCocoaErrorDomain Code=4097
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’17
Reply to Error JSONSerialization
I made the correction and now has this error:Error Domain=NSCocoaErrorDomain Code=3840 JSON text did not start with array or object and option to allow fragments not set. UserInfo={NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.}
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’17
Reply to Error JSONSerialization
I added options: JSONSerialization.ReadingOptions.allowFragments and now gave another code error:Error Domain=NSCocoaErrorDomain Code=3840 Invalid value around character 0. UserInfo={NSDebugDescription=Invalid value around character 0.}The code below how it is/ do { / var teamJSON: NSDictionary! teamJSON = try JSONSerialization.jsonObject(with: data!, options: JSONSerialization.ReadingOptions.allowFragments) as? NSDictionary / let teams: NSArray = teamJSON[sqltable] as! NSArray / for i in 0 ..< teams.count{ let team = teams[i] as! NSDictionary / let teamName:String = team[name] as! String! let teamAge:String = team[age] as! String! / print(name -> , teamName) print(age -> , teamAge) print(===================) print() }
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’17
"service named com.apple.iWorkFileFormat was invalidated"
Hi,I'm working with the drag-and-drop APIs, and it works fine for most cases, except when I try to drag old Pages documents ... it gives me this error:[claims] Upload preparation for claim E85405F1-75D1-4DA3-9E88-4DC25443D475 completed with error: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service named com.apple.iWorkFileFormat was invalidated. UserInfo={NSDebugDescription=The connection to service named com.apple.iWorkFileFormat was invalidated.}I have already adde com.apple.iWorkFileFormat as a supported UTI, as well as all flavors of text and rich-text. It even works with MS Word files. Not sure why Pages doesn't work ... it might be an old Pages document, but it should still be supported. Am I missing a particular UTI?
0
0
390
Jun ’17
Simulator issues with AUv3 Example code
Hi, I'm not totally sure if this is purely a simulator issue, since I'm still in the process of installing the iOS 11 beta on a device.I've downloaded the example code from https://developer.apple.com/library/content/samplecode/AudioUnitV3Example/Introduction/Intro.html, and each of the stand-alone applications run fine in the Simulator on iPad Pro 10.5, however, none of the Extensions will open up properly in the iOSAUv3Host app.I am also not able to see the AU's from the Filter or Instrument published in the list of available Effects or Instruments.Is there something I'm missing here that isn't in the README, or does it just not work in the Simulator? Has anyone else gotten this working?I am also seeing this error when I run the Host, but I don't know if it's related or not:2017-06-25 13:15:55.566828+0200 AUv3Host[6996:1279773] [UIFocus] Focus system disabled2017-06-25 13:16:00.063359+0200 AUv3Host[6996:1280866] [audiocomp] 178: registration server connection invalidated2017-06-25 13:16:00.063451+0200 AUv3H
2
0
4.3k
Jun ’17
Escaping a double quote within multiline string literal that contains double quotes already
Consider the following Swift code that contains a JSON-formatted string where the key and value are both strings:let data = { height: 2'8 } .data(using: .utf8)! let decoder = JSONDecoder() do { let traits = try decoder.decode([String:String].self, from: data) print(traits = (traits)) } catch let error { print(error decoding: (error)) }What do I do when the string value (in this case, 2'8) needs to contain one double-quote? I tried doing it in the way shown above, but it results in, error decoding: Error Domain=NSCocoaErrorDomain Code=3840 Badly formed object around character 26. UserInfo={NSDebugDescription=Badly formed object around character 26.}If I try to leave out the backslash, I get the exact same error. If I leave out quotes entirely around the value, I get the same error, but in a different location (character 22 instead of character 26). How do I escape the double quote within the string value, so that it can be decoded?
1
0
5.1k
Jun ’17