There are literally 1000s of posts on stackexchange and other places with people having problems creating frameworks.
I have no idea where the documentation is for creating a framework. In my case I am trying to create a class full of math functions.
1. I made a new project of "OSX -> Cocoas Framework"
2. I added a file with of type swift
3. I put in the class
public class TF {
public func f1() {
println("works")
}
}
4. I make a new project (in my case an OSX command line tool)
5. I drug the "Products->TFWork.framework" from the framework project into my new project
6. I hit run... and I then I get this:
dyld: Library not loaded: @rpath/TFWork.framework/Versions/A/TFWork
Referenced from: /Users/arh/Library/Developer/Xcode/DerivedData/TFTest-ezwiddsiqvhxwbavwdalvosatvrk/Build/Products/Debug/TFTest
Reason: image not found
(lldb)
I see stuff like this on stack exchange... but none of these posted solutions seem to work.
Ideas?
Thanks,
Alan