2

I have workspace contains subprojects and one of the subprojects generates static lib which contains both ObjC and swift which is linked to main application project. I am unable to access a swift class from a static library in ObjC file in application target.

How can I access a swift class from the static library in ObjC file in application target?

Faysal Ahmed
  • 7,501
  • 5
  • 28
  • 50
V V
  • 774
  • 1
  • 9
  • 29

2 Answers2

2

I figure it out. The issue was module-swift.h of subproject static library is generated in derivedData intermediate DerviedSource folder which is not known to main application target. The issue resolved :)

V V
  • 774
  • 1
  • 9
  • 29
-1

I think, it is not possible. Xcode doesn't support Swift static libraries. You can read about it here: https://forums.developer.apple.com/thread/73900