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 symbols for architecture x86_64 #443

Closed
thanhquang28 opened this issue Sep 16, 2021 · 7 comments
Closed

duplicate symbols for architecture x86_64 #443

thanhquang28 opened this issue Sep 16, 2021 · 7 comments

Comments

@thanhquang28
Copy link

Environment

RN 0.63.4
macOS Big Sur
XCode 12.5.1
Node 14.17.0

Description

im just install with yarn add react-native-pager-view and cd ios/ && pod install
when build in xcode and here is what i got:

duplicate symbol '_OBJC_CLASS_$_RCTOnPageScrollEvent' in: /Users/***/Library/Developer/Xcode/DerivedData/myproject-arxxyetrzfebktbhkqthuifxnipb/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(RCTOnPageScrollEvent.o)
....
/Users/***/Library/Developer/Xcode/DerivedData/myproject-arxxyetrzfebktbhkqthuifxnipb/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(ReactViewPagerManager.o)
ld: 39 duplicate symbols for architecture x86_64

i have tried all the solution in this topic but nothing changed

@ikimiler
Copy link

please remove @react-native-community/viewpager from package.json,the build success

@thanhquang28
Copy link
Author

please remove @react-native-community/viewpager from package.json,the build success

i'm follow this step:

  • in root folder, remove node_modules, yarn.lock
  • in root/ios, remove folder Pods
  • Then remove @react-native-community/viewpager from package.json
  • yarn install
  • cd ios && pod install and this error show up
  • [!] No podspec found for react-native-viewpagerin../node_modules/@react-native-community/viewpager`

@troZee
Copy link
Member

troZee commented Sep 20, 2021

Could you provide your package.json file ? it seems like some dep uses it

@thanhquang28
Copy link
Author

Could you provide your package.json file ? it seems like some dep uses it

this is my deps
https://pastebin.pl/view/1a3f76c1

@Xplosive06
Copy link

Xplosive06 commented Sep 23, 2021

I've got the same problem since few days and every time I install a new package.

It only happens on IOS build, not with Android build.

Once in five, after uninstalling and reinstalling everything, the build works, but if you add a new package, the build failed again.

I tried almost everything, deleting node_modules, pods, reinstalling, killing processes etc...

What worked a few times was to do:

  • npm install without react-native-pager-view
  • pod install
  • npm i react-native-pager-view
  • pod-install

But the problem comes back with each modification of packages.

My package.json.

The stack trace on build:

duplicate symbol 'OBJC_CLASS$_RCTOnPageScrollEvent' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(RCTOnPageScrollEvent.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(RCTOnPageScrollEvent.o)
duplicate symbol 'OBJC_METACLASS$_RCTOnPageScrollEvent' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(RCTOnPageScrollEvent.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(RCTOnPageScrollEvent.o)
duplicate symbol 'OBJC_IVAR$_RCTOnPageScrollEvent._offset' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(RCTOnPageScrollEvent.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(RCTOnPageScrollEvent.o)
duplicate symbol 'OBJC_IVAR$_RCTOnPageScrollEvent._position' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(RCTOnPageScrollEvent.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(RCTOnPageScrollEvent.o)
duplicate symbol 'OBJC_IVAR$_RCTOnPageScrollEvent._viewTag' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(RCTOnPageScrollEvent.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(RCTOnPageScrollEvent.o)
duplicate symbol 'OBJC_IVAR$_RCTOnPageScrollStateChanged._coalescingKey' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(RCTOnPageScrollStateChanged.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(RCTOnPageScrollStateChanged.o)
duplicate symbol 'OBJC_IVAR$_RCTOnPageScrollStateChanged._viewTag' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(RCTOnPageScrollStateChanged.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(RCTOnPageScrollStateChanged.o)
duplicate symbol 'OBJC_IVAR$_RCTOnPageScrollStateChanged._state' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(RCTOnPageScrollStateChanged.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(RCTOnPageScrollStateChanged.o)
duplicate symbol 'OBJC_CLASS$_RCTOnPageScrollStateChanged' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(RCTOnPageScrollStateChanged.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(RCTOnPageScrollStateChanged.o)
duplicate symbol 'OBJC_METACLASS$_RCTOnPageScrollStateChanged' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(RCTOnPageScrollStateChanged.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(RCTOnPageScrollStateChanged.o)
duplicate symbol 'OBJC_IVAR$_RCTOnPageSelected._coalescingKey' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(RCTOnPageSelected.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(RCTOnPageSelected.o)
duplicate symbol 'OBJC_IVAR$_RCTOnPageSelected._position' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(RCTOnPageSelected.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(RCTOnPageSelected.o)
duplicate symbol 'OBJC_IVAR$_RCTOnPageSelected._viewTag' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(RCTOnPageSelected.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(RCTOnPageSelected.o)
duplicate symbol 'OBJC_CLASS$_RCTOnPageSelected' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(RCTOnPageSelected.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(RCTOnPageSelected.o)
duplicate symbol 'OBJC_METACLASS$_RCTOnPageSelected' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(RCTOnPageSelected.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(RCTOnPageSelected.o)
duplicate symbol 'OBJC_IVAR$_ReactNativePageView._coalescingKey' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(ReactNativePageView.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(ReactNativePageView.o)
duplicate symbol 'OBJC_IVAR$_ReactNativePageView._currentIndex' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(ReactNativePageView.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(ReactNativePageView.o)
duplicate symbol 'OBJC_IVAR$_ReactNativePageView._currentView' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(ReactNativePageView.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(ReactNativePageView.o)
duplicate symbol 'OBJC_IVAR$_ReactNativePageView._reactPageIndicatorView' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(ReactNativePageView.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(ReactNativePageView.o)
duplicate symbol 'OBJC_IVAR$_ReactNativePageView._scrollView' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(ReactNativePageView.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(ReactNativePageView.o)
duplicate symbol 'OBJC_CLASS$_ReactNativePageView' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(ReactNativePageView.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(ReactNativePageView.o)
duplicate symbol 'OBJC_METACLASS$_ReactNativePageView' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(ReactNativePageView.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(ReactNativePageView.o)
duplicate symbol 'OBJC_IVAR$_ReactNativePageView._lastContentOffset' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(ReactNativePageView.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(ReactNativePageView.o)
duplicate symbol 'OBJC_IVAR$_ReactNativePageView._cachedControllers' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(ReactNativePageView.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(ReactNativePageView.o)
duplicate symbol 'OBJC_IVAR$_ReactNativePageView._showPageIndicator' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(ReactNativePageView.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(ReactNativePageView.o)
duplicate symbol 'OBJC_IVAR$_ReactNativePageView._reactPageViewController' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(ReactNativePageView.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(ReactNativePageView.o)
duplicate symbol 'OBJC_IVAR$_ReactNativePageView._eventDispatcher' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(ReactNativePageView.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(ReactNativePageView.o)
duplicate symbol 'OBJC_IVAR$_ReactNativePageView._orientation' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(ReactNativePageView.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(ReactNativePageView.o)
duplicate symbol 'OBJC_IVAR$_ReactNativePageView._pageMargin' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(ReactNativePageView.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(ReactNativePageView.o)
duplicate symbol 'OBJC_IVAR$_ReactNativePageView._onPageScroll' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(ReactNativePageView.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(ReactNativePageView.o)
duplicate symbol 'OBJC_IVAR$_ReactNativePageView._overdrag' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(ReactNativePageView.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(ReactNativePageView.o)
duplicate symbol 'OBJC_IVAR$_ReactNativePageView._transitionStyle' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(ReactNativePageView.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(ReactNativePageView.o)
duplicate symbol 'OBJC_IVAR$_ReactNativePageView._initialPage' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(ReactNativePageView.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(ReactNativePageView.o)
duplicate symbol 'OBJC_IVAR$_ReactNativePageView._dismissKeyboard' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(ReactNativePageView.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(ReactNativePageView.o)
duplicate symbol 'OBJC_IVAR$_ReactNativePageView._onPageSelected' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(ReactNativePageView.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(ReactNativePageView.o)
duplicate symbol 'OBJC_IVAR$_ReactNativePageView._scrollEnabled' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(ReactNativePageView.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(ReactNativePageView.o)
duplicate symbol 'OBJC_IVAR$_ReactNativePageView._onPageScrollStateChanged' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(ReactNativePageView.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(ReactNativePageView.o)
duplicate symbol 'OBJC_CLASS$_ReactViewPagerManager' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(ReactViewPagerManager.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(ReactViewPagerManager.o)
duplicate symbol 'OBJC_METACLASS$_ReactViewPagerManager' in:
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-pager-view/libreact-native-pager-view.a(ReactViewPagerManager.o)
/Users/mike/Library/Developer/Xcode/DerivedData/seeed-dfrjohmjiibhsrbcwbegzefdrrqu/Build/Products/Debug-iphonesimulator/react-native-viewpager/libreact-native-viewpager.a(ReactViewPagerManager.o)
ld: 39 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

EDIT: @ikimiler solution is working for now.
removing @react-native-community/viewpager from package.json

  • delete node_modules
  • delete Pods and podfile.lock from ios folder
  • delete app on client
  • npm i (--legacy-peer-deps)
  • npx pod-install (or cd ios & pod install)
  • npx react-native run-ios

@thanhquang28
Copy link
Author

thanhquang28 commented Sep 30, 2021

i have done this issue by

  • remove node_modules
  • remove @react-native-community/viewpager from package.json (many tks to @ikimiler)
  • cd ios/ and remove Pods folder, remove Podfile.lock
  • delete row pod 'react-native-viewpager', :path => '../node_modules/@react-native-community/viewpager' in Podfile
  • back to root folder, yarn install or npm install
  • npx pod-install (or cd ios & pod install)

GLHF

@ithustle
Copy link

ithustle commented Mar 20, 2023

This issue still ... Any solution?
RN: 0.69.3
RNPV: 6.1.4

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

5 participants