Post

Replies

Boosts

Views

Activity

.a swift static builds for macOS in Xcode?
On the command-line I can generate a .a static file from a swift file no problem via: $ swiftc -emit-module -emit-library -static myswiftcode.swift how do I do this under Xcode? For macOS the only "library" project option is for cocoa or C/C++. iOS has a static library project setup but won't work if I try to use that on macOS. My best guess was creating an empty project targeting a "command-line" app for macOS, but the compile is expecting _main: Undefined symbol: _main anybody know how to set up Xcode target for a .a static build from swift files on macOS? Thanks!
0
0
483
Jan ’22