Skip to content
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

Rollbar won't compile for a Swift Mac OS app #348

Closed
ajram23 opened this issue Jul 11, 2024 · 16 comments · Fixed by #349 or #353
Closed

Rollbar won't compile for a Swift Mac OS app #348

ajram23 opened this issue Jul 11, 2024 · 16 comments · Fixed by #349 or #353
Assignees
Labels

Comments

@ajram23
Copy link

ajram23 commented Jul 11, 2024

Describe the bug
Trying to integrate with Rollbar in my swift APP

To Reproduce
Steps to reproduce the behavior:

  1. Add swift package manager
  2. Try to compile the app
  3. See error

Expected behavior
See attached screen shot

Screenshots
If applicable, ad
Screenshot 2024-07-10 at 9 11 11 PM
Screenshot 2024-07-10 at 9 11 05 PM
d screenshots to help explain your problem.

Rollbar-Apple SDK version: v...

Calling the SDK from (x-mark all suitable):
[] Objective-C
[X] Swift
[] Other:

Runtime environment (please complete the following information as applicable):

  • Device: [e.g. macMini, iMac, iPhone, etc.] MacBook Pro
  • OS: [e.g. iOS, macOS, etc] MacOS
  • OS version: 15
  • Browser [e.g. chrome, safari] Not a browser
  • Browser version:

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Copy link

linear bot commented Jul 11, 2024

@matux
Copy link
Collaborator

matux commented Jul 11, 2024

@ajram23 This should be fixed now in the latest 3.3.1. Cocoapods release may take a bit longer to go out. Thanks for the report!

@ajram23
Copy link
Author

ajram23 commented Jul 11, 2024

@matux Glad! Had to struggle with 2 weeks of back and forth with your support which ended up being a deadline. So grateful that you fixed this right away! Will check it out!

@matux
Copy link
Collaborator

matux commented Jul 11, 2024

Thank you for your patience, @ajram23. I'll make sure to pass your message.

@ajram23
Copy link
Author

ajram23 commented Jul 11, 2024

Can confirm this works! Thank you! 🙏🏼

@nemesis
Copy link

nemesis commented Aug 15, 2024

Hi there, I'm still getting an error:

.../checkouts/rollbar-apple/RollbarNotifier/Sources/RollbarCrash/Util/RollbarCrashMachineContext.c:42:9: error: missing '#include <sys/_types/_ucontext64.h>'; 'ucontext64_t' must be declared before it is used

Does this support a specific range of Xcode 16 betas? I'm trying it out on Version 16.0 beta 5 (16A5221g)

Thanks!

@ajram23
Copy link
Author

ajram23 commented Aug 15, 2024

@nemesis Works for me on the latest Xcode Beta.. (Mac app not iOS)

@nemesis
Copy link

nemesis commented Aug 15, 2024

Sorry, forgot to mention, I'm trying to run this as part of an iOS target. I can provide more debug info if needed?

@ajram23
Copy link
Author

ajram23 commented Aug 15, 2024

I am just another dev who filed the bug. Dont work for roller :)

@nemesis
Copy link

nemesis commented Aug 16, 2024

@matux I pushed a minimal repro project to https://github.com/nemesis/rollbar-xcode16

$ git clone
$ tuist install
$ tuist generate

seems that the issue is fixable by doing

#include <sys/_types/_ucontext64.h>

before typedef'ing here

@matux
Copy link
Collaborator

matux commented Aug 16, 2024

Thanks @nemesis @ajram23, this may have begun happening on the latest release of the Xcode 16 Beta (5).

I'm reopening this issue and working on fixing it, I believe there's a PR up already: #353.

@matux matux reopened this Aug 16, 2024
@nemesis
Copy link

nemesis commented Aug 16, 2024

Great, thanks for taking care of it!

@matux matux linked a pull request Aug 16, 2024 that will close this issue
12 tasks
@matux
Copy link
Collaborator

matux commented Aug 16, 2024

A new version 3.3.2 with the compilation issue addressed is out for SPM, Cocoapods release coming soon.

@timothyrobb
Copy link

Any update on that Cocoapods release after a month?

@matux
Copy link
Collaborator

matux commented Sep 19, 2024

@timothyrobb 3.3.2 is out now in Cocoapods, thank you for your patience!

@kevinconcourse
Copy link

@matux How do i install this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
6 participants