ios - ModuleName-Swift.h file not found inside of CocoaPod Project -


issue

i have cocoapod project created using pod lib create. there objective-c classes can used inside example project — trying add nsobject subclass written in swift.

the swift class created , bridging header added classes directory.

i try import swift bridging header .m file of class inside pod project:

#import "proflyoutviewcontroller-swift.h"

when compile 'modulename-swift.h' file not found

when import statement is:

#import <modulename/modulename-swift.h> or

#import "modulename/modulename-swift.h"

it compiles , usable!

but...

i return file, indexing runs (i assume) , of sudden get:

modulename/modulename-swift.h file not found.

autocomplete broken on file , use of class shows warning.

question

when using trying use swift bridging header within files of pod project, how should imported? need in order autocomplete working , compilable?

see below example of tabledemo project

enter image description here

to import swift code objective-c same target

import swift code target objective-c .m file within target using syntax , substituting appropriate name:

#import "tabledemo-swift.h" 

the swift files in target visible in objective-c .m files containing import statement. information on using swift objective-c code, see using swift objective-c.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -