This arises in regard to a question over on the Apple developer forums. Given this scenario:
Assume there is a developer A who wishes to distribute a library (say, for accessing A's web service) to client developers to use in their applications (that, say, access A's web service).
I have these questions:
[a] Is there currently any mechanism by which A can distribute any kind of component containing already-compiled Swift code?
[b] If the answer is "no", does the answer change at all if the client can be restricted to the same version of Xcode and Swift as A?
By component, I mean any combination of frameworks or static libraries that can be presented to clients as a single item to add to the client's Xcode project.
Based on what @eskimo has said on the subject, it seems like the answers are "no" at least most of the time.
If the answers are "no" all of the time, this seems like a pretty big deal for developers who are not in a position, for business reasons, to publish all of their source code.
Here's the thread where this discussion is ongoing:
(FWIW, it's long mainly because I kept answering the wrong question or giving the wrong answer. I'd like to be able to stop doing that. @eskimo appears to have said that an app target cannot use a Swift-based framework unless it was built as a framework target in the same project as the app — but I might have misunderstood.)