2

I have a project in Swift and importing some custom frameworks. I have added another configuration (testing). When I build for Debug or Release configuration I have no issues with the bridge header. But if build for testing configuration. I get the error "failed to import bridging header"

Any of you knows why this is happening with a non debug/release configuration?

I'll really appreciate your help

user2924482
  • 8,380
  • 23
  • 89
  • 173
  • I've had this problem for a while: http://stackoverflow.com/questions/32150012/xcode-6-4-swift-unit-test-wont-compile-gpuimage-h-not-found-failed-to-impor – Aggressor Jul 26 '16 at 17:37
  • Have you manually added bridging header in build settings for test configuration? – Evgeny Karkan Jul 26 '16 at 17:37
  • @EvgenyKarkan when I generate the test configuration I duplicate my debug configuration. What you mean Have you manually added bridging header? – user2924482 Jul 26 '16 at 17:44
  • Oh then its ok. I mean don't forget to add it here - https://monosnap.com/file/1j8UeoX021SQCqQ3iRkCKweUifNbCl – Evgeny Karkan Jul 26 '16 at 17:45
  • @EvgenyKarkanthe bridging header are showing for al the configuration Release/Debug/Testing – user2924482 Jul 26 '16 at 17:51
  • And even for tests target? I guess you are using it right? – Evgeny Karkan Jul 26 '16 at 17:52
  • What you mean test target?, the bridging header file? – user2924482 Jul 26 '16 at 17:55
  • Oh, never mind, I thought you are using unit tests target - https://monosnap.com/file/ionm0k4m9av7CZSIVvZMo2xWtV93Eg – Evgeny Karkan Jul 26 '16 at 17:59
  • @user2924482 I'm facing the same issue now. Have you managed to fix it? – MaksTheAwesome Jul 05 '17 at 19:24
  • @MaksTheAwesome, did you make sure add the bridging header to your test target : https://monosnap.com/file/ionm0k4m9av7CZSIVvZMo2xWtV93Eg# – user2924482 Jul 06 '17 at 18:13
  • @user2924482 Well with targets, everything works fine but first I wanted to use one extra build configuration which was the problem. I have a sample project where it works but for some reason the issue remains for me so I made a workaround and created a target for each configuration I need. – MaksTheAwesome Jul 07 '17 at 19:51

0 Answers0