Error when i run yarn ios - 'ExecutorchLib/ETModel.h' file not found #342
-
DescriptionWhen i add the lib in my project, i run yarn ios in my project and example page in this project and i receive this error: ![]() Steps to reproduce
Snack or a link to a repositoryn/a React Native Executorch version"^0.3.0", React Native version"0.76.3", PlatformsiOS JavaScript runtimeNone WorkflowNone ArchitectureNone Build typeNone DeviceNone Device modelNo response AI modelNo response Performance logsNo response AcknowledgementsYes |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Hi! I think the missing step is installing the pods. After navigating into the llama directory, just run:
That should set up the iOS dependencies correctly, and everything should work fine after that. |
Beta Was this translation helpful? Give feedback.
-
Hello, i do that, but continuous error |
Beta Was this translation helpful? Give feedback.
-
Hi @Marcuspo, I tried to reproduce the issue but wasn't able to.
Does the issue still occur for you on a fresh repository clone if you follow these same steps? |
Beta Was this translation helpful? Give feedback.
-
This issue still occurs if you change the target from debug to release. I can successfully compile the iOS app when targeting debug. |
Beta Was this translation helpful? Give feedback.
-
Hi, I wanted to ask what device are you targeting when building release version. When you try to run it on simulator it will only work with debug configuration as our underlying framework doesn't support x86_64 architecture. However, when you try to run release configuration on real device it should work without any problems. Let me know if it helps! |
Beta Was this translation helpful? Give feedback.
-
Issue still occurs on git clone https://github.com/software-mansion/react-native-executorch
cd react-native-executorch/examples/llm
yarn
cd ios && pod install && cd ..
yarn expo run:ios --configuration Release cc: @jakmro [Edit] |
Beta Was this translation helpful? Give feedback.
Hi, I wanted to ask what device are you targeting when building release version. When you try to run it on simulator it will only work with debug configuration as our underlying framework doesn't support x86_64 architecture. However, when you try to run release configuration on real device it should work without any problems. Let me know if it helps!