So, I wrote a framework in Swift 3. I've used it successfully as an embedded framework in my projects and will continue to do so. What I'd also like to do is build a "Release" version and keep it in my /Library/Frameworks folder so that I can use the import command to import it into future test projects (for internal use only.) How is this done?
I've played around with the Deployment setting of my framework project (such as the follwing settings: Installation Directory, Skip Install, Deployment Location, etc.) which, I'm assuming with the proper settings, would build my framework and place a release version into the /Library/Frameworks folder, ready for use. But I can't seem to get it working that way.
I have tried "Build for Profiling" which creates a Release build and then manually copying the built product into the aforementioned folder. But issuing an import MyFramework statement in a new Xcode project doesn't work as the framework cannot be found. There are a handful of other 3rd party frameworks in that folder that also are not recognized by an import statement.
What am I missing?
ab@pr
The best thing to do here is to make your framework into its own Xcode project, so that you can then include a reference to that Xcode project in all of your future test projects through the steps outlined in the Embedding Frameworks Tech Note. Swift 3 does not have a stable application binary interface (ABI) yet, so having a prebuilt version of the framework to use is not supported, as such a configuration will have problems unless all of the Swift code for the entire app and all frameworks is built by the same compiler.