1. I added the files directly to my project from finder to Xcode.
  2. Bridging header was automatically created by Xcode.
  3. #import the Class into the Bridging header - no issues on the Bridging Header.
  4. I try to instantiate Class var into swift class - "use of undeclared type" error shows up.

    • Notes: When I try to COMMAND + click on the #import I get the message "Symbol Not Found".
2

There are 2 best solutions below

0
On BEST ANSWER

Turns out that file (A.swift) that was trying to reference the "other file" (B.swift) had "test target membership" selected! So I either had to add the "other file"(B.swift) to the test target membership or remove file (A.swift) from the test target membership. I hope that makes sense and that it is of help to someone.

1
On

You need to have your bridging filename set to the "Objective-C Bridging Header" field under the Swift Compiler section in Build Settings for it to be included by the Compiler. enter image description here

"Symbol Not Found" is just an Xcode bug, I get that but I have no issues using bridged files.