1

It works for one target but not the other. I have looked at build settings to see where this file is set but I can't find it.

#import "Wunder-Swift.h"

This gets me the error "file not found". I have no idea where to set this.

retainCount
  • 4,478
  • 1
  • 22
  • 14
user1898829
  • 3,437
  • 6
  • 34
  • 62
  • Please have look at the similar answer: http://stackoverflow.com/questions/26328034/importing-project-swift-h-into-a-objective-c-class-file-not-found – Anni S Oct 11 '16 at 11:09
  • It says In your case, you have to add this line in the *.m file: #import I have import in .m file so when I do this it doesn't work for either target. when I do the above it works for one target but not the other – user1898829 Oct 11 '16 at 11:36
  • If you are using your swift code inside objective-c file then import to *.m file. If your swift code is in inside some module then like #import otherwise #import – Anni S Oct 11 '16 at 11:43

1 Answers1

-1

Wunder-Swift.h file can be found in Target -> Build Settings -> Objective-c Bridging Header.

Or you can search for "swift", it will show you.

If Wunder-Swift.h is not added in your project then just add a new Objective-C file, it will show an option to add a Bridging-Header file and automatically set your bridge file path.

Iulian Onofrei
  • 9,188
  • 10
  • 67
  • 113
Pratik Patel
  • 1,393
  • 12
  • 18
  • The poster is asking about the generated interface header, not the bridging header. – Jack Mar 12 '17 at 16:58