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!
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Can you write swift code interfacing with Endpoint Security and implementing a ES product?