roy roy - 10 months ago 92
iOS Question

In oc project to import swift file by cocoapods , *-Swift.h not found

I met a question, my project was created by oc , then I import a swift file by cocoapods , and I set Defines Module . In normal , It will have a *-Swift.h by created by default, but when I import *-Swift.h to project, It will tell me file not found, but if I not use cocoapods import file , it will not have this question. who can tell me why ? thanks in advance.

Answer Source

Use a module import like:

@import Alamofire;