{"id":1366,"date":"2017-05-12T06:27:40","date_gmt":"2017-05-12T06:27:40","guid":{"rendered":"http:\/\/sophyonline.com\/blog\/?p=1366"},"modified":"2020-08-21T18:45:24","modified_gmt":"2020-08-21T18:45:24","slug":"solved-bridging-header-will-be-removed-in-newer-versions-of-swift","status":"publish","type":"post","link":"http:\/\/sophyonline.com\/blog\/2017\/05\/solved-bridging-header-will-be-removed-in-newer-versions-of-swift\/","title":{"rendered":"Testable import in Xcode"},"content":{"rendered":"<p>In Swift  there&#8217;s a message in &#8220;Test Target&#8221; that states that the bridging header will be removed in newer versions of swift.<\/p>\n<pre><code>  @testable import YourProject<\/code><\/pre>\n<p>You fix it by adding<\/p>\n<pre><code>  #import \"Project-Bridging-Header.h\"<\/code><\/pre>\n<p>inside <strong>ProjectTests-Bridging-Header<\/strong>  and deleting the @testable inside your test<\/p>\n<pre><code>   @testable import YourProject <\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In Swift there&#8217;s a message in &#8220;Test Target&#8221; that states that the bridging header will be removed in newer versions of swift. @testable import YourProject You fix it by adding #import &#8220;Project-Bridging-Header.h&#8221; inside ProjectTests-Bridging-Header and deleting the @testable inside your test @testable import YourProject<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","footnotes":""},"categories":[15,10,16],"tags":[18,20,19,17],"class_list":["post-1366","post","type-post","status-publish","format-standard","hentry","category-swift","category-testing","category-xcode","tag-bridging-header","tag-swift","tag-test-error-message","tag-xcode"],"_links":{"self":[{"href":"http:\/\/sophyonline.com\/blog\/wp-json\/wp\/v2\/posts\/1366","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/sophyonline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/sophyonline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/sophyonline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/sophyonline.com\/blog\/wp-json\/wp\/v2\/comments?post=1366"}],"version-history":[{"count":9,"href":"http:\/\/sophyonline.com\/blog\/wp-json\/wp\/v2\/posts\/1366\/revisions"}],"predecessor-version":[{"id":1437,"href":"http:\/\/sophyonline.com\/blog\/wp-json\/wp\/v2\/posts\/1366\/revisions\/1437"}],"wp:attachment":[{"href":"http:\/\/sophyonline.com\/blog\/wp-json\/wp\/v2\/media?parent=1366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/sophyonline.com\/blog\/wp-json\/wp\/v2\/categories?post=1366"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/sophyonline.com\/blog\/wp-json\/wp\/v2\/tags?post=1366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}