Skip to content

Undefined symbol: _TVMFFIErrorSetRaisedFromCStr / _TVMFFIFunctionCall during Xcode build #58

@Arunkumarvallal

Description

@Arunkumarvallal

When running the mlc_llm package from the ios folder inside the AIExample app of react-native-ai, and attempting to build the app for iPhone using Xcode, I encounter the following undefined symbol errors during linking:

Steps to Reproduce:

  • Clone the react-native-ai repo.
  • Navigate to examples/AIExample/ios.
  • Run the command:
    mlc_llm package
  • Open the AIExample.xcworkspace in Xcode.
  • Select a real iOS device and try building the app.

Expected Behaviour

App should build successfully with the packaged model and linked native dependencies.

Environment:

  • macOS version: 15.4.1

  • Xcode version: 16.1

  • React Native version: 74.2

  • MLC-LLM commit: [Android] Support LLaVA and Phi-V (#3195)

  • react-native-ai commit: fix: set clean urls for website

Image

Metadata

Metadata

Assignees

No one assigned

    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