XCTest - “Test failed”

后端 未结 3 547
暗喜
暗喜 2021-01-04 20:25

I\'m trying to add tests to a mac app. I\'m using XCTest framework. When i run tests (cmd + U) i receive \"Test failed\" and in console I see :

2013-10-15 13         


        
3条回答
  •  孤城傲影
    2021-01-04 21:09

    You need to disable code signing in order to run unit tests. This page explains how to create a configuration for testing so that your debug and release applications are code signed but your unit tests are not. Don't forget to do a full clean after changing the configuration.

提交回复
热议问题