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

x/mobile: Duplicate symbol '_OBJC_CLASS_$_Universeerror' #52039

Open
KiranKumar6236 opened this issue Mar 30, 2022 · 2 comments
Open

x/mobile: Duplicate symbol '_OBJC_CLASS_$_Universeerror' #52039

KiranKumar6236 opened this issue Mar 30, 2022 · 2 comments
Labels
mobile NeedsInvestigation
Milestone

Comments

@KiranKumar6236
Copy link

@KiranKumar6236 KiranKumar6236 commented Mar 30, 2022

Environment

Xcode - 12.4
Language - Objective-C Project
Project Type - React Native

Issue

Converted a couple of go projects/libraries to iOS frameworks (.xc).
Trying to use those 2 in one iOS project but facing compiler issue like "Duplicate symbol 'OBJC_CLASS" which are related to objects of autogenerated files like Universe.objc.h.
Screenshot 2022-03-30 at 11 22 04 PM

Approach tried: 1

Did prefix binding of the go files
gomobile bind -target ios -prefix My

Result: Failed - Binder didn't bind the objects under Universe.objc.h. so the issue of duplicate symbols persists

Approach tried: 2

Update the linker flag config in Xcode
-objc

Result: Failed- The issue of duplicate symbols persists

@gopherbot gopherbot added the mobile label Mar 30, 2022
@gopherbot gopherbot added this to the Unreleased milestone Mar 30, 2022
@cherrymui
Copy link
Contributor

@cherrymui cherrymui commented Apr 5, 2022

What version of Go and gomobile do you use? Thanks.

@cherrymui
Copy link
Contributor

@cherrymui cherrymui commented Apr 5, 2022

@cherrymui cherrymui added the NeedsInvestigation label Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mobile NeedsInvestigation
Projects
None yet
Development

No branches or pull requests

3 participants