Testable import in Xcode

In Swift there’s a message in “Test Target” that states that the bridging header will be removed in newer versions of swift.

  @testable import YourProject

You fix it by adding

  #import "Project-Bridging-Header.h"

inside ProjectTests-Bridging-Header and deleting the @testable inside your test

   @testable import YourProject 
 

Sofia Swidarowicz

I'm an iOS Software Engineer mostly. Known as phynet in the internez. I'm me, full of memory failure and lovely karma.

 

Leave a Reply

Your email address will not be published. Required fields are marked *