問題タブ [objective-c-swift-bridge]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ios - "Failed to import bridging header" iOS Unit tests
I have an iOS project with 2 development targets and 1 unit test target. The development targets are hybrid (using Objective-c and Swift at the same time), thus I have to use Bridging-Header.h
within the project.
The problem is when I want to import the module into my unit test class using the following code:
By adding the above line, unit tests stop building and output the following error:
It seems it has some kinds of problems with imported Objective-c pods. Any help in resolving the problem is appreciated.
P.S: My Podfile
: