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

Ambiguous use of init when using XCode Cloud #199

Open
femmedecentral opened this issue Oct 3, 2024 · 3 comments
Open

Ambiguous use of init when using XCode Cloud #199

femmedecentral opened this issue Oct 3, 2024 · 3 comments

Comments

@femmedecentral
Copy link

femmedecentral commented Oct 3, 2024

I've been using Rollbar / Rollbar ReactNative successfully for some time, including using it as part of my automatic build pipeline in XCode Cloud. I've been working on things unrelated to Rollbar for the last couple of months and am trying to create a new build using XCode Cloud, and the only errors I seem to be running into with the new build are related to the Rollbar library / integration.

First, I ran into this issue:

RollbarCrash

Error
No type named 'set_terminate' in namespace 'std'
RollbarCrashMonitor_CPPException.cpp:223

Error
No type named 'terminate_handler' in namespace 'std'
RollbarCrashMonitor_CPPException.cpp:66

Error
No member named 'set_terminate' in namespace 'std'
RollbarCrashMonitor_CPPException.cpp:219

But I found a couple of workarounds, either adding pod 'RollbarNotifier', '~> 3.3.2'
or adding

if [target.name](http://target.name/) == 'RollbarCrash'
        file_path = 'Pods/RollbarCrash/RollbarNotifier/Sources/RollbarCrash/Monitors/RollbarCrashMonitor_CPPException.cpp'
        contents = File.read(file_path)
        unless contents.include?('#include <exception>')
          File.open(file_path, 'w') do |file|
            file.puts('#include <exception>')
            file.puts(contents)
          end
        end
      end

to the post install phase of my podfile seemed to clear that up, but now I'm stuck on a new issue:

RollbarReport

Error
Ambiguous use of 'init'
BinaryImage.swift:44

Error
Ambiguous use of 'init'
Report.swift:86

Nothing I do seems to work around this. I've tried updating from "rollbar-react-native": "1.0.0-beta.2" to "rollbar-react-native": "1.0.0-beta.4" and back around, reinstalling both rollbar and rollbar-react-native and nothing seems to help. I can build an archive locally using XCode, but I'd much prefer if my XCode Cloud process works because it has all the correct configs to package a build for production.

@airowe
Copy link

airowe commented Oct 11, 2024

Seeing this locally using xCode 16

@feng-yu-healthbank
Copy link

feng-yu-healthbank commented Oct 15, 2024

Builds started to fail after Xcode was automatically updated to 16 on a physical macbook.

image

    "react": "18.2.0",
    "react-dom": "18.2.0",
    "react-native": "0.74.5",
    "rollbar": "^2.26.4",
    "rollbar-react-native": "^1.0.0-beta.4",

Works fine if I downgrade Xcode to 15.x

@airowe
Copy link

airowe commented Oct 15, 2024

Yeah builds are working fine on xCode 15.x for me as well

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

No branches or pull requests

3 participants