I want to use the SecAsn1-APIs (cf. https://developer.apple.com/documentation/security/asn_1) in a Xcode 12 playground. Since in order to use those it is not sufficient to simply import Security I am trying to make them available as a system library target (as per https://github.com/apple/swift-package-manager/blob/263171977ebcd47f4aaca1202cff5a96c5158a64/Documentation/Usage.md#import-system-libraries) instead, but I don't seem to be getting anywhere. Am I on the right track with this?
Try this:
It works for me in Xcode 11.7 (in a macOS playground, obviously).
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Code Block import Security.SecAsn1Coder var coder: SecAsn1CoderRef? = nil let err = SecAsn1CoderCreate(&coder)
It works for me in Xcode 11.7 (in a macOS playground, obviously).
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"