I would like to create a Swift framework and import it into my other projects. Obviously, I would like to share my code by using the framework in question. I was only able to find one related question here
and some tutorials on the internet which did not seem to produce anything useful for me. So here is what I have:
- An XCode project (with a .xcworkspace workspace generated by CocoaPods) that is the actual application that should use the framework.
- A "Cocoa Touch Framework" XCode project that is the framework.
What are the steps to include the framework (2) into the application (1)?
I tried using the method described in the linked question above, but upon building, it says it does not find the actual source files.
< unknown >:0: error: no such file or directory: '/path/to/project/MyFrameWork/SomeClass.swift'
Where /path/to/project/
is obviously just a placeholder...
Bounty goal:
Propose a viable option how I could share a set of classes in an efficient way. I need to be able to reuse code from one project easily and be able to maintain this code in one place. It also needs to be compatible with iOS7, so dynamic libraries probably won't do it for me. Any workflow that would allow me to do what I described above will be a winner. Thanks