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

Duplicate symbol when linking with Unity + ARKit #69

Closed
swylietoal opened this issue Jan 10, 2018 · 4 comments · Fixed by #70
Closed

Duplicate symbol when linking with Unity + ARKit #69

swylietoal opened this issue Jan 10, 2018 · 4 comments · Fixed by #70
Labels
bug Confirmed bug

Comments

@swylietoal
Copy link

Expected behavior

Bugsnag is able to be added without needing code modification

Observed behavior

Bugsnag library conflicts with Unity ARKit plugin (StartSession)

Steps to reproduce

New Unity Project
Import ARKit plugin
Open Example Scene
Add Bugsnag
Run for iOS

  • Xcode build fails with duplicate symbol linker error

Can't comment on Issues?

While not technically a blocking issue, this is definitely a friction point for on boarding new apps. Worked around by prefixing StartSession with BS_ in BugsnagUnity.mm and Bugsnag.cs - although a more elegant naming scheme may be better...

@kattrali
Copy link
Contributor

Thanks for the report, @swylietoal - can you paste a snippet of the exact wording of the error? This should be a fairly quick fix though I want to be sure there's no other underlying issues.

@kattrali kattrali added the bug Confirmed bug label Jan 10, 2018
@miv
Copy link

miv commented Jan 14, 2018

@kattrali I've encountered similar error.

duplicate symbol _StartSession in:
    /Users/megatron/Library/Developer/Xcode/DerivedData/Unity-iPhone-eizneylhlnjxjwdoxzyzwszpdrde/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/arm64/ARSessionNative.o
    /Users/megatron/Library/Developer/Xcode/DerivedData/Unity-iPhone-eizneylhlnjxjwdoxzyzwszpdrde/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/arm64/BugsnagUnity.o
ld: 1 duplicate sym

And if i understand correctly this function need renaming

Propably wise to append Bugsnag_ to all extern definitions.

@natalieSED
Copy link

Im having this same issue with Bugsnag 4.0. Any word on that?

@kattrali
Copy link
Contributor

kattrali commented Jan 8, 2019

@natalieSED Things have changed fairly significantly since this happened, can you open a new issue with the exact error message that you're seeing?

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

Successfully merging a pull request may close this issue.

4 participants