Only certain Test Scheme are getting errors in Swift source files.
The error output to the log with the Compile process message is as follows. I hope someone can fix this build error🤧
Compile Swift source files (x86_64)
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target 'HogeApiTests' from project 'Hoge')
...
<unknown>:0: error: unable to execute command: Illegal instruction: 4
<unknown>:0: error: compile command failed due to signal 4 (use -v to see invocation)
Compile HomeSpec.swift (x86_64) ※ Most Swift files get this Error
CompileSwift normal x86_64 /Users/HogeUser/job/Hoge/HogeApiTests/Entity/HogeSpec.swift (in target 'HogeApiTests' from project 'Hoge')
...
Command CompileSwift failed with a nonzero exit code
Compile Hoge12Spec.swift (x86_64) ※ I get this Error in some Swift files
CompileSwift normal x86_64 /Users/HogeUser/job/Hoge/HogeApiTests/Entity/Hoge12Spec.swift (in target 'HogeApiTests' from project 'Hoge')
...
error: Illegal instruction: 4 (in target 'HogeApiTests' from project 'Hoge')