-
Notifications
You must be signed in to change notification settings - Fork 425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XCFramework support #464
Comments
Hi, I guess you want to call swift method in OC language? |
Hi, no, using CocoaMQTT in Swift project, the issue is when you want to export this library as a |
I think the quickest way is change the class name from (CocoaMQTT) to (project)CocoaMQTT or something else. |
Yeah, not sure about naming conventions on this project so I guess it's anything that works :) |
This is also now represented as a warning in Xcode. Any plans with this? |
When exporting this library as a
.xcframework
users will get errors inside inside.swiftinterface file
when including it in the project:The name of the type/class (CocoaMQTT) and the module (CocoaMQTT) are the same so they clash in the
.swiftinterface file
. Compiler thinks that all the types are under CocoaMQTT class, not under the CocoaMQTT module => limitation where if a module and a type have the same name, as usage is assumed to be the type first. One of the simpler ways of avoiding this is to rename theCocoaMQTT
class to something else. This would however be the breaking change.Similar issue: parse-community/Parse-SDK-iOS-OSX#1601
The text was updated successfully, but these errors were encountered: