Since moving a mixed Swift and Objective-c project to XCode 8 with Swift
2.3, I have been getting a "Command failed due to signal: Segmentation
fault: 11" error every time I run my tests after making a change in any of
the test files.
When I click on the error for more information I see:
<module-includes>:1:9: note: in file included from <module-includes>:1:
include of non-modular header inside framework module 'Utilities'
And basically just a bunch of similar errors following that ending in:
<unknown>:0: error: could not build Objective-C module 'Utilities'
Utilities in this case is a framework that I made. All of the headers in
the Utilities.h file are imported with angle brackets and the headers are
marked as public.
After it segfaults, it will run properly until I make a change to the test
file. It only has this issue when testing, not when building or running.
Other things I've tried:
- Changing the framework and tests to allow non modular includes
- Enabling/disabling bitcode
Any help would be appreciated.