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

Facing build time issue 18 duplicate symbols for architecture x86_64 in 0.70.4 #35184

Closed
keerthika-priya opened this issue Nov 3, 2022 · 5 comments
Labels
Needs: Attention Issues where the author has responded to feedback. Needs: Environment Info Please run `react-native info` and edit your issue with that command's output. Type: Upgrade Issue Issues reported from upgrade issue form

Comments

@keerthika-priya
Copy link

keerthika-priya commented Nov 3, 2022

New Version

0.70.4

Old Version

0.61.2

Build Target(s)

All

Info

Build/Products/Debug-iphonesimulator/React-Core/React.framework/React(RCTTiming.o)
duplicate symbol 'OBJC_IVAR$_RCTTiming._paused' in:
/Users/keerthika.priya/Library/Developer/Xcode/DerivedData/Flipkart-bhnnxmwldjckhthhnqipiomorpyr/Build/Products/Debug-iphonesimulator/React-CoreModules/CoreModules.framework/CoreModules(RCTTiming.o)
/Users/keerthika.priya/Library/Developer/Xcode/DerivedData/Flipkart-bhnnxmwldjckhthhnqipiomorpyr/Build/Products/Debug-iphonesimulator/React-Core/React.framework/React(RCTTiming.o)
duplicate symbol 'OBJC_IVAR$__RCTTimer._callbackID' in:
/Users/keerthika.priya/Library/Developer/Xcode/DerivedData/Flipkart-bhnnxmwldjckhthhnqipiomorpyr/Build/Products/Debug-iphonesimulator/React-CoreModules/CoreModules.framework/CoreModules(RCTTiming.o)
/Users/keerthika.priya/Library/Developer/Xcode/DerivedData/Flipkart-bhnnxmwldjckhthhnqipiomorpyr/Build/Products/Debug-iphonesimulator/React-Core/React.framework/React(RCTTiming.o)
ld: 18 duplicate symbols for architecture x86_64

Issue and Reproduction Steps

The react native pods for 0.70.4 gives the following error
Screenshot 2022-11-03 at 12 24 11 PM

There are 2 RCTTiming files in Core-Modules and Modules folders.
Please help regarding this.

@keerthika-priya keerthika-priya added Needs: Triage 🔍 Type: Upgrade Issue Issues reported from upgrade issue form labels Nov 3, 2022
@react-native-bot react-native-bot added Needs: Author Feedback Needs: Environment Info Please run `react-native info` and edit your issue with that command's output. and removed Needs: Triage 🔍 labels Nov 3, 2022
@github-actions
Copy link

github-actions bot commented Nov 3, 2022

⚠️ Missing Environment Information
ℹ️ Your issue may be missing information about your development environment. You can obtain the missing information by running react-native info in a console.

@keerthika-priya
Copy link
Author

Build/Products/Debug-iphonesimulator/React-Core/React.framework/React(RCTTiming.o)
duplicate symbol 'OBJC_IVAR$_RCTTiming._paused' in:
/Users/keerthika.priya/Library/Developer/Xcode/DerivedData/Flipkart-bhnnxmwldjckhthhnqipiomorpyr/Build/Products/Debug-iphonesimulator/React-CoreModules/CoreModules.framework/CoreModules(RCTTiming.o)
/Users/keerthika.priya/Library/Developer/Xcode/DerivedData/Flipkart-bhnnxmwldjckhthhnqipiomorpyr/Build/Products/Debug-iphonesimulator/React-Core/React.framework/React(RCTTiming.o)
duplicate symbol 'OBJC_IVAR$__RCTTimer._callbackID' in:
/Users/keerthika.priya/Library/Developer/Xcode/DerivedData/Flipkart-bhnnxmwldjckhthhnqipiomorpyr/Build/Products/Debug-iphonesimulator/React-CoreModules/CoreModules.framework/CoreModules(RCTTiming.o)
/Users/keerthika.priya/Library/Developer/Xcode/DerivedData/Flipkart-bhnnxmwldjckhthhnqipiomorpyr/Build/Products/Debug-iphonesimulator/React-Core/React.framework/React(RCTTiming.o)
ld: 18 duplicate symbols for architecture x86_64

@github-actions github-actions bot added Needs: Attention Issues where the author has responded to feedback. and removed Needs: Author Feedback labels Nov 4, 2022
@ana-nd-s
Copy link

ana-nd-s commented Dec 5, 2022

@keerthika-priya We are also facing this issue after upgrading to the latest react native version

System:
    OS: macOS 12.5
    CPU: (8) x64 Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz
    Memory: 55.71 MB / 8.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.17.1 - ~/.nvm/versions/node/v16.17.1/bin/node
    Yarn: 1.22.19 - ~/.yarn/bin/yarn
    npm: 8.15.0 - ~/.nvm/versions/node/v16.17.1/bin/npm
    Watchman: 2022.09.19.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /Users/anandkumar/.rvm/rubies/ruby-2.7.2/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
    Android SDK:
      API Levels: 23, 25, 28, 29, 30
      Build Tools: 28.0.3, 29.0.2, 30.0.2, 30.0.3, 32.0.0
      System Images: android-30 | Google APIs Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 4.2 AI-202.7660.26.42.7351085
    Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_292 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.2.0 => 18.2.0
    react-native: 0.70.6 => 0.70.6
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

@keerthika-priya
Copy link
Author

My issue was a local script which was used to patch the RCTTiming file and thus kept adding it again and again.

@thisisadarshjais
Copy link

Any solution here??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Attention Issues where the author has responded to feedback. Needs: Environment Info Please run `react-native info` and edit your issue with that command's output. Type: Upgrade Issue Issues reported from upgrade issue form
Projects
None yet
Development

No branches or pull requests

4 participants