Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swift Framework: Umbrella header '[...].h' not found

In a custom framework containing both Objective-C and Swift code, the Swift compiler throws the following error:

[build_path]/unextended-module.modulemap:2:19: error: umbrella header 'bugtest.h' not found
  umbrella header "bugtest.h"
                  ^
<unknown>:0: error: could not build Objective-C module 'bugtest'
like image 974
Tim Bodeit Avatar asked Oct 16 '22 21:10

Tim Bodeit


1 Answers

This usually happens after a project rename or something like that. The problem is that the umbrella header is no longer listed as a Public header. Check the attached image to see how to fix this.

Fix

like image 286
arturgrigor Avatar answered Oct 19 '22 11:10

arturgrigor