Search code examples
swift3xcode8

Warning 'myframe-Bridging-Header.h' in Xcode 8.3


I updated Xcode to Version 8.3 (8E162) and in my unit test file I have this warning:

Implicit import of bridging header 'myframe-Bridging-Header.h' via module 'myframe' is deprecated and will be removed in a later version of Swift

on this line:

@testable import myframe

How to fix this warning?


Solution

  • That article helped me to fix the warning: https://bugs.swift.org/browse/SR-3801

    I selected:

    chain the import by adding #import "App-Bridging-Header.h" to any existing unit test bridging header you have