-
-
Notifications
You must be signed in to change notification settings - Fork 341
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
Import error on case-sensitive filesystems #117
Comments
@dawiddr I had the same problem building a react native app with Flipper, 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.
|
this helped out with the openssl error facebook/react-native#28409 i was getting cuz of APFS case sensitive but now it shows this error facebook/react-native#31181 i am using fnm for node manager and this error started showing up after i upgraded my project from
so i cant build my app in xcode but i can build using |
Here is a version that works both on regular case-sensitive file systems, as well as on file systems that silently mask errors caused by typos and sloppiness (which unfortunately is still the default on macOS).
|
Hi all, is there a fix for this issue for projects that don't rely on Cocoapods for thrid party dependencies ? Like Carthage or SPM. |
This is a hack-y workaround but it seems to work in our case when using Carthage: cd Carthage/Build/OpenSSL.xcframework/
grep -rl '#\s*include\s*<openssl' --include \*.h * | xargs -I@ sed -i '' -e 's/#[[:space:]]*include[[:space:]]*<openssl/#include <OpenSSL/gi' @ |
As this readme.md be mentioned: IOSfatal error: 'openssl/opensslv.h' file not found
This seems to happen on APFS Case Sensitive Filesystems when Flipper is enabled. Solution 1 - Create Symbolic LinksThanks to felexx90 for providing this solution. Edit post_install do |installer|
react_native_post_install(installer)
# Fix OpenSSL-Universal on APFS Case Sensitive Filesystem
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 Now, reinstall pods.
Solution 2 - Disable FlipperIf you do not need flipper you can just disable it to fix this error. Edit # use_flipper!() Now, reinstall pods and update repo.
|
The case-sensitive filesystem problem is addressed in the upcoming update 3.1.2 #174. Please give it a try. |
Hi,
First of all, thank you for all the work on this project!
Unfortunately my app fails to build on a case-sensitive filesystem when I try to use it through SPM (version 1.1.180):
Is there any way I can work around this problem?
The text was updated successfully, but these errors were encountered: