question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

duplicate symbol 'folly::detail::str_to_bool(folly::Range<char const*>*)' ....

See original GitHub issue

šŸ› Bug Report

We have a react-native ios app running in a simulator. I want to run Flipper but when trying to config it in the Podfile we get an error.

To Reproduce

  1. cd ios && pod deintegrate && pod cache clean -all && pod install && cd ..
  2. `react-native run-ios``

Error:

āŒ  duplicate symbol 'folly::detail::str_to_bool(folly::Range<char const*>*)' in
> libFlipper-Folly.a(Conv.o)
> libRCT-Folly.a(Conv.o)

āŒ  duplicate symbol 'folly::makeConversionError(folly::ConversionCode, folly::Range<char const*>)' in
> libFlipper-Folly.a(Conv.o)
> libRCT-Folly.a(Conv.o)

āŒ  ld: 2 duplicate symbols for architecture x86_64

āŒ  clang: error: linker command failed with exit code 1 (use -v to see invocation)

Environment

Flipper Desktop 0.144.0 MacOS: 12.3.1 Cocoapods: 1.11.3 React-Native: 0.68.0

Click here to see Podfile!
``` platform :ios, '11.0' install! 'cocoapods', :deterministic_uuids => false

require_relative ā€˜ā€¦/node_modules/react-native/scripts/react_native_podsā€™ require_relative ā€˜ā€¦/node_modules/@react-native-community/cli-platform-ios/native_modulesā€™

target ā€˜appā€™ do permissions_path = ā€˜ā€¦/node_modules/react-native-permissions/iosā€™

config = use_native_modules!

Flags change depending on the env values.

flags = get_default_flags()

use_react_native!( :path => config[:reactNativePath], # to enable hermes on iOS, change false to true and then install pods :hermes_enabled => flags[:hermes_enabled], :fabric_enabled => flags[:fabric_enabled], # An absolute path to your application root. :app_path => ā€œ#{Pod::Config.instance.installation_root}/ā€¦ā€ )

pod ā€˜Permission-Cameraā€™, :path => ā€œ#{permissions_path}/Camera.podspecā€ pod ā€˜Permission-LocationWhenInUseā€™, :path => ā€œ#{permissions_path}/LocationWhenInUse.podspecā€

you should disable the next line.

use_flipper!({ā€˜Flipperā€™ => ā€˜0.144.0ā€™}) #use_flipper!({ ā€œFlipper-DoubleConversionā€ => ā€œ1.1.7ā€ })

target ā€˜appTestsā€™ do inherit! :complete # Pods for testing end

end

post_install do |installer| react_native_post_install(installer) __apply_Xcode_12_5_M1_post_install_workaround(installer) flipper_post_install(installer) end

</details>

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:15
  • Comments:9

github_iconTop GitHub Comments

3reactions
hellforevercommented, Nov 23, 2022

Same issue here, this issue has been open for half a year

1reaction
Kirank212commented, Aug 30, 2022
Screen Shot 2022-08-30 at 11 01 05 AM

select pods project and Architecture then changing build active architecture only Release to - YES worked for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ld: duplicate symbol - caused by const - Stack Overflow
By putting the definition in a header file, it gets defined in each m file that includes that header.
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 >
How to avoid duplicate symbols when compiling | Peak Up
The error: duplicate symbol for architecture x86_64 will be prompted if the following files are compiled. makefile; main.cpp. #includeĀ ...
Read more >
Duplicate Symbol? What? - samwho
duplicate symbol _name in: ... ld: 1 duplicate symbol for architecture x86_64 clang: error: linker command failed with exit code 1 (use -vĀ ......
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