I added a UITest target to my existing Xcode project.
Recording a UITest works fine. But running the same recorded UITest fails during build with error:
Compile Swift source files
Precompile bridging header
<unknown>:0: error: error opening input file '/Users/<...>/Bridging-Header.h' (No such file or directory)
The path is correct and the file exists at the path.
Any ideas?
The solution was to change the path to the Bridging Header file.
MyAppUITestsBuild Settings > Swift Compiler - General > Objective-C Bridging Header.MyApp/MyApp-Bridging-Header.h with ./MyApp/MyApp-Bridging-Header.h. Adding the . will allow the test target to find the header file.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With