#import "Project-Swift.h" The file is not updated
I have a project with Swift and Objective-C code. In my current project, I have a problem with the file #import "Project-Swift.h"
not updating if I add new Swift modules.
#import "Project-Swift.h" // does not refresh if I add .swift files
So, fast code is not available in an Objective-C universe. files exist but only contain defaults #defines
, etc. There are no project related materials.
Clearing cache, rebuilding, deleting Derived Data doesn't help.
+3
source to share
3 answers
I decided. I forgot @objc(<class>)
. It is necessary.
Details here (Migration)
Migrating Objective-C Code to Swift
And here (Swift Type Compatibility)
+3
source to share