-
Notifications
You must be signed in to change notification settings - Fork 76
ld: 221 duplicate symbols for architecture x86_64 #3
Comments
This is caused by having two copies of React Native in the Xcode project, one from CocoaPods and another as a subproject. Since Lock will need cocoapods to fetch it's dependencies, the suprojects should be removed, which is everything under |
@hzalaz thanks, you just solved my problem with a react-native google maps ios project that was installed through CocoaPods. Was stuck on it for hours and hours as the project could build in Debug and Release but throws these errors when attempting to Archive. |
How exactly do you fix this tho? Having the same problem with |
Found it, nevermind. For anybody else having the same issue: Look at your |
@nikolakanacki When I remove these references in Libraries, the duplicate errors go away, but I get runtime errors when building. For example, removing RCTImage results in all images not being able to render (I get red boxes instead). Any more specifics on how to remove these dupes? |
@richardcalahan Just brushed through the relevant codebase where I had this problem: what I ended up doing is removing those dupes from the Podfile instead of the Xcode Libraries (effectively leaving the Libraries group untouched for this fix). Also found a "@note" in the Podfile I've (apparently) left for myself saying that the first solution I posted above "wont build production". Hope this helps. |
It also just occured to me that "production" (at the time being) may have ment "run from Xcode" vs "run from rn cmdline" |
@nikolakanacki
from my Podfile How to deal with it? |
Anyone getting this error, I manage to fix it by this answer: |
@bitsal ditto. Did you ever find a fix? |
I just removed React lib and their sublibs from cocoapods and linked them manually. |
When I do that and run pod install it tries to install React 0.11.0 of all things (if I run pod install) Sent from my Google Pixel XL using FastHub |
Try to add code at the very end of Podfile:
|
@8of thanks!! i've wasted days on this issue... your code seems to help ! |
@8of thanks!! I spent a lot of time trying to fix that. <3 |
@8of Thanks dude! |
thanks @8of |
Once I have
pod install
and thenopen
the.xcworkspace
. Attempting to run:The text was updated successfully, but these errors were encountered: