I wrote a cocoa touch framework in swift code
Test.framework
In this framework i can see files Test.h and test-Swift.h
I am now trying to import it to an objective c project.
Put the file in the project folder and in build phases i added the framework to "Link Binary With Libraries" and "Copy Bundle Resources"
Now i am not sure about ho to do it but when i try to import the fraqmework in the ViewController.m class like this:
#import "Test-Swift.h"
It gives me file not found error
BTW when creating new Swift project and doing the same it works
Aucun commentaire:
Enregistrer un commentaire