Having private or internal methods with async modifier inside open class contained inside xcframework or Swift Package and subclassing in other framework or project ends up with Undefined symbol errors looking for this exact method marked as private/internal when building with Release configuration. Current workaround is to put all private and internal methods in separate extension
Project runs with Release configuration - Archiving the project is impossible as well
Environment
Swift compiler version info:
swift-driver version: 1.62.15 Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51) Target: arm64-apple-macosx12.0
Description
Having
private
orinternal
methods withasync
modifier insideopen class
contained insidexcframework
orSwift Package
and subclassing in other framework or project ends up withUndefined symbol
errors looking for this exact method marked asprivate/internal
when building withRelease
configuration. Current workaround is to put allprivate
andinternal
methods in separateextension
Steps to reproduce
Sample project here: Example.zip OR - Step 1:
Code inside
library
:Code inside other framework / target
- Step 2: Run with
Release
configuration- Step 3: Building fails with:
Expected behavior
Project runs with
Release
configuration -Archiving
the project is impossible as wellEnvironment
swift-driver version: 1.62.15 Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51) Target: arm64-apple-macosx12.0
14.2
iOS 14.0