Skip to content

Error when i run yarn ios - 'ExecutorchLib/ETModel.h' file not found #164

Closed

Description

@Marcuspo

Description

When 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:

Image

Steps to reproduce

  1. git clone https://github.com/software-mansion/react-native-executorch
  2. cd react-native-executorch
  3. cd example
  4. llma
  5. yarn ios

Snack or a link to a repository

n/a

React Native Executorch version

"^0.3.0",

React Native version

"0.76.3",

Platforms

iOS

JavaScript runtime

None

Workflow

None

Architecture

None

Build type

None

Device

None

Device model

No response

AI model

No response

Performance logs

No response

Acknowledgements

Yes

Activity

  1. changed the title [-]Error when i run yarn ios[/-] [+]Error when i run yarn ios - 'ExecutorchLib/ETModel.h' file not found[/+] on Mar 30, 2025
  2. NorbertKlockiewicz commented on Mar 30, 2025

    @NorbertKlockiewicz
    Contributor

    Hi! I think the missing step is installing the pods. After navigating into the llama directory, just run:

    cd ios && pod install && cd ..

    That should set up the iOS dependencies correctly, and everything should work fine after that.

  3. Marcuspo commented on Apr 3, 2025

    @Marcuspo
    Author

    Hi! I think the missing step is installing the pods. After navigating into the llama directory, just run:

    cd ios && pod install && cd ..

    That should set up the iOS dependencies correctly, and everything should work fine after that.

    Hello, i do that, but continuous error

  4. jakmro commented on Apr 3, 2025

    @jakmro
    Contributor

    Hi @Marcuspo, I tried to reproduce the issue but wasn't able to.
    Here’s exactly what I did to set up and run the example:

     git clone https://github.com/software-mansion/react-native-executorch
     cd react-native-executorch
     cd examples
     cd llama
     yarn
     yarn ios
    

    Does the issue still occur for you on a fresh repository clone if you follow these same steps?

  5. gfrancischini commented on Apr 16, 2025

    @gfrancischini

    This issue still occurs if you change the target from debug to release.

    I can successfully compile the iOS app when targeting debug.

  6. NorbertKlockiewicz commented on Apr 22, 2025

    @NorbertKlockiewicz
    Contributor

    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!

  7. msluszniak commented on May 26, 2025

    @msluszniak
    Member

    Issue still occurs on 0.4.2. Reproduction is as follows:

    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]
    My bad, I ran this on simulator which is not supported in release mode. Can we add some early error with this information? I checked that this issue do not reproduce on real device with command:yarn expo run:ios --device --configuration Release

  8. locked and limited conversation to collaborators on May 27, 2025
  9. converted this issue into a discussion #342 on May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions