I've created a package with the following structure:
Models - Swift
UseObjc - Objc, depends on Models
UseSwift - Swift, depends on UseObjc
The idea is to use an enum from Models as a property of an Objective C class. Therefore, in "UseObjc.h" I do @import Models
.
Building Models or UseObjc succeeds. But UseSwift fails with two errors:
Sources/UseObjc/SomeClass.h:1:9: Module 'Models' not found`
Sources/UseSwift/Failure.swift:2:8: Could not build Objective-C module 'UseObjc'
Is this simply unsupported? Is there another way to accomplish this? Something like @class ...
for value types?
5 posts - 3 participants