Post

Replies

Boosts

Views

Activity

Error when trying to preview using Mac as Preview Device from Dynamic framework
Hi community: I came up with an error when I tried to preview a view with Mac as Device. The view is done inside a dynamic framework. The framework is compatible with Mac Catalyst. The Xcode version is 14.2.0 HumanReadableNSError: connectToPreviewHost: Failed to connect to 62826: Error Domain=com.apple.dt.ProcessAttachUtilities Code=0 "Failed to get task for pid 62826: 0" UserInfo={NSLocalizedDescription=Failed to get task for pid 62826: 0} com.apple.dt.xcodepreviews.service (17): ================================== |  MessageSendFailure: Message send failure for Connecting to launched interactive agent 62826 Any kind of preview displays the error (only on Mac, on other devices it works as expected). Is there any workaround? Thanks in advance
1
0
845
Feb ’23
Issue: [Inflection] Cannot use Morphun
Hi community: I get an error using inflection on strings when the language is Spanish. Issue: [Inflection] Cannot use Morphun, (Checking that the token is the correct type): (null) The code: let value = "5 dias" var string = AttributedString(localized: "El primer \(value) es gratis") var morphology = Morphology() morphology.number = .plural string.inflect = InflectionRule(morphology: morphology) let result = string.inflected() Any workaround to solve it?
0
0
1.1k
Mar ’23
Numbers spell out with gender
Hi community I tried to get the feminine of "one" in spanish but when I tried, in Spanish the result is "uno" instead of "una". Any ideas? let attributedString = AttributedString(localized: "uno") attributedString.languageIdentifier = "es" var morphology = Morphology() morphology.grammaticalGender = .feminine attributedString.morphology = morphology attributedString.inflect = .explicit(morphology) print(String(attributedString.inflected().characters)) // uno Thanks in advance
0
0
445
May ’23
requiresDNSSECValidation sample over request
Hi community: I'm trying to discover how the dnssec api works, but I cannot get a sample that works with it. Maybe I'm wrong with the requirements; if it is please, clarify it to me. So what I understood. All DNS zones (which respond to TLS listed here https://manage.whois.com/kb/answer/2998) have a way to say, hey I'm who I am. So without any extra configuration, we can use the new API. Is that right? So the code that I did, see the next code let urlSession = URLSession.init(configuration: .ephemeral) if #available(iOS 16.0, *) { urlSession.configuration.requiresDNSSECValidation = true } var request = URLRequest(url: URL(string: "https://www.apple.com")!) if #available(iOS 16.1, *) { request.requiresDNSSECValidation = true } cancellable = urlSession .dataTaskPublisher(for: request) .retryWithDelay(retries: 2, delay: 2, scheduler: DispatchQueue.global(qos: .background)) .sink(receiveCompletion: { result in if case let .failure(error) = result { print("Error \(error)") } }, receiveValue: { (data: Data, response: URLResponse) in print("It Works") Result: Task finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001, UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x600003d86130 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <040AB9E7-EFCB-4072-8357-E0149769BB9D>.<2>, _NSURLErrorRelatedURLSessionTaskErrorKey=(``` "LocalDataTask <040AB9E7-EFCB-4072-8357-E0149769BB9D>.<2>" ), NSErrorFailingURLStringKey=https://apple.com/, NSErrorFailingURLKey=https://apple.com/, _kCFStreamErrorDomainKey=4} The DNS I'm using is 8.8.8.8. Do you know any other DNS server that supports DNSSEC? If I remove requiresDNSSECValidation from request it works. Also, it's curious that even failing the receiveCompletion is never called. But if I use the dataTask` with completion it's called with the error. Thanks for the clarifications.
3
0
910
Jun ’23
Natural language word segmentation.
Hi community. I was looking for a way to make word segmentation of a string without delimiters and spaces. Apple's Natural language framework does not provide this (I think is strange). I want to achieve something like this: Input: "makesenseofthis" Output: ["make", "sense", "of", "this"] Any third party to do it? Maybe is there any Apple API? Thanks in advance
0
0
1.4k
Jun ’23
Screen time
Hi I want to use the new iOS 16 Screen time API to show a block page over Safari and Chrome when the user enters an "adult-content" page like a gun store, allowing it to continue searching on the internet if the user wants. Any tips on how to do this? Thanks in advance
2
0
883
Jun ’23
Getting featured
Hi community: I was reading about how to get featured on the App Store home, and I saw that there's a form. Must be filled with the "account holder" account, or whichever is okay. Are there any tips, about how to fill it to get featured? Thanks in advance
0
0
645
Aug ’23