In my case I deleted my tests target, then re-added it using the + below targets and selecting "iOs Unit Testing Bundle"
由于某种原因,这得到了一个编译错误,所以我更改了“ Per-CONFIGURATION Intermediate Build Files Path: For my test target to $(PROJECT _ TEMP _ DIR)/$(CONFIGURATION) For both debug and release。这允许编译工作。