-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
openssl/opensslv.h' file not found #28409
Comments
Seems to work fine for me:
Perhaps the CocoaPods installation didn’t work well for you? Can you try the following and then build again?
If still not, please run |
** BUILD FAILED ** The following build commands failed: |
Xcode Version 11.4 |
Alas I can’t do anything without more tangible information. Can you please share an example app that demonstrates the problem and that has all files checked in, including the |
+1 |
I’m going to close this for now, as there is no details for me to work with. Please do follow-up, though, and we can re-open the issue! |
I have the same problem! React-Natvie: 0.62.1 I created the app with the command I have also tried using |
hi i have the same problem i try to create a project with 0.62.2 but when i try to run in xcode appers this error , i try to install pod install but it doesn't work. |
As mentioned before, I can’t do anything without an example app that reproduces the problem, so please help me help you by sharing such an example. 🙏 |
this is my error when i try to run "react-native run-ios" |
+1
|
+1 |
I’m unsubscribing from this issue, as I mentioned what is needed to progress and until then this just adds to my notification load. When somebody posts a reproducing example, please @ mention me 🙏 |
Creating a project with a slightly older version (0.61.5) worked for me. I've no idea why it worked, but thought i'd mention it in case it helps anyone else :)
|
I had the same issue. Could not find openSSL. SOLVED (for me at least). tldr:
the long version: I went and 'mv ~/.cocoapods ~/.cocoapods.bak' Then reran pod install. That worked. Buuuuttttt, when I hit Play in Xcode, the build failed with the openssl issue. For some reason it's not in the path. One option was to go find it and stick it in the build settings search path. hack hack hack. Not feeling that solution...so... Hunch was somewhere in pod install. Had to go through some arduous process to update pod.
So basically, you want to upgrade cocoapods to get the latest 'pod' executable. One way top update is with "gems", but that should be updated too, so you do that with updating ruby by using brew, and of course make sure brew is up to date. Egads! Was not a fan of updating minor versions. |
React-Natvie: 0.62.2 when i use use Hope it helps |
+1 same issue with Xcode 11.5 macOS 10.15.5 when run |
Finally I found it's Pod config issue, add |
thank you so much it works for me!!! React-Native: 👍 |
Still happening on a fresh install of React native 0.63 via |
cocoapods auto create the project with wrong infos,so i update the ruby env to latest ,and it works for me |
@fairysspring how did you update your ruby env? https://stackoverflow.com/questions/36485180/how-to-update-ruby-with-homebrew#36485498? |
|
This helped fix.
platform :ios, '10.0'
pod 'OpenSSL-Universal', '~>1.0.2.20'
target 'deeplink' do
@alloy appreciate if it can be resolved to make it work with latest |
Note that the older version of OpenSSL-Universal will |
@gilbertl, let's hope |
getting the same error after trying to upgrade from
|
Update: Unable to reproduce this issue after I reinstalled the OS from scratch. |
Are you saying you reinstalled OSX or iOS ? If OSX, did you use a time machine backup, or was it a completely clean install? |
OSX, When frustration > patience, you do
Apologies, if that wasn't a lot of help, I'm sure there is an easier way and we'll be able to find it.
|
WTF |
Anybody was able to resolve this issue in any other way? I was unable to solve it with these proposed fixes. |
Well, I did a complete system wipe and fresh install of Big Sur yesterday (at least my system was pretty bloated, so it was time for it already)
Sadly I can confirm that it fixed the issue for me and it was the only working solution. One thing is interesting, I had firstly only reinstalled the Big Sur (no user data wipe) and the problem persisted (also redid the whole deed with I think it may not be something connected with react-native but as @anandchakru said:
it may be some sort of incomplete installation of something. My co-worker (we have the exact same models and did the Big Sur update in the same way) didn't have any issues even with freshly init project (I was unable to compile it without this error) Side note: I have not touched on any RN project for about 6 months and only recently just got to refreshing our apps packages and stuff and this came up. |
I solved it using the old version of Flipper Folly (2.3.0) Modify the Podfile with this configuration React Native 0.63.4
React Native 0.64.0
Greetings Bug Sur OSX |
Using the older version of Flipper Folly fixed it, but I also had to remove the Pods directory and install fresh after editing the Podfile
|
I just upgraded to RN 64 and have the same issue. I tried this solution as well didn't work. How to use this
as it will create duplicate entries:
If anyone is facing this duplicate issue ... we need to remove |
I wiped by disk as well and reinstalled Big Sur. However, the first time I did this, the same "openssl/opeensslv.h file not found" error surfaced. I wiped the disk again and reinstalled Big Sur a SECOND time. But this time
Something clicked and I 'm able to run
without any problems |
I have APFS case SENSITIVE and when I was reinstalling the whole system I started downloading all things from appstore (xcode, word, etc..) and in the meantime I installed zsh, brew, etc... After that it worked so I don't know where could the problem be. |
xcode = Version 12.4 |
I had the same issue, it seem the problem is with APFS case SENSITIVE file system. Here is the link krzyzanowskim/OpenSSL#117. what I did as workaround was made a symbolic link to the framework folder with the same name but all lowercase. here is the code I put in the Podfile to create the links.
|
thank you so much for this it removed openssl error but then it showed error saying currently i have the latest Edit 1: so i just need to find the proper PATH to node file from the bin and i was able to use Edit 2: well everything was okay untill i changed to an iphone 8 device then it just broke and now i have that same error above and i have no idea on how it was fixed the last time Edit 3: #28409 (comment) this helped me out with the openssl as i had APFS case sensitive file system that was causing this error but now i get this error #31181 where xcode cant find node Edit 4: good news when building using Exposition on current error while using xcode to build my project xcode throws PhaseScript error where it cannot find node as a global var.
|
Add below line to pod file. Replace existing line , with use_flipper!({ 'Flipper-Folly' => '2.3.0', 'Flipper-RSocket' => '1.1' }) Worked like charm! |
'openssl/opensslv.h' file not found |
use_filpper!() to #use_flipper!() in Podfile then rm Podfile.lock worked for me! |
Hi,
I am sorry,
how are you?
…On Fri, Aug 13, 2021, 5:23 PM Dong Choon ***@***.***> wrote:
'openssl/opensslv.h' file not found
use_filpper!() to #use_flipper!() in Podfile
then
rm Podfile.lock
pod install
worked for me!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#28409 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASC5ZQXBK4JUU5CHI4ETJRDT4TQAVANCNFSM4LUYXYQQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
+1 working |
Seems to work fine. But it will fail if you are working a project on both machine types (Case-Sensitive, Case-Insensitive). Any workarounds? |
I think you can conditionally make the symlinks, using a condition to determine if the file system is case-sensitive or not. Example: post_install do |installer|
flipper_post_install(installer)
# The real directory is /Users/<user>/Library.
# In case-sensitive file systems the file won't exists.
unless File.exist? "/Users/#{ENV['USER']}/library"
system('cd Pods/Headers/Public; ln -s Protobuf protobuf')
system('cd Pods/OpenSSL-Universal/Frameworks/OpenSSL.xcframework/ios-arm64_arm64e_armv7_armv7s; ln -sfh OpenSSL.framework openssl.framework')
system('cd Pods/OpenSSL-Universal/Frameworks/OpenSSL.xcframework/ios-arm64_i386_x86_64-simulator; ln -sfh OpenSSL.framework openssl.framework')
system('cd Pods/OpenSSL-Universal/Frameworks/OpenSSL.xcframework/ios-arm64_x86_64-maccatalyst; ln -sfh OpenSSL.framework openssl.framework')
system('cd Pods/OpenSSL-Universal/Frameworks/OpenSSL.xcframework/macos-arm64_arm64e_x86_64; ln -sfh OpenSSL.framework openssl.framework')
end
end |
Where your build file system is not the same as /Users, use just pods as the test case!
|
Description
Pods/Headers/Private/Flipper-Folly/folly/portability/OpenSSL.h:26:10: 'openssl/opensslv.h' file not found
React Native version:
React-Natvie: 0.62
OS: macOS 10.15.4
Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.
Expected Results
Xcode build successfully
Snack, code example, screenshot, or link to a repository:
Please provide a Snack (https://snack.expo.io/), a link to a repository on GitHub, or provide a minimal code example that reproduces the problem.
You may provide a screenshot of the application if you think it is relevant to your bug report.
Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve
The text was updated successfully, but these errors were encountered: