Building Pure Swift Cocoa Touch Framework

Building pure Swift Cocoa Touch Framework

EDIT (7/27/2018)

The information in the answer below may no longer be accurate. Your mileage may vary.


I sat down with an engineer and asked this exact question. This was their response:

Xcode 6 does not support building distributable Swift frameworks at this time and that Apple likely won't build this functionality into Xcode until its advantageous for them to do so. Right now, Frameworks are meant to be embedded in your app's project, rather than distributed. If you watch any of the session videos or see the sample projects, this is always the arrangement. Another reason is that Swift is very new and likely to change. Thus your Swift-based framework is not guaranteed to work on the platform you originally built it on.

Slight Update

The engineer mentioned that it's not impossible to make a framework for distribution, just that it's not supported.

Xcode 6 iOS Creating a Cocoa Touch Framework - Architectures issues

Sorry I've let this topic open for such a long time... Some of you has correctly answered to my question. When I wrote this question I didn't catch there were two slices in a complete (also called fat) framework (ready to use). One for the iOS devices and one for the simulator. When I discovered that I made a script using lipo command to fusion the two slices and got automatically a complete framework.



Related Topics



Leave a reply



Submit