When I try to start catalyst app in Big Sur B6, this error is immediately throw. Tested two differing apps on two differing Macs.
The operation couldn’t be completed. (OSStatus error -10670.)
Domain: NSOSStatusErrorDomain
Code: -10670
User Info: {
"LSFunction" = "LSOpenStuffCallLocal";
"_LSLine" = 3664;
}-System InformationmacOS Version 11.0 (Build 20A5364e)
Xcode 12.0 (17210.1)
Post
Replies
Boosts
Views
Activity
I am using a AttributedString for markdown. When I add the attributed text, it previews correctly. However, when tapping on the URL it fails to load. Bug or not? I'll post a feedback if so.
class ViewController: UIViewController {
let string = """
**Thank you** and please _visit_ our [Website](https://www.website.com).
```for item in items```
```let item one be something```
```end```
~~Strikethrough~~
"""
@IBOutlet weak var label: UILabel!
override func viewDidLoad() {
super.viewDidLoad()
if let attributedText = try? NSMutableAttributedString(markdown: string, options: AttributedString.MarkdownParsingOptions(interpretedSyntax: .inlineOnlyPreservingWhitespace)) {
let range = NSRange(location: 0, length: attributedText.mutableString.length)
attributedText.addAttribute(NSAttributedString.Key.font, value: UIFont.preferredFont(forTextStyle: .title3), range: range)
label.attributedText = attributedText
}
}
}
Image Playground Error: Cannot find protocol declaration for 'ImageGenerationViewControllerDelegate'
@available(macCatalyst 18.1, *)
@available(iOS 18.1, *)
extension CKImageSelectionManager: ImagePlaygroundViewController.Delegate {
public func imagePlaygroundViewController(_ imagePlaygroundViewController: ImagePlaygroundViewController, didCreateImageAt imageURL: URL) {
}
func presentImagePlayground() {
let imagePlaygroundVC = ImagePlaygroundViewController()
// Set delegate to self to receive the callback
imagePlaygroundVC.delegate = self
imagePlaygroundVC.isModalInPresentation = true // Prevents dismissal with swipe if needed
self.delegate?.presentImageSelectionViewController(imagePlaygroundVC)
}
}
This generates an error in the xcode generated swift header.