I\'m working on creating my own framework, I added objective c files and its working fine after that I needed to add some swift file after adding swift file xcode is not giving
Finally I got solution. I did following changes. Here below is to do list in your Framework.
Swift classes usage in Objective C classes
#import
in Objective
cI followed Apple's Mix and Match approach.
Note: sometimes the
file can not be imported into headers, but only into .m
files. FYI, this file is created automatically by the compiler. If you search your project for it, you won't be able to find it, but if you ⌘ click on it (as a file imported in your code) in a file that is in your target, Xcode will (should) open it and show you all the Objective-C class interfaces for your Swift classes. To see the name for the Swift -> Objective-C module header, go to your target's Build Settings and search for $(SWIFT_MODULE_NAME)-Swift.h
or simply -Swift
.