Flipper: OpenSSL error on iOS

Created on 26 Mar 2021  路  6Comments  路  Source: facebook/flipper

馃悰 Bug Report

The iOS app is building but it receives a SIGABRT giving to the following error:

dyld: Library not loaded: @rpath/OpenSSL.framework/OpenSSL
  Referenced from: /private/var/containers/Bundle/Application/6CE80915-A8A6-493A-8645-A9DAD0156E5E/limpo.app/limpo
  Reason: no suitable image found.  Did find:
    /private/var/containers/Bundle/Application/6CE80915-A8A6-493A-8645-A9DAD0156E5E/limpo.app/Frameworks/OpenSSL.framework/OpenSSL: mach-o, but not built for platform iOS
dyld: launch, loading dependent libraries
DYLD_LIBRARY_PATH=/usr/lib/system/introspection
DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/GPUTools.framework/libglInterpose.dylib:/usr/lib/libMTLCapture.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib
(lldb) 

Thus the app don't run, it keeps on a white screen.

To Reproduce

  1. Build and run the app through xcode

Environment

  • iOS 14.4.1
  • Flipper 0.82.0
  • Big Sur 11.2.3
iOS

Most helpful comment

Hi @iagormoraes , I am having exactly the same problem as yours. Did you find any solution for this?

The problem still exist with the latest version

"react": "^17.0.2",
"react-native": "0.64.0"

Screen Shot 2021-04-24 at 15 18 44

All 6 comments

Can you provide me with a sample app through which this error is reproducible ?

I had tried building the latest flipper code with the sample app, it works. A small repro example project will be helpful

try

xcode-select --install

Can you provide me with a sample app through which this error is reproducible ?

I had tried building the latest flipper code with the sample app, it works. A small repro example project will be helpful

@priteshrnandgaonkar sorry I don't have a sample repo to provide you.

try

xcode-select --install

@hsavit1 I reinstalled it but the same problem.

With the package "react-native-flipper": "^0.62.0", it works but I can't upgrade, maybe there is some other library causing conflicts to this one.

Without a reproduction there is little we can do. I recommend to verify your setup against our reference project, which works fine https://github.com/facebook/flipper/tree/master/react-native/ReactNativeFlipperExample.

Closing the issue for now as without reproduction the issue is inactionable.

Hi @iagormoraes , I am having exactly the same problem as yours. Did you find any solution for this?

The problem still exist with the latest version

"react": "^17.0.2",
"react-native": "0.64.0"

Screen Shot 2021-04-24 at 15 18 44

I found the solution for this (credit to: Dhavi.M):

In /ios folder

  1. git clone https://github.com/krzyzanowskim/OpenSSL.git
  2. cd OpenSSL
  3. make
  4. file -> swift packages -> add package dependency -> (project name) -> just next until finish
  5. build phases ->Link binary with libraries -> add openssl.xcframework

Try to build again, the issue should be no longer there.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hsavit1 picture hsavit1  路  3Comments

xstable picture xstable  路  4Comments

mune0903 picture mune0903  路  4Comments

paschaldev picture paschaldev  路  3Comments

vkotovv picture vkotovv  路  3Comments