-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Describe the bug
When compiling my framework with Rollbar-Apple, a compiler error occurs. The issue seems to be caused by KSCrash, exposing a class that has the same name as the module KSCrash. This name ambiguity leads to a compiler error, similar to the one listed in swiftlang/swift#64669.
To Reproduce
Steps to reproduce the behavior:
- Add the Rollbar-Apple dependency to a Swift framework project.
- Import Rollbar Notifier
- Try to archive the framework.
The compiler error occurs.
Expected behavior
I expected the framework to compile successfully without errors, even when including Rollbar-Apple as a dependency.
Rollbar-Apple SDK version: 3.0.0
Xcode Versions Used:
14.2
14.3
14.3.1
Swift Version Used:
5.7
5.8
Additional Context
When trying to ignore this error with the -no-verify-emitted-module-interface
compiler flag, the compiled .swiftinterface file ends up broken and unusable. This issue appears to be a limitation of the Swift compiler when a type has the same name as a module. I believe adjusting the naming in KSCrash to avoid this ambiguity could solve the issue.