Post

Replies

Boosts

Views

Activity

Meaning of values Cert
Hi: I'm wondering about what means values s,i from cert object inside the property NSErrorPeerCertificateChainKey and NSErrorPeerCertificateChainKey in an SSLError: NSErrorPeerCertificateChainKey=( "<cert(0x1029c9e00) s: site.com i: Company Services>" I suppose that "i" is the certificate's issuer and "s" is the site, but something is strange here. I make a request to example.com and sometimes example.com does not appear on the certificate chain ... appearing Other sites and issuers not related to the certificate that example.com could have. I think that it is the cause of the error, but if you could explain to me which could be the cause of this strange situation would be nice. Thanks in advance
1
0
704
Aug ’23
Local notifications on tvOS
Hi: I want to know how to schedule a local notification in tvOS and when you tap it, open the app. I was reading the documentation: https://developer.apple.com/documentation/usernotifications/unnotificationcontent And I don't know why the title and body, for example, are unavailable for tvOS. Any help is welcome. Thanks in advance.
0
1
645
Aug ’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
535
Aug ’23
Xcode Cloud Code coverage
Hi: I'm trying to get the code coverage from a workflow build. I have a workflow with 2 actions (action1 and action2 in the rest of the text), both are tests (one unit and one UI test). When an action runs the post-xcodebuild script, the artifacts are not archived as I can see in the explanation: https://developer.apple.com/documentation/xcode/writing-custom-build-scripts Even, each action ends at a different time. How can I get programmatically the xcresults in an automated way? (action1 and action2 have different xcresults). I don't want to use fastlane or build up any server. Also, When Does run a scheme test post-action? After the post-Xcode build script run or after the archive of results? Is there any way in which the GitHub Xcode app generates an event in GitHub when all action archives end to retrieve the code coverage or the results? Also, I can't see the Xcode cloud code coverage sum in an Xcode window, How can I see it (The whole coverage action1 test result + action2 test result) Thanks in advance
0
1
920
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
725
Jun ’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
780
May ’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
391
May ’23
Xcode cloud errors
Hi community: I'm coming across two error types on Xcode cloud during ui tests. encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted. (Underlying Error: Test crashed with signal kill before starting test execution. If you believe this error represents a bug, please attach the result bundle at /Volumes/workspace/resultbundlexcresult)) encountered an error (Failed to prepare device 'Clone 7 of iPhone 14 Pro' for impending launch. If you believe this error represents a bug, please attach the result bundle at /Volumes/workspace/ resultbundle.xcresult. (Underlying Error: Unable to boot the Simulator. launch failed to respond. (Underlying Error: Failed to start launch_ sim: could not bind to session, launchd_sim may have crashed or quit responding))) Any ideas on how to solve them? Thanks
5
1
1.7k
May ’23
APNS file drag and drop doesn't work as expected
Hi: I'm wondering why dragging and dropping an APNs file to the simulator worked as expected and, now with Xcode 14.3 it doesn't. I mean the object userInfo: let notification: UNNotification .... let userInfo = notification.request.content.userInfo Now contains all the JSON, and before only the user Info. The APNS file is this: { "aps":{ "alert":{ "title":"Title", "body":"BODY", }, "badge":0, "key1":"valu1", "category": "category" }, "Simulator Target Bundle":"com.app.bundle" } What I get now is: (lldb) po userInfo ▿ 2 elements ▿ 0 : 2 elements ▿ key : AnyHashable("aps") - value : "aps" ▿ value : 4 elements ▿ 0 : 2 elements - key : category - value : category ▿ 1 : 2 elements - key : alert ▿ value : 2 elements ▿ 0 : 2 elements - key : title - value : Title ▿ 1 : 2 elements - key : body - value : BODY ▿ 2 : 2 elements - key : badge - value : 0 ▿ 3 : 2 elements - key : key1 - value : valu1 ▿ 1 : 2 elements ▿ key : AnyHashable("Simulator Target Bundle") - value : "Simulator Target Bundle" - value : com.app.bundle What I should get ▿ 2 elements ▿ 0 : 2 elements ▿ key : AnyHashable("key1") - value : "key1" - value : valu1 Maybe it is something related to the last change on pushes @eskimo? I mean, now web pushes are allowed. Thanks in advance
0
1
888
Apr ’23