1

I am getting following warnings and errors while in my WatchKit extension:

Warning: no rule to process file 'App-Bridging-Header.h' of type sourcecode.c.h for architecture x86_64

/Users/janusz/Desktop/Repositories/RunnerAppWatch/Source/WormholeMessanger.swift:12:20: Use of unresolved identifier 'MMWormhole'

Bridge Header

It's also listed in Compiled Sources section.

Everything works fine when I delete the WatchKit Extension, but once I add it back I am getting errors again. So the question is: how to make bridging header work with the WatchKit Extension? Thanks!

Dharmesh Dhorajiya
  • 3,976
  • 9
  • 30
  • 39
Janusz Chudzynski
  • 2,700
  • 3
  • 33
  • 46

1 Answers1

3

The bridging header must not be included in the Compiled Sources section. In general, headers should not be added to Compiled Sources. So, remove that and it should work.

RawMean
  • 8,374
  • 6
  • 55
  • 82