Open maciej-lepb opened 3 years ago
cc @jknoxville does this ring a bell? @maciej-lepb could you provide a reproducible setup?
@mweststrate will try ASAP, I know it's hard to debug without it, although stripping down our current project may take some time. Either way - I'll do my best. Thanks!
Got the same problem.Happened on a generic iOS app.Do you have your own openssl lib in your app?
Hi @maciej-lepb ,did you get any progress?
@FFFang I started working on a stripped-down project to demo the issue. Not finished yet, I'll keep you posted. I guess not much that can be done without a demo project, right? Thanks!
@maciej-lepb In my case,it is a conflict problem with OpenSSL.xcframework and libssl.a.I have fixed it.
@FFFang I would like if you can explain how did you find that you have a conflict? and how did you fixed it? Thanks
@RebeccaAouizerats check if there is another libssl lib in you project.If there is ,then strip it to use flipper's openssl.
@FFFang Thanks you, you helped me to think on another direction. Indeed, I have a dependency, that use a framework, that use openssl. When removing the dependency the problem disappear. I have not yet been able to resolve the issue (also by adding openssl to the pod of the dependecy)
mark. the same error.
mark. the same error.
@RebeccaAouizerats check if there is another libssl lib in you project.If there is ,then strip it to use flipper's openssl.
搞定了? 我也遇到这个问题了. 能否请教下怎么解决的?
@RebeccaAouizerats check if there is another libssl lib in you project.If there is ,then strip it to use flipper's openssl.
搞定了? 我也遇到这个问题了. 能否请教下怎么解决的?
@xclidongbo 嗯,flipper用的openssl是最新版本的,如果你项目中本身有openssl,且是年代比较久远的,这两个库是不兼容的。解决方法就是修改podspec来修改依赖,在主项目中指定版本,我的情况,是用'1.0.2.20'版本的'OpenSSL-Universal'。
@RebeccaAouizerats check if there is another libssl lib in you project.If there is ,then strip it to use flipper's openssl.
搞定了? 我也遇到这个问题了. 能否请教下怎么解决的?
@xclidongbo 嗯,flipper用的openssl是最新版本的,如果你项目中本身有openssl,且是年代比较久远的,这两个库是不兼容的。解决方法就是修改podspec来修改依赖,在主项目中指定版本,我的情况,是用'1.0.2.20'版本的'OpenSSL-Universal'。
尝试调低OpenSSL的版本号, 不过没啥用, 改了cache中的podspec文件, 但还是安装高版本的.
用本地podspec.json试下
pod 'Flipper-Folly', :podspec => 'Specs/Flipper/Flipper-Folly.podspec.json'
{
"name": "Flipper-Folly",
"version": "2.5.3",
"license": {
"type": "Apache License, Version 2.0"
},
"homepage": "https://github.com/facebook/folly",
"summary": "An open-source C++ library developed and used at Facebook.",
"authors": "Facebook",
"source": {
"git": "https://github.com/priteshrnandgaonkar/folly.git",
"tag": "v2020.04.06.01"
},
"module_name": "folly",
"dependencies": {
"boost-for-react-native": [
],
"Flipper-Glog": [
],
"Flipper-DoubleConversion": [
],
"OpenSSL-Universal": [
"1.0.2.20"
],
"libevent": [
"~> 2.1.12"
]
},
"compiler_flags": "-DFOLLY_HAVE_PTHREAD=1 -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_LIBGFLAGS=0 -DFOLLY_HAVE_LIBJEMALLOC=0 -DFOLLY_HAVE_PREADV=0 -DFOLLY_HAVE_PWRITEV=0 -DFOLLY_HAVE_TFO=0 -DFOLLY_USE_SYMBOLIZER=0\n -frtti\n -fexceptions\n -std=c++14\n -Wno-error\n -Wno-unused-local-typedefs\n -Wno-unused-variable\n -Wno-sign-compare\n -Wno-comment\n -Wno-return-type\n -Wno-global-constructors",
"source_files": [
"folly/*.h",
"folly/concurrency/*.h",
"folly/container/*.h",
"folly/container/detail/*.h",
"folly/detail/*.h",
"folly/executors/**/*.h",
"folly/experimental/*.h",
"folly/functional/*.h",
"folly/futures/*.h",
"folly/futures/detail/*.h",
"folly/gen/*.h",
"folly/hash/*.h",
"folly/hash/detail/*.h",
"folly/init/*.h",
"folly/io/*.h",
"folly/io/async/*.h",
"folly/io/async/ssl/*.h",
"folly/lang/*.h",
"folly/memory/*.h",
"folly/memory/detail/*.h",
"folly/net/*.h",
"folly/net/detail/*.h",
"folly/portability/*.h",
"folly/ssl/*.h",
"folly/ssl/detail/*.h",
"folly/synchronization/*.h",
"folly/synchronization/detail/*.h",
"folly/system/*.h",
"folly/tracing/*.h",
"folly/chrono/*.h",
"folly/*.cpp",
"folly/concurrency/*.cpp",
"folly/container/detail/*.cpp",
"folly/detail/*.cpp",
"folly/executors/*.cpp",
"folly/experimental/hazptr/*.cpp",
"folly/futures/*.cpp",
"folly/futures/detail/*.cpp",
"folly/hash/*.cpp",
"folly/io/*.cpp",
"folly/io/async/*.cpp",
"folly/io/async/ssl/*.cpp",
"folly/lang/*.cpp",
"folly/memory/*.cpp",
"folly/memory/detail/*.cpp",
"folly/net/*.cpp",
"folly/portability/*.cpp",
"folly/ssl/*.cpp",
"folly/ssl/detail/*.cpp",
"folly/String.cpp",
"folly/synchronization/*.cpp",
"folly/system/*.cpp"
],
"exclude_files": [
"folly/synchronization/Rcu.cpp",
"folly/synchronization/Rcu.h"
],
"header_mappings_dir": "folly",
"header_dir": "folly",
"libraries": "stdc++",
"public_header_files": "folly/**/*.h",
"pod_target_xcconfig": {
"USE_HEADERMAP": "NO",
"CLANG_CXX_LANGUAGE_STANDARD": "c++11",
"HEADER_SEARCH_PATHS": "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/Flipper-DoubleConversion\" \"$(PODS_ROOT)/libevent/include\""
},
"platforms": {
"ios": "10.0"
}
}
1.0.2.20
没用... 提示有多个依赖
[!] There are multiple dependencies with different sources for `Flipper-Folly` in `Podfile`:
- Flipper-Folly (from `FlipperProject/Thirds/Flipper-Folly/Flipper-Folly.podspec.json`)
- Flipper-Folly (~> 2.2)
我尝试下把所有的Flipper 都放到本地试试
I have the same problem.
The app crashes either when:
Sometimes I manage to successfully run Flipper and the app, but it is a rare occasion and it breaks as soon as I restart one of the two.
I'm using React Native 0.63.4. The issue appeared when trying to upgrade Flipper from 0.69 to 0.70 (it manifests even with newer versions).
@xclidongbo
Hi,最后解决了这个问题了吗?
@xclidongbo
Hi,最后解决了这个问题了吗?
没有, 我把flipper 去掉了. 用android调试, ios只用来打包.
Same issue here 🙁
@lblasa any idea what could go wrong here?
I get reports about this crash from my production app. Far and away my most frequent crash report...but as far as I can tell it's happening when the app is in the background...
Im facing this issue on react native 0.66.2 on a simulator or device!
Any idea how to resolve it without commenting use_flipper!()
?
Same issue here. React Native 0.63.4. use_flipper!({ 'Flipper' => '0.79.0' })
try to update Flipper to 0.135.0 or 0.136.0
@ma125125t 你好,我通过你说的方式进行了尝试,Xcode Run 起来之后真机没有 crash 掉了,但是 Flipper 打开后报了如下的错误:
请问你有遇到过吗
Same issue here. React Native 0.63.4.
use_flipper!({ 'Flipper' => '0.79.0' })
For me, is third-party library NIMSDK cause crashes, just remove it work for me.
这是因为idb工具有问题,导致无法建立成功的通信,可以参考 https://github.com/facebook/idb/issues/659 里的解决方案。
这是因为idb工具有问题,导致无法建立成功的通信,可以参考 facebook/idb#659 里的解决方案。
按照 issue 里面的指引,手动升级了 fb-idb,但是貌似 Flipper 还是不能识别 iOS 真机😂,安卓的真机没啥问题,看来只能先用着模拟器了
Seeing this on Expo SDK 45, react-native 0.68.2, iOS simulator. Not seeing it on real device.
Thought I would comment so this issue didn't get stale. I just ran into this issue after another developer integrated Flipper into our project. After pod deintegrate, I noticed some packages that had been uninstalled and not reinstalled with pod install. After that, I was having clean builds. Not a permanent solution, but it's what unblocked me. For now, at least 🤞
XCode 14.2 React Native v0.70.2 Tested on 3 devices w the same issue/resolve: Ipad Pro 1st gen -Ipad 16.2 Ipad Mini 5th gen -Ipad 16.2 Iphone 7 - IOS 15.4
did anyone find a proper fix for this issue?
🐛 Bug Report
In an iOS React Native Expo project upgraded from React Native 0.63 to React Native 0.64 the application crashes with EXC_BAD_ACCESS in Flipper upon generating a certificate signing request.
Podfile (anonymised project and target names)
AppDelegate.m
Environment
iPhone 12 Pro Max, actual device, iOS 14.4.2 (18D70), debug build