XCTest - “Test failed”

后端 未结 3 601
暗喜
暗喜 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:25

    I had the same "no suitable image found" issue when was trying to add tests to an existing ios project. Try to go to Build Settings of your Tests target and set "Build Active Architecture Only" to "No". This solved my issue.

    Also, make sure you have the same Architecture for both targets or you'll get strange linker errors.

提交回复
热议问题