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
cd ios && pod deintegrate && pod cache clean -all && pod install && cd ..
- `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:
- Created a year ago
- Reactions:15
- Comments:9
Top GitHub Comments
Same issue here, this issue has been open for half a year
select pods project and Architecture then changing build active architecture only Release to - YES worked for me.