duplicate symbols for architecture x86_64

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

10reactions
ikimilercommented, Sep 17, 2021

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

2reactions
thanhquang28commented, 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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Duplicate symbols for architecture x86_64 under Xcode
75 duplicate symbols for architecture x86_64. Means that you have loaded same functions twice. As the issue disappear after removing -ObjC from Other...
Read more >
[iOS] Build fails with error duplicate symbols for architecture ...
Open the project in XCode, click Build (or hit ⌘ + B ). You should hit the error: duplicate symbols for architecture x86_64...
Read more >
duplicate symbol _main in | Apple Developer Forums
I'm very new to Xcode and am trying to use it to write and build C code. I made a project and got...
Read more >
[Swift] Getting duplicate symbols for architecture x86_64 error
... based on this answer: https://stackoverflow.com/questions/24298144/duplicate-symbols-for-architecture-x86-64-under-xcode.
Read more >
"duplicate symbols for architecture x86_64" error ... - YouTrack
"duplicate symbols for architecture x86_64" error when building with Swift packages. Hi, I'm trying to build a KMM project with Swift package dependencies....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found