-
Notifications
You must be signed in to change notification settings - Fork 1.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
'algorithm' file not found (since RN 0.53) #711
Comments
There are three lines in
You can remove them manually but the following cocoapods post install script fixes the issue:
Full disclosure, I have no clue what these headers are meant for and thus there could be some side effects with this script. However, my app seems to be running without issues. |
I'm seeing this issue as well. After removing those lines in
Which totally makes sense after removing those lines. This seems to be an issue in RN 0.52.X as well: #697 I think the only solution for me right now is to back-up to |
The workaround from @danieljvdm seems to work. Would be nice if we don't need this kind of black magic though 😅 |
Tried the 0.54.0-rc3 and still get the same error. |
how to solve it ? |
@krmao read my comment |
@danieljvdm yes , thank you guy ! |
Manually deleting the lines or adding the post install script does not solve it for me. I still get the same issue. I'm also upgrading my project from 0.45.0, maybe that has something to do with it? |
facebook/react-native#17764 |
@hitbear518 That worked for me, but then I get the fishhook error. I resolved that, and now I have another error. This feels like a slippery slope. The new error is in the image and because of that, I cannot |
@justColbs this is a new error in 54.0, I spent a few hours trying to fix it but eventually gave up. Seem like there's illegal syntax in a bunch of new files |
@danieljvdm Smh. Thanks for the response. I'll try downgrading to 0.53 and cross my fingers. |
I am having this imports in the "yoga-umbrella.h". what do I want to do? |
@amardeepranu No clue. I just downgraded to 0.53 and it didn't give me any more problems with this, other than the plethora of problems that have hacky solutions :) |
Downgrading to react-native@0.53.0 didn't fix it for me (same algorithm error). Welp. |
@lemonkey You can fix that fishhook error, but i'm not sure if you've tried it. #import "fishhook.h" should be the replacement. ... I feel your pain. ha |
@justColbs Was able to go forward with react-native@0.53.0 and react@16.2.0 with the fishhook.h import fix, thanks. |
FYI: This is still an issue on 0.54.2 😒
By the way, the hacks above do not work for me anymore either: |
@amardeepranu Thanks, confirming that your Podfile post-install step along with the package.json postinstall Fishhook fix worked for me with react-native@0.54.2 and react@^16.3.0-alpha.1 (latest as I write this). |
This comment has been minimized.
This comment has been minimized.
yoga-umbrella.h file should have only three imports: There are three ways to achieve it:
|
Workarounds for all integrating issues |
Can someone from the core team explain why this is still happening? |
This comment has been minimized.
This comment has been minimized.
@no-NameTillNow |
This comment has been minimized.
This comment has been minimized.
After a lot of struggling, I came down to these additions to our Podfile, which is a combination of a lot of workarounds from this and other issues 😒 |
Change use_frameworks! ==> # use_frameworks! ? |
I have a shared project for hot fixing React Native versions for issues like this: https://github.com/orta/cocoapods-fix-react-native |
In my case add this line to yoga.podspec file |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Since 0.55.4 I can delete React and the other packages from Cocoapods, most packages I use have updated their repo so React 0.11 won't install. Still, can one of the contributors explain why some of the third party packages causes cocoapods to install another version of React and how we can fix this without defining it in the Podfile. The reason I ask is because when I do this in my projects everything goes wrong and, even while including DevSupport in the subspecs, shaking to open dev menu will not work. I also get a lot of other dependency issues and compilation issues, so I would much prefer not including React and the subspecs in my Podfile. (extra: this issue is not contained to using "use_frameworks!"). Maybe an issue should be opened to expand the documentation to tackle this problem that many developers are facing, especially if those developers haven't heard of this repo: https://github.com/orta/cocoapods-fix-react-native Can I get an official reaction from the React Native Core Team? I am happy to contribute but I would love to know what is causing this and whether you are working on this. I am tagging the only contributor I know actively answers questions: @hramos (thank you hramos!) |
This comment has been minimized.
This comment has been minimized.
@ibrahimab a PR was already opened against Please give the RC a try and let us know if the issue is resolved. I'm going to look through @orta's repo and see if there's anything else we need to pull in, but feel free to send a PR if you have a specific fix in mind already. |
"react": "16.4.1", still having this ,drive me crazy |
@jeffzing i ran into this as well with NAChloride/libsodium. I finally fixed it by setting the Header Search Paths for the libsodium target to only:
and setting "Use Header Maps" to "No". |
@lamdan infact this is a problem with cocoapods,i build lib of sodium.a without pod then everything works fine.It's a config.h file cross reference issue.anyway thank you guys. |
if there anyone need libsodium.a,let me know |
It means after "reinstall" of the app: pod install etc. --> you reset this setting?) I also use NAChloride and run into this issue :/ |
@lamdan maybe you found a better way to solve it? :) |
It looks like this issue regards building an older version of react-native. Please reopen in the |
Report
☝️ However, this is very similar to this other issue. Could it be possible to fix these kind of errors in a bit more structural way? 🤔
Issues and Steps to Reproduce
We've got this in our PodFile:
Prior to ReactNative 0.53 this worked. After upgrading to the latest it doesn't.
Expected Behavior
A successful build
Actual Behavior
This error:
The text was updated successfully, but these errors were encountered: