V V
V V

Reputation: 822

Unable to access swift file from static library to application target

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?

Upvotes: 2

Views: 820

Answers (2)

V V
V V

Reputation: 822

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 :)

Upvotes: 2

Alexander Gaidukov
Alexander Gaidukov

Reputation: 759

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

Upvotes: -1

Related Questions