I have an old project(MainExample
) which is only Objective C implementation as this is a legacy project. This project is a collection of static libraries(Library1.a
, Library2.a
) and a main UI Target(MainExample
). Now there is a requirement to add a new feature to the Static library in Swift. How to consume there Swift classes from Static Libraries?
I have added necessary Swift files to MainExample
Target and added necessary MainExample-Swift.h
file. When I reference these Swift files from MainExample
all is good. But when I try to reference Swift files from Library1
or Library2
it is not able to find the classes. The header file MainExample-Swift.h
also not recognizable within Library1
and Library2
.
How do I resolve this?
Krish is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.