-
Notifications
You must be signed in to change notification settings - Fork 17
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
SwiftVerifyEmittedModuleInterface error when compiling RollbarReport
with Framework Target
#328
Comments
The issue is tied to the RollbarReport module itself. The RollbarCrash classes are not at fault here to corect myself. This isssue is happening with version 3.1.0 |
@rashadatjou Hey! I appreciate you taking the time to report this issue, I'm looking into this right now. In the meantime, could you try archiving through Xcode and check if it works? I'm gonna take care of the module/class name conflict, asap. |
@rashadatjou I've created the However, Xcode is able to build and archive fine with this option enabled. I'm using the You're welcome to have a look, I'm gonna keep trying to get this working. |
@rashadatjou The error being reported
Points at the module not being included in whatever While researching this issue, there seem to be a fair amount of people having issues with this and, apart from the known same-Module/Type name collision bug, there seem to be other issues, especially when dealing with mixed libraries. This is the
Note It's also important to note, this was the default behavior on Xcode 14.2 and below. I hope this doesn't give you trouble after turning off the References:
@rollbar-bborsits @mudetroit FYI, there's no further action required here, for now. |
I have tried the above mentioned fix a while ago but unfortunately the .swiftinterface file is really broken it is not a false alarm from the compiler. The RollbarCrash module is broken and this might cause you guys issue with Xcode 15 as well. I have looked into RollbarCrash and one thing that stood out is the Also you can read more about the module verifier in xcode here: https://developer.apple.com/documentation/xcode/identifying-and-addressing-framework-module-issues You can trigger the error using the command bellow (so you don't need to embed into a xcframework to test it out). Make sure that you are executing this command inside of RollbarNotifier:
|
Describe the bug
After resolving the issue with Rollbar-Apple SDK, we are now encountering a similar problem with another part of the library called
RollbarReport
. When trying to compile the framework withRollbarReport
as a dependency, the.swiftinterface
file is broken, leading to a compile-time error. The issue appears to be related to theRollbarCrash
module, which contains files with the same name, specificallyRollbarCrash.h
andRollbarCrash.m
. This naming conflict might be the reason whyRollbarReport
is failing to be compiled with a framework target.To Reproduce
Steps to reproduce the behavior:
RollbarNotifier
as a dependency to a Swift framework project.xcodebuild
with the flagBUILD_LIBRARY_FOR_DISTRIBUTION = YES
.Expected behavior
We expected the framework to compile successfully without errors, even when including
RollbarReport
as a dependency.Screenshots
Rollbar-Apple SDK version:
3.1.0
Calling the SDK from (x-mark all suitable):
[] Objective-C
[X] Swift
[] Other:
Runtime environment (please complete the following information as applicable):
Xcode Versions Used: 14.3.1
Swift Version Used: 5.8
Additional context
This issue arose after resolving a similar problem with Rollbar-Apple SDK. We suspect that the naming conflict in the
RollbarCrash
module might be causing the issue withRollbarReport
. Any insights or solutions to address this problem would be greatly appreciated.The text was updated successfully, but these errors were encountered: