-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
[iOS]: "RNTfliteSpec.h" not found in RN 0.75 with new arch #87
Comments
Guten Tag, Hans here! 🍻 Thanks for your report! It looks like you're having trouble with the file "RNTfliteSpec.h" not being found. Please make sure you have followed all installation instructions and double-check your project setup with the documentation. Also, could you please provide more information regarding your environment? Specifically, we need to know if there are any relevant logs from Xcode. You can find them in the Xcode logs window during the build process. This would greatly help mrousavy in diagnosing ze problem. If you feel like this issue might be caused by something else, please feel free to update your post and we can take another look! Danke!
|
I get this error building for Android also.
|
I think this happens, because there's no @mrousavy as you mentioned here, the file is missing, correct. But it's not that you would create it by hand. It seems it would be generated, if the config is set up properly. I found a tutorial here: https://medium.com/@sanchitsrivastava247/creating-turbo-module-in-react-native-0-74-73c6cae6a945 I'll try to fix this somehow and report back. Perhaps we can come up with a PR |
You can try my fork: https://github.com/liontariai/react-native-fast-tflite
|
@liontariai do you have any information when it comes to bare workflow in react-native? I have the sam issue and this is my package.json file:
I've got nothing much happening here yet but my build is failing just because I have "react-native-fast-tflite" installed. Thanks! |
What is the build failure message? |
@lucksp Thanks for hopping in. So, currently I uninstall 'react-native-fast-tflite' and tried to build my app and everything works as expected. When I:
This is everything I do, than I go to build my app from the xcode and here is the error: |
Hey @mSenad , I'll try my best: I think generally you need to do the exact same thing I did, the error you see is what I saw. So if you follow the steps I have outlined above, you should be able to fix it. The only thing that's different, is that you'll be doing the things that are done by the expo plugins manually. If I see it right, the plugin only adds a variable to your Podfile and adds a Framework to the XCode project: And this is also only done, if you want to use the CoreML Delegates (i'm no expert on what it is / why you'd need it... i think it's like GPU/NeuralEngine acceleration?) So therefore, you might as well skip the expo plugins / Podfile modifications and might still work... |
@liontariai thanks man, I really appreciate it that you took your time to give me some insights. Currently, when I run ...and how I understood, I just need to have |
you're welcome! Well... I'm not 100% sure why it stucks. I have installed it by putting it in my package.json and running the install then, I'm not sure how you tell npm to look at github via the cli command, even though it might be correct the way you did it. Also you could check if you have some logs for npm. I think it prints logs somewhere in the /tmp dir. Regarding the plugins... if you don't use expo, you shouldn't need to do anything other than installing the package from my repo. |
@liontariai for some reason I am not able to install your fork of the repo... I've tried with adding I see your latest commit inside the forked repo so maybe I can just apply the same changes and try to use my own fork. That's the only thing that comes to my mind at the moment. Appreciate your effort man! |
Yes, you can definitely do that. |
I'm very new to React Native, but hit the same issue. FWIW, I disabled the new architecture temporarily and that works fine. diff --git a/react-native/app.json b/react-native/app.json
index 81ef5a8..056c4c4 100644
--- a/react-native/app.json
+++ b/react-native/app.json
@@ -7,7 +7,7 @@
"icon": "./assets/images/icon.png",
"scheme": "myapp",
"userInterfaceStyle": "automatic",
- "newArchEnabled": true,
+ "newArchEnabled": false,
"ios": {
"supportsTablet": true,
"infoPlist": { I then deleted the This was a default changed recently for new projects: Going to come back and try to get this working with the new architecture but sharing this info for now. |
Disabling the new arch fixed it for me too. I had to use RCT_NEW_ARCH_ENABLED=0 pod install to reinstall/regenerate the CocoaPods project. |
Is there workaround atm for with new Arch? |
try my guide |
Does any one else have issues with iOS GPU on packages 1.40 and up? It’s fine on 1.3.0 |
@liontariai I also have a fork now, updated for fast-tflite recent commits since yours. You should open a PR to get yours merged in, as I don't think there are any conflicts. It may only be a stop-gap until it can all use Nitro, but still, we should discuss it in a PR 🙂 |
yes you're right... haven't really worked on the project I needed this for since then, but I'll open a PR as soon as I get back to it 👍 |
I tried implementing the workaround but I can't no longer
|
I guess this is stuck? This is happening to me on expo newest version and RN 0.76 |
There are two forks you can point your package.json to in the comments above. Maybe @liontariai will submit the PR... he did the work 😉 |
Hi!
I'm using react-native 0.75 with the new architecture enabled and I'm getting an XCode compile error, that the file "RNTfliteSpec.h" could not be found in this line:
There was an issue regarding this problem but it has been closed without solving, so I'm creating a new one. Any help in addressing this problem would be highly appreciated! Thanks already!
The text was updated successfully, but these errors were encountered: