Post

Replies

Boosts

Views

Activity

Reply to Custom Fonts in Swift Package
@dokun1 I was able to get this working by using this tutorial, which seems to register the fonts via Core Graphics, as you've suggested: Packaging your Custom Fonts in Swift Packages by Jacob Rakidzich https://jacobzivandesign.com/technology/custom-fonts-from-swift-package/
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’22
Reply to Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817
This occurred for me using Xcode 12.5 on an M1 Mac mini. The solution in my case was to ensure that Xcode was opened without using Rosetta. To check for this, select Xcode in the Finder in your Applications folder, then press Command-I. Under the General section of the Info dialog that appears, ensure there is no checkmark beside the "Open using Rosetta" option. Then close and re-open Xcode, and try building your application and running within the Simulator again. In my case, this resolved the appearance of the errors described by the original poster.
Jun ’21