I have the following structure for a Swift framework:
FrameworkA
├── FrameworkA.swift
└── Objective-C
├── ClassA.h
└── ClassA.m
Unfortunately, I cannot access ClassA
within FrameworkA.swift
; the error is:
Use of unresolved identifier 'ClassA'
ClassA
should be protected/framework-internal.
What am I doing wrong?
As per Apple Docs
So, officially, it looks like there's no way to see an Objective-C class in Swift files without exposing it publicly. ☹️