Posts

Post not yet marked as solved
1 Replies
1.4k Views
Hello,a few years ago, I developed several kexts for OS X, so I am not entirely new to the subject. Now I would like to brush up my knowledge, but information seems to be somewhat scarce and possibly outdated.What I could find was a video from WWDC 2004, but I am rather certain that I have seen later presentations (including on debugging techniques and other things). The Googles (and the search on the Apple developer site) do nothing, however. Does anyone recall what the most recent Kernel sessions at WWDC were?And is this still the authoritative documentation? * https://developer.apple.com/library/archive/documentation/Darwin/Conceptual/KEXTConcept/KEXTConceptIntro/introduction.html#//apple_ref/doc/uid/TP40001063* https://developer.apple.com/library/archive/documentation/Darwin/Conceptual/NKEConceptual/intro/intro.html#//apple_ref/doc/uid/TP40001858-CH225-SW1Thanks, any pointers are appreciated!P.S. I am well aware that the use of NKE is discouraged. The goal is to implement a proof of concept as NKE first, and then make enhancement requests for Network Extensions as appropriate.
Posted
by below.
Last updated
.
Post not yet marked as solved
0 Replies
1.7k Views
Hello,is it possible to limit the features used by MLLinearRegressor? Upon init, it uses all available features, and I am not sure how to re-run the initialization process after setting the features.Or do I really have to create a new table containing just the features I want?ThanksAlex
Posted
by below.
Last updated
.
Post not yet marked as solved
0 Replies
1.7k Views
Hello,if I want to set the validation set for a linear regressor to 'None', then currently it appears that this is the code to use: var parameters = MLLinearRegressor.ModelParameters() parameters.validationData = MLDataTable()Is this the indented way, or am I overlooking something here? Setting validationData to nil will make the regressor automatically create a validation set, as if no parameters have been passed.Personally, I think an enum would make it a lot clearer. enum validatationData { case none case auto case set (MLDataTable) }Any thoughts?
Posted
by below.
Last updated
.
Post not yet marked as solved
1 Replies
542 Views
Hello,I am attempting to use a (Swift) Framework in a Today Extension. The Framework works in the App itself, and it is set to only use Extension Safe APIs.If I set the Framework linking to "Required", my Extension crashes on launch. Unfortunately, all I see is a stacktrace for "dyld`__abort_with_payload", but I can't see error logged anywhere.If I set the Framework linking to "Optional", the Extension does start, but when I try to instantiate a class from the Framework, I get a nil object.The source code for a sample project is here: https://github.com/below/FrameworkTest/tree/WidgetAm I doing it wrong?
Posted
by below.
Last updated
.
Post not yet marked as solved
0 Replies
352 Views
Hello,in my app, I am requesting to use the Location when in Use (requestWhenInUseAuthorization). There is absolute no reason for the app to use the location when not in the foreground.However, on a new install, I found that iOS still asks if I want to allow background use of the location.Am I doing it wrong? Is this a bug? Or a feature?
Posted
by below.
Last updated
.
Post not yet marked as solved
0 Replies
328 Views
Hello,while it is possible to customize SFSafariViewController (with things like preferredTint), there seems to be no way to customize the view controller presented by SFAuthenticationSession.Am I overlooking something here?Thanks,Alex
Posted
by below.
Last updated
.
Post not yet marked as solved
2 Replies
834 Views
Before I continue on my feat …Has anyone ported the SimpelTunnel Sample Code to Swift 3? A search on github yields nothing …ThanksAlex
Posted
by below.
Last updated
.
Post marked as solved
2 Replies
1.2k Views
If I set sessionConfiguration.multipathServiceType = .handover trying to access http://amiusingmptcp.de (or, for that matter, any other site), I am getting the following errors:MultipathTCP nw_socket_set_common_sockopts setsockopt MPTCP_SERVICE_TYPE failed: [13] Permission denied MultipathTCP nw_socket_add_input_handler Failed to initialize socket MultipathTCP nw_endpoint_flow_attach_protocols [1.1 130.83.166.249:80 in_progress multipath-socket-flow (satisfied)] Failed to attach socket protocolIf I set sessionConfiguration.multipathServiceType = .interactive, the errors are similar, but appear twice.MultipathTCP nw_socket_set_common_sockopts setsockopt MPTCP_SERVICE_TYPE failed: [13] Permission denied MultipathTCP nw_socket_add_input_handler Failed to initialize socket MultipathTCP nw_endpoint_flow_attach_protocols [1.1.1 130.83.166.249:80 in_progress multipath-socket-flow (satisfied)] Failed to attach socket protocol MultipathTCP nw_socket_set_common_sockopts setsockopt MPTCP_SERVICE_TYPE failed: [13] Permission denied MultipathTCP nw_socket_add_input_handler Failed to initialize socket MultipathTCP nw_endpoint_flow_attach_protocols [1.2.1 130.83.166.249:80 in_progress multipath-socket-flow (satisfied)] Failed to attach socket protocolThe session will load data just fine, if I set multipathServiceType = .noneAre there other things I need to do in order to use MultipathTCP?Using Xcode 9.0 beta 4 (9M189t)EDIT: I did enabled Multipath Networking in Settings->Developer, and rebooted the device. This is still happening with iOS 11 Beta 5 (15A5341f)
Posted
by below.
Last updated
.
Post not yet marked as solved
0 Replies
211 Views
Before filing a radar, I would like to get some feedback here: What is the Natural Language Processing language detection supposed to yield?Take this input:What der frohe Botschafter really means is the ‘bearer of Good News,’ with frohe Botschaft being the German translation of “the Gospel,” a.k.a. the Biblical Greek ευαγγελιον, which the Germans pronounce Evangelium, which is (aha!) where the name of their Protestant denominations comes from.Of course, for "script", we get "latn" for every word except:==============================Script==============================Token: ευαγγελιον↳ GrekAnd except for this word, the dominant language is detected for every word:==============================Language==============================Token: What↳ enToken: der↳ enToken: frohe↳ enToken: Botschafter↳ en[…]Token: ευαγγελιον↳ elIs NSLinguisticTagger supposed to recognize a different language in Latin Script? And if yes, in which circumstances does it? Or am I doing it wrong?
Posted
by below.
Last updated
.
Post marked as solved
3 Replies
1.3k Views
Hello,for development purposes, I would like to make my app accept the TLS connection to our development server, even though there is a mismatching hostname.TN-2232 (1) states:"If server trust evaluation fails because the server's DNS name does not match the DNS name in the certificate, you can work around the failure by overriding the DNS name in the trust object. To do this, call SecPolicyCreateSSL to create a new policy object with the correct server name and then call SecTrustSetPolicies to apply it to the trust object."This does not appear to work for me:#warning REMOVE BEFORE FLIGHT if ([challenge.protectionSpace.host isEqualToString:@"development.example"]) { SecTrustRef trust = challenge.protectionSpace.serverTrust; SecTrustResultType result; OSStatus status = SecTrustEvaluate(trust, &result); if (status == noErr && result == kSecTrustResultRecoverableTrustFailure) { SecPolicyRef policy = SecPolicyCreateSSL(true, CFSTR("development.example")); SecTrustSetPolicies(trust, policy); status = SecTrustEvaluate(trust, &result);At this point, the trust still evalutates to kSecTrustResultRecoverableTrustFailure. If I put in the name of the production server, the result is kSecTrustResultUnspecified.Am I doing it wrong? Am I missing something?If I simply use copy exceptions and set exceptions, the connection is accepted (of course).Any other hints are appreciated!1) https://developer.apple.com/library/content/technotes/tn2232/_index.html#//apple_ref/doc/uid/DTS40012884-CH1-SECTRUSTEXCEPTIONS
Posted
by below.
Last updated
.