# \#macos

**URL:** https://forums.swift.org/tag/macos/178.md?page=1

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

**Page:** 2

---

## [Missing \`lit\` config file after swift compiler build](https://forums.swift.org/t/missing-lit-config-file-after-swift-compiler-build/76019)

<div class="topic-metadata">

**Author:** [@janjan](https://forums.swift.org/u/janjan)\
**Replies:** 16\
**Last updated:** [November 19, 2024, 9:33pm UTC](https://forums.swift.org/t/missing-lit-config-file-after-swift-compiler-build/76019 "2024-11-19T21:33:11Z")

</div>

I've been able to run lit tests in the past successfully, however, this time after rebuilding the compiler (macOS) and invoking lit I'm stuck wtih an error. lit.py: /Users/jan/Downloads/Dev/swift-project/llvm-project/ll…

---

## [Does the entire Swift compiler build with latest macOS + Xcode?](https://forums.swift.org/t/does-the-entire-swift-compiler-build-with-latest-macos-xcode/75331)

<div class="topic-metadata">

**Author:** [@rayayay](https://forums.swift.org/u/rayayay)\
**Replies:** 0\
**Last updated:** [October 12, 2024, 10:02pm UTC](https://forums.swift.org/t/does-the-entire-swift-compiler-build-with-latest-macos-xcode/75331 "2024-10-12T22:02:36Z")

</div>

Hi everyone, I was able to get the Swift compiler to build with Xcode 15.4 + Sonoma, after much struggling trying to use Xcode 15.1 because that's what's being used in CI. Does the build-script build everything without …

---

## [Launching XCTests in LLDB from command line on macOS](https://forums.swift.org/t/launching-xctests-in-lldb-from-command-line-on-macos/50906)

<div class="topic-metadata">

**Author:** [@George](https://forums.swift.org/u/George)\
**Replies:** 2\
**Last updated:** [October 2, 2024, 11:46am UTC](https://forums.swift.org/t/launching-xctests-in-lldb-from-command-line-on-macos/50906 "2024-10-02T11:46:25Z")

</div>

Is there a way to run Swift tests from the command line in LLDB on macOS? On Linux, I am able to do lldb .build/debug/MyPackageTests.xctest. On macOS, I run into two issues: .build/debug/MyPackageTests.xctest is not …

---

## [@MainActor behaves different on Windows and macOS](https://forums.swift.org/t/mainactor-behaves-different-on-windows-and-macos/74742)

<div class="topic-metadata">

**Author:** [@Eugene\_Gubin](https://forums.swift.org/u/Eugene_Gubin)\
**Replies:** 11\
**Last updated:** [September 20, 2024, 8:32am UTC](https://forums.swift.org/t/mainactor-behaves-different-on-windows-and-macos/74742 "2024-09-20T08:32:17Z")

</div>

Using 6.0 toolchain on Windows and Xcode 16.0 RC1 on macOS this program gives different output: @main struct EntryPoint: AsyncParsableCommand { @MainActor mutating func run() async throws { print("Thread…

---

## [Graph editor in swift - where to start?](https://forums.swift.org/t/graph-editor-in-swift-where-to-start/74348)

<div class="topic-metadata">

**Author:** [@LostInTheSauce](https://forums.swift.org/u/LostInTheSauce)\
**Replies:** 4\
**Last updated:** [September 4, 2024, 7:36pm UTC](https://forums.swift.org/t/graph-editor-in-swift-where-to-start/74348 "2024-09-04T19:36:47Z")

</div>

Hello, everyone! I have a project idea that involves creating a graph editor - an area in the gui where I can right click to place a vertex, drag the mouse between two vertices to connect them with an edge, drag the "ca…

---

## [Get Folder's Number of Elements](https://forums.swift.org/t/get-folders-number-of-elements/30674)

<div class="topic-metadata">

**Author:** [@oguzhanvarsak](https://forums.swift.org/u/oguzhanvarsak)\
**Replies:** 13\
**Last updated:** [August 3, 2024, 7:05am UTC](https://forums.swift.org/t/get-folders-number-of-elements/30674 "2024-08-03T07:05:16Z")

</div>

How can I get element number of a folder as a value for label?

---

## [Introducing WebUI: Declarative WKWebView for SwiftUI](https://forums.swift.org/t/introducing-webui-declarative-wkwebview-for-swiftui/72945)

<div class="topic-metadata">

**Author:** [@b1ackturtle](https://forums.swift.org/u/b1ackturtle)\
**Replies:** 0\
**Last updated:** [July 5, 2024, 10:13am UTC](https://forums.swift.org/t/introducing-webui-declarative-wkwebview-for-swiftui/72945 "2024-07-05T10:13:49Z")

</div>

Hi Swift Community! I'm excited to introduce WebUI - a powerful library for declaratively using WKWebView in SwiftUI. WebUI is designed to align with existing SwiftUI interfaces such as ScrollView and ScrollViewReader.…

---

## [Upcoming Enhancements to Swiftly](https://forums.swift.org/t/upcoming-enhancements-to-swiftly/72361)

<div class="topic-metadata">

**Author:** [@cmcgee1024](https://forums.swift.org/u/cmcgee1024)\
**Replies:** 7\
**Last updated:** [June 13, 2024, 10:34am UTC](https://forums.swift.org/t/upcoming-enhancements-to-swiftly/72361 "2024-06-13T10:34:35Z")

</div>

Hello Everyone, Swiftly is a command-line tool to help you to get started with the Swift toolchain that you need for your Swift development. It also helps you to switch easily between multiple versions of the Swift tool…

---

## [Trouble reading new data from standard output pipe](https://forums.swift.org/t/trouble-reading-new-data-from-standard-output-pipe/71261)

<div class="topic-metadata">

**Author:** [@KrimpusChrome](https://forums.swift.org/u/KrimpusChrome)\
**Replies:** 2\
**Last updated:** [April 18, 2024, 3:20pm UTC](https://forums.swift.org/t/trouble-reading-new-data-from-standard-output-pipe/71261 "2024-04-18T15:20:04Z")

</div>

Hi all, I am writing a MacOS app that makes use of the Android Debug Bridge (ADB) tool. To achieve this I am using a Process to run an ADB executable. My issue is that when I run a command, I don't see anything come th…

---

## [URLSession download of a large file took ages](https://forums.swift.org/t/urlsession-download-of-a-large-file-took-ages/71061)

<div class="topic-metadata">

**Author:** [@KrisSimon](https://forums.swift.org/u/KrisSimon)\
**Replies:** 9\
**Last updated:** [April 4, 2024, 3:17am UTC](https://forums.swift.org/t/urlsession-download-of-a-large-file-took-ages/71061 "2024-04-04T03:17:52Z")

</div>

Hi, can someone tell why downloading the same file in Safari is fast (8sec), but from within my script it takes ages (40min)? private func download() async -\> Data? { do { let configuration = UR…

---

## [Introducing GateEngine: A Cross Platform 2D/3D Game Engine](https://forums.swift.org/t/introducing-gateengine-a-cross-platform-2d-3d-game-engine/65815)

<div class="topic-metadata">

**Author:** [@STREGA](https://forums.swift.org/u/STREGA)\
**Replies:** 22\
**Last updated:** [October 24, 2023, 7:38pm UTC](https://forums.swift.org/t/introducing-gateengine-a-cross-platform-2d-3d-game-engine/65815 "2023-10-24T19:38:52Z")

</div>

Still a work in progress, but try it out! GateEngine is a cross platform 2D/3D game engine. GateEngine supports most platforms supported by Swift Package Manager, including Windows and HTML5. The number of features an…

---

## [Help with SwiftUI on macOS document based app with multiple documents](https://forums.swift.org/t/help-with-swiftui-on-macos-document-based-app-with-multiple-documents/70865)

<div class="topic-metadata">

**Author:** [@samRowlands](https://forums.swift.org/u/samRowlands)\
**Replies:** 0\
**Last updated:** [March 24, 2024, 12:53am UTC](https://forums.swift.org/t/help-with-swiftui-on-macos-document-based-app-with-multiple-documents/70865 "2024-03-24T00:53:19Z")

</div>

First time posting here, if this is the incorrect category please let me know, but I'm having trouble solving this myself or getting assistance from the Apple developer forum. Adding a second "DocumentGroup" to a docume…

---

## [Cross-platform Graphics Package recommendation (mid 2023)](https://forums.swift.org/t/cross-platform-graphics-package-recommendation-mid-2023/66028)

<div class="topic-metadata">

**Author:** [@Stiivi](https://forums.swift.org/u/Stiivi)\
**Replies:** 13\
**Last updated:** [March 12, 2024, 3:22am UTC](https://forums.swift.org/t/cross-platform-graphics-package-recommendation-mid-2023/66028 "2024-03-12T03:22:43Z")

</div>

Is there any documented cross-platform graphics package that is recommended these days? By cross-platform I mean all Apple platforms and Linux, potentially Windows, not just a variety of Apple sub-platforms. By graphic…

---

## [Docker image of linux/amd64 swift failing with \`invalid driver name: swift-driver\` on Mac M3?](https://forums.swift.org/t/docker-image-of-linux-amd64-swift-failing-with-invalid-driver-name-swift-driver-on-mac-m3/69392)

<div class="topic-metadata">

**Author:** [@lancejpollard](https://forums.swift.org/u/lancejpollard)\
**Replies:** 8\
**Last updated:** [February 18, 2024, 1:07pm UTC](https://forums.swift.org/t/docker-image-of-linux-amd64-swift-failing-with-invalid-driver-name-swift-driver-on-mac-m3/69392 "2024-02-18T13:07:40Z")

</div>

Cross-posting from How to install Swift lang using Docker on linux/amd64? Getting \`invalid driver name: swift-driver\`? - Stack Overflow for visibility. I saw the official Swift Dockerfile, for ubuntu:22.04, but it is no…

---

## [Introducing Anima, an Animation Framework for iOS, tvOS, and macOS](https://forums.swift.org/t/introducing-anima-an-animation-framework-for-ios-tvos-and-macos/69302)

<div class="topic-metadata">

**Author:** [@flocked](https://forums.swift.org/u/flocked)\
**Replies:** 0\
**Last updated:** [January 6, 2024, 6:26pm UTC](https://forums.swift.org/t/introducing-anima-an-animation-framework-for-ios-tvos-and-macos/69302 "2024-01-06T18:26:27Z")

</div>

I created an open source animation framework for iOS, tvOS, and macOS. It can animate properties using spring, easing and decay animations. Github: Anima Documentation: Online Animatable Properties Any type conforming…

---

## [Introducing AdvancedCollectionTableView, a Framework for NSCollectionView & NSTableView (ports many newer UIKit APIs)](https://forums.swift.org/t/introducing-advancedcollectiontableview-a-framework-for-nscollectionview-nstableview-ports-many-newer-uikit-apis/69305)

<div class="topic-metadata">

**Author:** [@flocked](https://forums.swift.org/u/flocked)\
**Replies:** 0\
**Last updated:** [January 6, 2024, 7:05pm UTC](https://forums.swift.org/t/introducing-advancedcollectiontableview-a-framework-for-nscollectionview-nstableview-ports-many-newer-uikit-apis/69305 "2024-01-06T19:05:44Z")

</div>

I created an open source framework for NSCollectionView and NSTableView. It's a collection of classes and extensions, many of them being ports of UIKit. Github: AdvancedCollectionTableView Documentation: Online NSCol…

---

## [SwiftPM does not create a .dll file](https://forums.swift.org/t/swiftpm-does-not-create-a-dll-file/69023)

<div class="topic-metadata">

**Author:** [@dima\_kozhinov](https://forums.swift.org/u/dima_kozhinov)\
**Replies:** 29\
**Last updated:** [December 18, 2023, 7:36am UTC](https://forums.swift.org/t/swiftpm-does-not-create-a-dll-file/69023 "2023-12-18T07:36:02Z")

</div>

Hi all, I'm just trying to figure out how to build a .dll file under Windows using the Swift Package Manager. Swift version is 5.9.2. Here are my commands: mkdir test cd test swift package init --type library swift bui…

---

## [Need help with Swift and MIDI Networking on macOS](https://forums.swift.org/t/need-help-with-swift-and-midi-networking-on-macos/68792)

<div class="topic-metadata">

**Author:** [@alimmi](https://forums.swift.org/u/alimmi)\
**Replies:** 0\
**Last updated:** [December 4, 2023, 2:42am UTC](https://forums.swift.org/t/need-help-with-swift-and-midi-networking-on-macos/68792 "2023-12-04T02:42:13Z")

</div>

Hello, I hope you can help me solve the following problem. I'm completey new to Obj-C, or Swift, but have some experience in C and scripting languages. I'm under time pressure, so I hope you can excuse that I don't have…

---

## [macOS DYLD\_LIBRARY\_PATH Issue - Library not loaded: @rpath/libc++.1.dylib](https://forums.swift.org/t/macos-dyld-library-path-issue-library-not-loaded-rpath-libc-1-dylib/68567)

<div class="topic-metadata">

**Author:** [@Rajveer100](https://forums.swift.org/u/Rajveer100)\
**Replies:** 12\
**Last updated:** [November 22, 2023, 7:03pm UTC](https://forums.swift.org/t/macos-dyld-library-path-issue-library-not-loaded-rpath-libc-1-dylib/68567 "2023-11-22T19:03:13Z")

</div>

Hey Everyone, I am currently facing an issue with the following command: \> swift run --package-path CodeGeneration Error: Fetching https://github.com/apple/swift-argument-parser.git Fetched https://github.com/apple/s…

---

## [Composition of \`Codable\` and \`Observable\`](https://forums.swift.org/t/composition-of-codable-and-observable/66766)

<div class="topic-metadata">

**Author:** [@joshw](https://forums.swift.org/u/joshw)\
**Replies:** 3\
**Last updated:** [November 8, 2023, 10:33am UTC](https://forums.swift.org/t/composition-of-codable-and-observable/66766 "2023-11-08T10:33:38Z")

</div>

Hello - I noticed that if I mark a Codable class as @Observable, the compiler gives a warning inside the generated code. @Observable final class User: Codable { let id: Int let name: String } which expands to..…

---

## [How to enable clicks through window toolbar](https://forums.swift.org/t/how-to-enable-clicks-through-window-toolbar/68258)

<div class="topic-metadata">

**Author:** [@AdrianFahrbach](https://forums.swift.org/u/AdrianFahrbach)\
**Replies:** 1\
**Last updated:** [November 5, 2023, 12:31pm UTC](https://forums.swift.org/t/how-to-enable-clicks-through-window-toolbar/68258 "2023-11-05T12:31:29Z")

</div>

I'm currently building a MacOS app using react-native-macos, since I don't have any experience in Swift or Objective-C. The interface in the screenshot below is therefore faking a titlebar. The real titlebar is set to be…

---

## [Testing Swift Macros - \`diagnostics\` always have two identical \`DiagnosticSpec\` elements](https://forums.swift.org/t/testing-swift-macros-diagnostics-always-have-two-identical-diagnosticspec-elements/66846)

<div class="topic-metadata">

**Author:** [@RJ\_Clegg](https://forums.swift.org/u/RJ_Clegg)\
**Replies:** 1\
**Last updated:** [August 29, 2023, 3:13pm UTC](https://forums.swift.org/t/testing-swift-macros-diagnostics-always-have-two-identical-diagnosticspec-elements/66846 "2023-08-29T15:13:37Z")

</div>

I'm trying out Swift Macros and have watched both WWDC 23 sessions on the topic: Write Swift macros Expand Swift macros During my testing of my own macro I found the the diagnostics has two identical elements during t…

---

## [WireGuard for iOS & macOS - Invalid manifest error](https://forums.swift.org/t/wireguard-for-ios-macos-invalid-manifest-error/67008)

<div class="topic-metadata">

**Author:** [@tspravin](https://forums.swift.org/u/tspravin)\
**Replies:** 0\
**Last updated:** [August 29, 2023, 7:33am UTC](https://forums.swift.org/t/wireguard-for-ios-macos-invalid-manifest-error/67008 "2023-08-29T07:33:54Z")

</div>

I am trying to integrate WireGuard for iOS and macOS in Xcode, the build process is success, but the integration shows error.Help me to solve this error. I am facing issue while integrating WireGuardKit in Xcode proj…

---

## [How do I implement a Swift Package Manager with resources specific to a platform](https://forums.swift.org/t/how-do-i-implement-a-swift-package-manager-with-resources-specific-to-a-platform/66650)

<div class="topic-metadata">

**Author:** [@Lunar](https://forums.swift.org/u/Lunar)\
**Replies:** 0\
**Last updated:** [August 8, 2023, 7:55am UTC](https://forums.swift.org/t/how-do-i-implement-a-swift-package-manager-with-resources-specific-to-a-platform/66650 "2023-08-08T07:55:24Z")

</div>

I have files like iOS and macOS storyboards and videos that are specific to iOS or macOS respectively. All resources that are specific to iOS are in the Sources/iOS, all resources specific to macOS are in the Sources/Ma…

---

## [Issue with Accessibility Visible Text Range](https://forums.swift.org/t/issue-with-accessibility-visible-text-range/66528)

<div class="topic-metadata">

**Author:** [@BadPistol97](https://forums.swift.org/u/BadPistol97)\
**Replies:** 0\
**Last updated:** [August 2, 2023, 9:30am UTC](https://forums.swift.org/t/issue-with-accessibility-visible-text-range/66528 "2023-08-02T09:30:21Z")

</div>

I am trying to draw NSPanels on texts of other apps using AXObserverAddNotification with the attribute of kAXValueChangedNotification on an AXTextArea I need to detect if the text range on that text area is visible on t…

---

## [Introducing Beyond.NET: Call .NET code from Swift and C](https://forums.swift.org/t/introducing-beyond-net-call-net-code-from-swift-and-c/66100)

<div class="topic-metadata">

**Author:** [@lemonmojo](https://forums.swift.org/u/lemonmojo)\
**Replies:** 0\
**Last updated:** [July 11, 2023, 2:20pm UTC](https://forums.swift.org/t/introducing-beyond-net-call-net-code-from-swift-and-c/66100 "2023-07-11T14:20:45Z")

</div>

Today we're excited to announce Beyond.NET - a new open source toolset to call .NET code from other programming languages, including Swift and C. :rocket: If you have the need to interop with .NET in your Swift projects…

---

## [Cross-Compiling from MacOS to Windows](https://forums.swift.org/t/cross-compiling-from-macos-to-windows/54485)

<div class="topic-metadata">

**Author:** [@LebJe](https://forums.swift.org/u/LebJe)\
**Replies:** 18\
**Last updated:** [July 9, 2023, 2:54am UTC](https://forums.swift.org/t/cross-compiling-from-macos-to-windows/54485 "2023-07-09T02:54:59Z")

</div>

Hi, I’m trying to cross-compile a simple Swift executable from MacOS 12 to Windows 10. So far I’ve: created a simple Swift package using swift package init --type executable. downloaded sdk-windows-x64 and toolchain-w…

---

## [How to build SwiftPM using a locally built Swift toolchain](https://forums.swift.org/t/how-to-build-swiftpm-using-a-locally-built-swift-toolchain/65554)

<div class="topic-metadata">

**Author:** [@jkshtj](https://forums.swift.org/u/jkshtj)\
**Replies:** 4\
**Last updated:** [June 14, 2023, 6:25pm UTC](https://forums.swift.org/t/how-to-build-swiftpm-using-a-locally-built-swift-toolchain/65554 "2023-06-14T18:25:43Z")

</div>

Hi all, I am trying to debug an issue in one of the Swift toolchain snapshots (swift-DEVELOPMENT-SNAPSHOT-2023-05-09-a specifically). Hardware and OS Hardware - Apple M2 Max OS - Ventura 13.4 Summary about the issue T…

---

## [How to add a button to the viewcontroller? swift](https://forums.swift.org/t/how-to-add-a-button-to-the-viewcontroller-swift/65103)

<div class="topic-metadata">

**Author:** [@Pretty\_Girl](https://forums.swift.org/u/Pretty_Girl)\
**Replies:** 0\
**Last updated:** [May 21, 2023, 10:55am UTC](https://forums.swift.org/t/how-to-add-a-button-to-the-viewcontroller-swift/65103 "2023-05-21T10:55:04Z")

</div>

The following code outputs an empty user interface. When I go to main in xcode and I were able to add a button manually. Then it shows the button. But I want to write code to add a button and I don't want to drag and dro…

---

## [Swift compiler error with xcode12.2](https://forums.swift.org/t/swift-compiler-error-with-xcode12-2/47073)

<div class="topic-metadata">

**Author:** [@fero2004](https://forums.swift.org/u/fero2004)\
**Replies:** 0\
**Last updated:** [April 1, 2021, 3:12am UTC](https://forums.swift.org/t/swift-compiler-error-with-xcode12-2/47073 "2021-04-01T03:12:42Z")

</div>

I compiler swift in macOS 10.15.4 , Xcode 12.2, swift version swift-5.3.1-RELEASE build-script --release-debuginfo --debug-swift --Xcode but I found this error: but none of these is a common dependency of the other(s…

[Previous page](https://forums.swift.org/tag/macos/178.md?match_all_tags=true&tags%5B%5D=macos)

[Next page](https://forums.swift.org/tag/macos/178.md?match_all_tags=true&page=2&tags%5B%5D=macos)
