- I added the files directly to my project from finder to Xcode.
- Bridging header was automatically created by Xcode.
- #import the Class into the Bridging header - no issues on the Bridging Header.
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".
# Imported Obj-C class through automatically created Bridging header, Bridging header seems to find it but Swift class won't
103 views Asked by moyoteg At
2
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.